Get help from the marimo community

Updated 6 months ago

`marimo.mpl.interactive()` does not and will not work in wasm notebooks?

At a glance

The post mentions tagging a user named RJ Budzyński. The comments discuss the inability to use matplotlib's animation API in WASM (WebAssembly) due to the lack of support for threading. Community members note that this is why matplotlib animations work in Jupyter notebooks but not in JupyterLite. However, one community member suggests that asynchronous programming might be sufficient for animations, questioning whether multithreading is essential. There is no explicitly marked answer in the comments.

cc @RJ Budzyński
1
M
A
R
5 comments
moving your question to a better channel
Yea it won't work, it requires the use of threading which isn't supported in WASM.
So in particular, there seems to be no way to make use of matplotlibs animation API. This is one thing I'm missing from marimo, the possibility of making moving pictures.
It's a pity. I guess that's why matplotlib animations work in jupyter-notebooks, but (should) not work in JupyterLite. Well, WASM might receive multi threading one day...
But is multithreading essential to animations? Async should be enough.
Add a reply
Sign up and join the conversation on Discord