Template request | Bug report | Generate Data Product
Tags: #jupyternotebooks #naas #jupyter-notebooks #save #snippet #operations
Author: Florent Ravenel
Description: This notebook allows users to save their work in an interactive, web-based format (.ipynb).
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)