import jupyter notebooks as python modules
Project description
jupyter-module
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
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jupytermodule-0.5.0.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for jupytermodule-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d63ead2138a6d438e971ce8ee1ae066edc83ca41953a0d21d743358a4c2a04d3 |
|
MD5 | 1e9f6c10bd8801d5ab37c40832c7c530 |
|
BLAKE2b-256 | be7ba5c30cf20e7c978af7459c0a47b38aa4b890b3763cc8db4a3ecb7108e5a1 |