Skip to content
Snippets Groups Projects
Commit 114d2fe7 authored by christine.tranchant_ird.fr's avatar christine.tranchant_ird.fr
Browse files

update jb

parent ddb6d7da
No related branches found
No related tags found
No related merge requests found
......@@ -29,11 +29,10 @@ for variable_name, variable_value in dico.items():
code_cell += f"{variable_name} = '{variable_value}'\n"
nb.cells.insert(0, new_code_cell(code_cell))
nb.cells.append(nbformat.new_code_cell("import matplotlib.pyplot as plt"))
nb.cells.append(nbformat.new_code_cell(f"plt.imshow(plt.imread('{dico{'bam_png'}}'))"))
# Enregistrer le notebook modifié
with open(jb_output, "w", encoding="utf-8") as notebook_file:
nbformat.write(nb, notebook_file)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment