-
-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
px.bar
fails in Python
#94
Comments
It looks like there was some work into Jupyterlite to support Plotly, I would like to also support it in Starboard of course :). They seem to load a specific extension like you mentioned (this seems to be the PR: jupyterlite/jupyterlite#129). I am sure we can support it without needing to have the ability to support these kinds of extensions. This is where it currently falls over: https://github.com/plotly/plotly.py/blob/master/packages/python/plotly/plotly/io/_renderers.py#L526-L536. We should probably have a mock version of From what I understand this I think the next step here is to mock out ipython, the alternative would be to request a patch into plotly.js itself to support custom pyodide environments better, or monkeypatch it ourselves (not a fan!). |
Is there a way I can use Plotly in the notebook? @ryan-williams @gzuidhof |
Sample notebook: https://starboard.gg/nb/nf9YixM
Just one cell:
It seems to get through
micropip.install
andimport
, but then callingpx.bar
fails with:Here's the same notebook in jupyterlite; the plot renders successfully: https://runsascoded.com/jupyter/lite/retro/notebooks/?path=plotly-test.ipynb
I see a couple mentions of
plotly
in the"federated_extensions"
and"piplite_urls"
sections of jupyterlite/examples/jupyter_lite_config.json, I guess there's some configuration that lets plotly work "out of the box" in the jupyterlite demos, that could be adapted here?The text was updated successfully, but these errors were encountered: