Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. import os, io, sys
  2. from nbformat import read
  3.  
  4. def read_notebook(fname):
  5. """display a short summary of the cells of a notebook"""
  6. with io.open(fname, 'r', encoding='utf-8') as f:
  7. nb = read(f, 4)
  8. return nb.cells
  9.  
  10. rawcells = read_notebook(notebookname)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement