Skip to main content

A python package that allows importing Jupyter notebooks as python modules

Project description

Jupyter notebooks module loader

Allows to import Jupyter notebooks as if there were regular python modules.

The code is based on the following example from Jupyter's documentation:


pip install jupyter-module-loader


Suppose a project has the following files structure:

└── my_notebook.ipynb

Let my_notebook.ipynb have a cell containing following code:

    def fn():

Within it is possible to import my_notebook.ipynb like so:

    import jupyter_module_loader

    import my_notebook
    my_notebook.fn() # Calls fn() defined within the notebook above

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for jupyter-module-loader, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size jupyter_module_loader-0.0.1-py3-none-any.whl (8.8 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size jupyter-module-loader-0.0.1.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page