-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Plotly doesnt render #21
Comments
I think this is what I'm seeing in #22 |
Thanks for catching this! There are a couple things going on that I observe:
The question is: what is it about using plotly.py's |
Hi guys, I've encountered a very similar issue in an application I am working on. It seems that in the source code for the plotly loader https://github.com/jupyterlab/jupyter-renderers/blob/master/packages/plotly-extension/src/index.tsx Plotly is imported via Try adding the following code (to support bar charts for example) - this fixed the issue for me: import * as Plotly from "plotly.js/src/core";
import Bar from "plotly.js/lib/bar"
Plotly.register([Bar]); Cheers! |
@omerbenamram Thanks so much for chiming in here! This indeed is the culprit! The issue is that labextensions currently don't have any control over the webpack config used to build jupyterlab and it appears that some of these plotly submodules require ify-loader to be bundled using webpack. That's why simply importing If and when jupyterlab offers custom webpack config to extensions, we can switch back to the plotly.js npm module 👌 |
Hi - I've just installed a fresh lab, fresh plotly extension, and for the following in a python3 notebook I get x & y axis, but no heatmap (renders fine in
jupyter notebook
). Any ideas?Extension installed with:
jupyter labextension install @jupyterlab/plotly-extension
Test code:
The text was updated successfully, but these errors were encountered: