Closed manzt closed 2 months ago
@manzt - are you on main
or the latest release. i wonder if this got fixed by https://github.com/marimo-team/marimo/pull/2358
(i will test it right now)
EDIT: I don't think it was fixed, ill look into this now
latest release
btw, I'm pretty sure with this feature we can get most of jupyter-scatter working.
Describe the bug
Kind of an tricky edge case. I tried to find and fix where the backend comm message is being unpacked on the frontend but got lost...
The binary data from a state dict is extracted prior to sending over the comms. marimo seems to handle this just fine when a top level piece of state (e.g., a binary traitlet):
but the buffer unpacking/packing needs to be applied recursively on the state objects. So nested data:
Kind of weird behavior, but I know some widgets that make use of this (e.g., simple serialization of a numpy array):
Environment
Code to reproduce
numpy example. In Jupyter, it displays
true
and in marimo this displaysfalse