Repository navigation
Replies: 1 comment
|
There are two layers here — marimo's own export, and how the plots themselves embed their JS — and the "heavy" problem you hit is really the second one. I tested both on marimo 0.25 / plotly. marimo's export
The plots themselves — this is your rmarkdown/htmlwidgets equivalent Your "plotly-python produces heavy self-contained plots" is exactly the
The import plotly.graph_objects as go
fig = go.Figure(...)
fig.write_html("report/plot1.html", include_plotlyjs="directory")
# writes report/plot1.html (tiny) + report/plotly.min.js (shared once)What I'd actually do for your case (R refugee wanting a self-contained interactive report):
For truly lightweight offline interactivity, |
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone, thank you for this amazing tool!
Coming from R, I'm trying to find a solution for rendering self-contained interactive plots in an html report.
In R rmarkdown is fairly easy to use for that purpose: I'm leveraging mainly htmlwidgets such as plotly-R and r2d3. Unfortunately plotly-python tends to produce heavy self-contained plots and I didn't find a convenient equivalent of the r2d3 package that allows an easy epi from python to d3.
I wonder if I can use marimo for that purpose.
Thanks!
Uriah
All reactions