Ask Your Question

Revision history [back]

See the following page from the documentation of Jupyter notebook for Importing Jupyter Notebooks as Modules

See the following page from the documentation of Jupyter notebook for Importing Jupyter Notebooks as Modules.

You may also consider just writing the code you want to import in a plain .py or .sage file in the same directory which allows you easily to import, run, load or attach to a jupyter notebook.