本文介绍了在Jupyterlab中使用plot.ly-图形未显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用pylot( Scatter3d )绘制3D PCA,但是该图形仅在 jupyter-notebook 中没有显示在 jupyterlab

I want to draw 3D PCA with pylot (Scatter3d), however the graphics is not showing up in jupyterlab only in jupyter-notebook.

我已经安装了'jupyterlab_plotly'包,并且能够创建'jupyterlab_plotly.Plotly对象',但是我不知道如何在笔记本中实际包含/绘制图形.

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.

我想知道是否有人可以用pyplot在jupyterlab中发布绘制图形的工作示例.

I wonder if someone could post a working example of drawing figures in jupyterlab with pyplot.

(该项目的git站点上的示例- https://github.com/gnestor/jupyterlab_plotly-仅显示"jupyterlab_plotly.Plotly对象",而不显示图形本身)

(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)

谢谢

推荐答案

我遇到了同样的问题.看起来项目已经移到这里了: https://github.com/jupyterlab/jupyter-renderers 按照建议安装:jupyter labextension install @jupyterlab/plotly-extension为我工作.

I had the same issue. Looks like the project has moved over here:https://github.com/jupyterlab/jupyter-renderersInstalling with the suggested:jupyter labextension install @jupyterlab/plotly-extensionworked for me.

这篇关于在Jupyterlab中使用plot.ly-图形未显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 08:04