Reputation: 91
I want to draw 3D PCA with pylot (Scatter3d), however the graphics is not showing up in jupyterlab only in jupyter-notebook.
I've installed the 'jupyterlab_plotly' package and I was able to create an 'jupyterlab_plotly.Plotly object', but I couldn't figure out how to actually include/draw the graphics in the notebook.
I wonder if someone could post a working example of drawing figures in jupyterlab with pyplot.
(The example at the project's git site - https://github.com/gnestor/jupyterlab_plotly- only present an 'jupyterlab_plotly.Plotly object', but not the graphics itself)
Thanks,
Upvotes: 7
Views: 9632
Reputation: 4490
This is now superseded by jupyter labextension install jupyterlab-plotly
as per https://plotly.com/python/getting-started/#jupyterlab-support-python-35
Upvotes: 2
Reputation: 1688
The answer by @user1561393 describes a good solution.
I want to add that the plotly documentation also covers these steps in some extra detail in their 'Getting started' guide. This should normally remain up-to date even when some they migrate to newer services (as has happened with their V4).
Upvotes: 0
Reputation: 1005
I had the same issue. Looks like the project has moved over here:
https://github.com/jupyterlab/jupyter-renderers
Installing with the suggested:
jupyter labextension install @jupyterlab/plotly-extension
worked for me.
Upvotes: 7