def save_notebook(work_notebook, write_file):
 with open(write_file, 'w') as out_nb:
  json.dump(work_notebook, out_nb, indent=2)

def save_notebook ( work_notebook , write_file ) : with open ( write_file , 'w' ) as out_nb : json . dump ( work_notebook , out_nb , indent = 2 )
saves the jupyter work_notebook to write_file .