Skip to content

poga/jupytermodule

Repository files navigation

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

About

Import jupyter notebooks as python modules

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors