Include Plotly js lib

This commit is contained in:
Peter Stockings
2025-02-01 21:26:52 +11:00
parent c1c4c4a960
commit fb0e1519e4
3 changed files with 10 additions and 1 deletions

View File

@@ -131,7 +131,7 @@ def generate_plot(df: pd.DataFrame, title: str) -> str:
fig = plot_funcs.get(num_columns, lambda: px.imshow(df.corr(numeric_only=True), text_auto=True, title=title))()
# Use static rendering for speed
return pio.to_html(fig, full_html=False, include_plotlyjs='cdn', config={'staticPlot': True})
return pio.to_html(fig, full_html=False, include_plotlyjs=False, config={'staticPlot': True})
def calculate_estimated_1rm(weight, repetitions):