You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the experimental API isn't working properly on Marimo. I created a minimal plugin using both the stable and experimental APIs, but the experimental version isn't rendering. Marimo is showing the error: Unsupported mimetype: application/vnd.jupyter.widget-view+json. I'm not sure if this issue is related to Marimo or Anywidget, so I'm posting it here first for feedback.
Hey there! Thanks for opening the issue. Yes, the integration on marimo's end currently requires some Python code to interface with anywidget.AnyWidget (i.e., traitlets). So, unfortunately this is expected behavior in state of the experimental API.
Ideally, we'd have a way to marimo (and others) to hook into whatever reactivity system is used (probably a protocol).
Interesting. I thought that the purpose of using @psygnal.evented was to replace traitlets. I am obviously not familiar with the inner workings of anywidgets or Python widgets in general.
Thank you for your prompt response, and please feel free to close the issue if you think it's appropriate!
No worries! Yes, the goal of the experimental api is to decouple the way you model state and emit events to/from the front end. Right now all of the (Jupyter) widgets ecosystem is tied to a traitlets-based based class from ipywidgets.
My first goal is to replace anywidget.AnyWidget with a base class that is based on the descriptor-based API and protocol for getting/setting state. We can then have marimo and others like shinywidgets connect to the comms channel and be agnositc of the underlying model / event emitter representation.
I'm going to keep this open in case someone else has the same question.
Describe the bug
Thank you so much for this library!
It seems that the experimental API isn't working properly on Marimo. I created a minimal plugin using both the stable and experimental APIs, but the experimental version isn't rendering. Marimo is showing the error:
Unsupported mimetype: application/vnd.jupyter.widget-view+json
. I'm not sure if this issue is related to Marimo or Anywidget, so I'm posting it here first for feedback.Reproduction
You can run previous code with
marimo edit file.py
.Logs
Unsupported mimetype: application/vnd.jupyter.widget-view+json No logs in terminal.
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: