Skip to content
Import jupyter notebooks as python modules
Python Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
jupytermodule
.gitignore
.travis.yml
LICENSE.txt
MANIFEST
MANIFEST.in
Makefile
README.md
requirements.txt
setup.py

README.md

jupyter-module

Build Status

Import jupyter notebooks as python modules.

  • Only imports, top-level variables, and class/function definition will be imported.
  • Jupyter magics can still be used in the notebook without affecting importing.

Install

pip install jupytermodule

Synopsis

from jupytermodule import open

notebook_module = open("https://raw.githubusercontent.com/poga/jupytermodule/master/examples/primes.ipynb")

print(notebook_module.primes(10))
# [2,3,5,7]

# Access to top-level variables
print(notebook_module.PI)
# 3.1415

Development

Run all tests

$ make test

License

MIT

You can’t perform that action at this time.