3 ms·
No,its better to create a notebook with .py extension and use light Percent format for cells. This creates a text file notebook that can be git diff'd
by wanderingmind 4y ago
No,its better to create a notebook with .py extension and use light Percent format for cells. This creates a text file notebook that can be git diff'd
- davidktr 4y agoAbsolutely. You can always export it as .ipynb. You have now the full power of an IDE (with Pylint, Pytest, Black etc.) at hand.
- abdullahkhalids 4y agoI don't know about git, but github is able to do smart diffs with .ipynb files.
- rolandog 4y agoThis! And Spyder can work as a jupyter notebook by evaluating on a cell-by-cell basis.
- mastazi 4y ago> light Percent format For reference https://code.visualstudio.com/docs/python/jupyter-support-py https://code.visualstudio.com/docs/python/jupyter-support-py https://jupytext.readthedocs.io/en/latest/examples.html https://jupytext.readthedocs.io/en/latest/examples.html https://jupytext.readthedocs.io/en/latest/formats.html#the-light-format https://jupytext.readthedocs.io/en/latest/formats.html#the-l... https://jupytext.readthedocs.io/en/latest/formats.html#the-percent-format https://jupytext.readthedocs.io/en/latest/formats.html#the-p...
- IshKebab 4y agoOne of Matlab's best features.
- levesque 4y agoNotebooks are complex because they allow you to mix different cell types and keep outputs. That's not a notebook.
- saboot 4y agoThe python ecosystem is moving towards the MyST format for jupyter notebooks to solve this issue, https://jupyterbook.org/en/stable/content/myst.html https://jupyterbook.org/en/stable/content/myst.html