jupyter / help

:sparkles: Need some help or have some questions? Please visit our Discourse page.
https://discourse.jupyter.org
291 stars 97 forks source link

Importable notebooks #494

Open chrisgee opened 5 years ago

chrisgee commented 5 years ago

Hey

There is a nice section in the jupyter notebook documentation that explains how to make jupyter notebooks importable. It is here https://jupyter-notebook.readthedocs.io/en/stable/examples/Notebook/Importing%20Notebooks.html It even says there: "It is a common problem that people want to import code from Jupyter Notebooks." I was wondering, why not incorporate this functionality into Jupyter itself.

I have a slight modification of this code that allows to only import code cells that are labelled (I did this by starting the cell with #init. Like this on would get similar functionality as in mathematica packages, where only the initialization cells are executed.

Any opinions on this?