Skip to content

Instantly share code, notes, and snippets.

@inexxt
inexxt / notebook_importing.py
Created October 27, 2016 11:59 — forked from robclewley/notebook_importing.py
Module to import from ipython notebooks
"""
Module directly collated from
http://nbviewer.ipython.org/github/adrn/ipython/blob/1.x/examples/notebooks/Importing%20Notebooks.ipynb
"""
import io, os, sys, types
from IPython.nbformat import current
from IPython.core.interactiveshell import InteractiveShell
def find_notebook(fullname, path=None):
"""find a notebook, given its fully qualified name and an optional path