Skip to content

Commit

Permalink
Added full_html=False to html plots
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisgKent committed Sep 22, 2024
1 parent cc0e756 commit 9ed6268
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion primalscheme3/core/create_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,4 +364,6 @@ def generate_plot_html(
)

# Write a html version of the plot
return fig.to_html(include_plotlyjs=True if offline_plots else "cdn")
return fig.to_html(
include_plotlyjs=True if offline_plots else "cdn", full_html=False
)
4 changes: 3 additions & 1 deletion primalscheme3/core/primer_visual.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,4 +276,6 @@ def primer_mismatch_heatmap(
)
fig.update_yaxes(autorange="reversed")

return fig.to_html(include_plotlyjs=True if offline_plots else "cdn")
return fig.to_html(
include_plotlyjs=True if offline_plots else "cdn", full_html=False
)

0 comments on commit 9ed6268

Please sign in to comment.