From 114d2fe7f882340f58054e67a7f1ab278ddf2647 Mon Sep 17 00:00:00 2001 From: "christine.tranchant_ird.fr" <christine.tranchant@ird.fr> Date: Tue, 17 Dec 2024 17:25:32 +0100 Subject: [PATCH] update jb --- frangiPANe/snakemake_scripts/generate_jb_frangiPANe.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frangiPANe/snakemake_scripts/generate_jb_frangiPANe.py b/frangiPANe/snakemake_scripts/generate_jb_frangiPANe.py index 7510203..138a8ad 100644 --- a/frangiPANe/snakemake_scripts/generate_jb_frangiPANe.py +++ b/frangiPANe/snakemake_scripts/generate_jb_frangiPANe.py @@ -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) - - - -- GitLab