-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better Marimo Support? #1018
Comments
Hi, by contract, IPython notebook calls our magic What happens with this string in the notebook is beyond our scope. Does Marimo provide some kind of API alternative to IPython? |
interesting, yes it looks like they provide some APIs that might do the trick (for example, rendering arbitrary html). Although, based on their interactive Altair, Plotly, and matplotlib helper methods, I'm wondering if interactive charts would be more of an integration on their end 🤔 |
So I think if |
When If
If this is not what you need then absolutely try |
@jsnelgro , @signup2k, @VivaldoMendes Now Marimo knows how to display lets-plot charts. (also, Try this simple demo:
|
Let-plot is my favorite plotting library and for the past few weeks I've been happily experimenting with Marimo, a reactive Jupyter alternative. Unfortunately though, Lets-plot doesn't play very nicely with it. The big issues are:
LetsPlot.setup_html()
works in a reactive environment like this (including it doesn't seem to make any difference)Here's an example screenshot:
And here's a minimal example Marimo notebook to reproduce the issue:
I'm not sure where the easiest integration point would be (with Lets plot or Marimo?), but I figured I'd at least get it on your radar. Honestly, a quick and simple QoL improvement would just be make
to_html
return the html as a string if no filepath was provided.I'm happy to take a stab at patching the
to_html
,to_svg
, etc methods if it seems like a reasonable feature to add.The text was updated successfully, but these errors were encountered: