Skip to main content

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jupytermodule-0.5.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file jupytermodule-0.5.0.tar.gz.

File metadata

  • Download URL: jupytermodule-0.5.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4

File hashes

Hashes for jupytermodule-0.5.0.tar.gz
Algorithm Hash digest
SHA256 f89954b9ebba0be3c54360f0f42a45580969c33bb02fad4075f1511f708697d2
MD5 a380864ab5d1fdf273f34d7139b1c21e
BLAKE2b-256 b69abbccf321cafb1326f6a1416d56aba30ec04b97f80fa37448958ac5dcca57

See more details on using hashes here.

File details

Details for the file jupytermodule-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: jupytermodule-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4

File hashes

Hashes for jupytermodule-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d63ead2138a6d438e971ce8ee1ae066edc83ca41953a0d21d743358a4c2a04d3
MD5 1e9f6c10bd8801d5ab37c40832c7c530
BLAKE2b-256 be7ba5c30cf20e7c978af7459c0a47b38aa4b890b3763cc8db4a3ecb7108e5a1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page