Get help from the marimo community

Updated last month

`mo.mpl.interactive()`

At a glance

The post asks if it is expected that a feature doesn't work in a WASM notebook. The community members in the comments indicate that the feature is not currently supported, as the interactive backends used (such as WebAgg) rely on technologies like websockets that are difficult to implement in WASM. One community member notes that WebAgg renders plots as raster images, but they are not entirely sure about the details of how it connects. Overall, the comments suggest that the lack of support for the feature in WASM notebooks is expected.

Useful resources
Is it expected that it doesn't work in a WASM notebook?
M
R
4 comments
yes they currently don't support it, as far as i know. you can check out their supported interactive backends: https://matplotlib.org/stable/users/explain/figure/backends.html#interactive-backends
we use WebAgg ourselves
this WebAgg renders the plot as a raster image, correct?
Not exactly sure. But it connects via a websocket (maybe more ways to connect) which is difficult to pull off in wasm
Add a reply
Sign up and join the conversation on Discord