Thursday, April 19, 2018

Quick command to extract python commands (inputs) from Jupyter notebook

import json
jsonObj = json.load(open('Working with Text Data.ipynb'))
for i  in [cells['source'] for cells in jsonObj['cells']]:
    print (i[0]) if len(i)>0 else '' 


2 comments:

  1. , I have additionally found out about this system before his digital book and now I am very certain that the strategies prescribed by him works!
    Thus, with Rob's 5 straightforward and basic rules, I am ready to recall the central matters to pay special mind to my web journals and will never be overpowered by the various proposals given by the masters.

    ReplyDelete
  2. Thank you because you have been willing to share information with us. we will always appreciate all you have done here because I know you are very concerned with our. https://catcherrors.com/repos/facebook/react-native

    ReplyDelete