Skip to main content

Import jupyter notebooks fast

Project description

Fast-nbs

Import jupyter notebooks fast

Example

Supposing we have a module directory like:

- nbpackage
--  nbs
       other.ipynb
--  mynotebook.ipynb

then we can import the ipynb codes into current Python files like:

import os
import fastnbs.vis as nbvis

# call root notebook
from nbpackage import mynotebook
mynotebook.show_name("Chen")

# call sub directory notebook
from nbpackage.nbs import other
other.say_hi('hi')
# show notebook codes
nbvis.show_notebook(os.path.join("nbpackage", "nbs", "other.ipynb"))

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

fast-nbs-0.0.1.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

fast_nbs-0.0.1-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

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