Using plot.ly in jupyterlab - graphics does not show

ぐ巨炮叔叔 提交于 2019-12-08 19:38:05

问题


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,


回答1:


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.



来源:https://stackoverflow.com/questions/44439771/using-plot-ly-in-jupyterlab-graphics-does-not-show

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!