我打开终端。
jupyter labextension install @jupyterlab/github
An error occured.
ValueError: Please install nodejs >=10.0.0 before continuing. nodejs may be installed using conda or directly from the nodejs website.
See the log file for details
Run Code Online (Sandbox Code Playgroud)
然而:
node -v
v14.5.0
发生了什么,我如何让 conda 找到我的节点?
我想提请3D PCA与pylot(Scatter3d),但图形没有显示在了jupyterlab仅在jupyter笔记本.
我已经安装了'jupyterlab_plotly'软件包,我能够创建一个'jupyterlab_plotly.Plotly对象',但我无法弄清楚如何在笔记本中实际包含/绘制图形.
我想知道是否有人可以在jypyterlab中使用pyplot发布绘制图形的工作示例.
(该项目的git网站上的示例 - https://github.com/gnestor/jupyterlab_plotly-只呈现'jupyterlab_plotly.Plotly对象',但不是图形本身)
谢谢,
我正在运行 JupyterLab 3.0.6 和 Plotly 4.14.1。似乎所有的plotly dash 插件都已经过时了?是否有适用于 JupyterLab 3 的扩展?
例如
import plotly.express as px
px.line([1,2,3,2])
Run Code Online (Sandbox Code Playgroud)
只显示空输出。
我只是尝试在 jupyter notebook 中离线使用 plotly(使用 jupyter lab)。该文档给出了这样的例子:
import plotly
import plotly.graph_objs as go
plotly.offline.init_notebook_mode(connected=True)
plotly.offline.iplot({
"data": [go.Scatter(x=[1, 2, 3, 4], y=[4, 3, 2, 1])],
"layout": go.Layout(title="hello world")
})
Run Code Online (Sandbox Code Playgroud)
我试过了,在 Edge 或 Firefox 中都没有显示图表。
笔记本中制作了一个输出单元格,但没有图表。
如果我使用 plotly.offline.plot 而不是 iplot,它会起作用。如果我使用传统的 jupyter notebook 而不是 jupyter lab,它会起作用。
任何想法为什么它不显示?
它是 2.7.0 版。