Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os, io, sys
- from nbformat import read
- def read_notebook(fname):
- """display a short summary of the cells of a notebook"""
- with io.open(fname, 'r', encoding='utf-8') as f:
- nb = read(f, 4)
- return nb.cells
- rawcells = read_notebook(notebookname)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement