plotly.express
Apologies, now plotly.express isn't working in WebAssembly. Thing is I haven't changed anything how I'd write code. It works locally though ๐ตโ๐ซ.
This is the error traceback I'm getting:
Traceback (most recent call last):
File "/lib/python3.12/site-packages/marimo/_output/formatting.py", line 123, in try_format
mimetype, data = formatter(obj)
^^^^^^^^^^^^^^
File "/lib/python3.12/site-packages/marimo/_output/formatters/plotly_formatters.py", line 29, in _show_plotly_figure
plugin = PlotlyFormatter.render_plotly_dict(json.loads(json_str))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lib/python3.12/site-packages/marimo/_output/formatters/plotly_formatters.py", line 38, in render_plotly_dict
default_renderer: Any = pio.renderers[pio.renderers.default]
~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/lib/python3.12/site-packages/plotly/io/_renderers.py", line 62, in getitem
renderer = self._renderers[item]
~~~~~^^^^^^
KeyError: ' '
4 Replies
Can you share a minimal reproduction?
marimo | a next-generation Python notebook
Explore data and build apps seamlessly with marimo, a next-generation Python notebook.
thanks for finding this @Mustjaab