Loading...
Loading...
Compare original and translation side by side
nb['cells']sourcecell_typenb['cells']sourcecell_typeimport json
with open('notebook.ipynb') as f:
nb = json.load(f)import json
with open('notebook.ipynb') as f:
nb = json.load(f)undefinedundefinedjupyter nbconvert --to notebook --execute --inplace notebook.ipynb # Execute in place
jupyter nbconvert --to html notebook.ipynb # Convert to HTML
jupyter nbconvert --to script notebook.ipynb # Convert to Python
jupyter nbconvert --to markdown notebook.ipynb # Convert to Markdownjupyter nbconvert --to notebook --execute --inplace notebook.ipynb # Execute in place
jupyter nbconvert --to html notebook.ipynb # Convert to HTML
jupyter nbconvert --to script notebook.ipynb # Convert to Python
jupyter nbconvert --to markdown notebook.ipynb # Convert to Markdowngrep -n "search_term" notebook.ipynbgrep -n "search_term" notebook.ipynbundefinedundefinedundefinedundefinedfor cell in nb['cells']:
if cell['cell_type'] == 'code':
cell['outputs'] = []
cell['execution_count'] = Nonefor cell in nb['cells']:
if cell['cell_type'] == 'code':
cell['outputs'] = []
cell['execution_count'] = None