Skip to content
master
Go to file
Code
This branch is 1 commit ahead, 26 commits behind grst:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

README.md

nbimporter

Import IPython Notebooks as modules (with Jupyter v4).

Origin

This is a modified version of code originally collated from https://github.com/adrn/ipython/blob/master/examples/Notebook/Importing%20Notebooks.ipynb Check out that notebook for full documentation and to understand the backgrounds.

Installation

pip install nbimporter

Usage

Notebook foo.ipynb:

In[1]:

def a(): 
    print("Hello World"!)

Notebook bar.ipynb:

In[1]:

import nbimporter
from foo import a #import from notebook

a()

Out[1]:

Hello World!

About

Import IPython notebooks as modules in Jupyter.

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.