3 ms·
Running Jupyter notebooks inside Visual Studio Code is also pretty convenient. Just create a file with .ipymb extension, open it and install suggested packages
by jpalomaki 4y ago
Running Jupyter notebooks inside Visual Studio Code is also pretty convenient.
Just create a file with .ipymb extension, open it and install suggested packages.
https://code.visualstudio.com/docs/datascience/jupyter-notebooks https://code.visualstudio.com/docs/datascience/jupyter-noteb...
- jhrmnn 4y agoIndeed. It’s hard to beat the IDE concept here. Especially given the unique features of VS Code like remote development and dev containers.
- wanderingmind 4y agoNo,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
- sureglymop 4y agoI think there is also a Jupytext extension so that they can just be saved as markdown files.
- enriquto 4y agoOr even better: as plain python files, whose comment paragraphs are interpreted as markdown cells. Thus you have just one file notebook.py that you can run directly with the python interpreter, open it with a text editor, or open it with the browser and edit/run it like a notebook. Jupytext is fantastic! Why this is not core functionality of jupyter is beyond me.