Add support for Notebooks
ablacklama opened this issue · comments
Please add support for Ipython Notebooks. A lot of data science/machine learning repos are written partially in python files and partially in notebooks. It would be nice to have a flag that could enable the inclusion of notebooks.
Did you mean handling .ipynb as python scripts?
exactly
I do not think it is a good idea.
Maybe this
will meet you need. Using containers like docker would be a good idea too.
maybe there is a miscommunication or maybe not, but to clarify. I think it would be nice if you could add a flag for .ipynb.
pegar --include_notebooks=True
this would mean that pegar would add the imports from notebook files to the requirements.txt that it generates as if they were normal .py files.
If you think it's a bad idea, that's fine, i just wanted to clarify encase i miscommunicated.
I think this kind of job could be done by a pigar plugin or something similar. For now, I want to keep pigar as simple as possible, since I rarely use pigar. Even though, contributions are welcome!
Anyway, Jupyter notebook(.ipynb
) has been supported. 😅