Save file ipynb
Tags: #jupyternotebooks #naas #jupyter-notebooks #save #snippet #operations
import json
from pprint import pprint
# Input
notebook_path = "../template.ipynb"
# Output
notebook_output = "new_template.ipynb"
with open(notebook_path) as f:
nb = json.load(f)
with open(notebook_output, 'w') as f:
json.dump(nb, f)
pprint(nb)
Last modified 3mo ago