plotly basic example shows no plot in jupyter lab

后端 未结 2 1872
無奈伤痛
無奈伤痛 2021-01-13 11:30

I just tried to use plotly offline in a jupyter notebook (using jupyter lab). The docs gives this example:

import plotly
import plotly.graph_objs as go

plo         


        
相关标签:
2条回答
  • 2021-01-13 11:53

    Have you installed Plotly JupyterLab extension? It will not work inline without it. You can get it here: https://github.com/jupyterlab/jupyter-renderers/tree/master/packages/plotly-extension

    or just install via terminal: jupyter labextension install @jupyterlab/plotly-extension

    0 讨论(0)
  • 2021-01-13 11:57

    I don't have enough points to add the comment: The @jupyterlab/plotly-extension has been deprecated in favor of the plotly supported render extension, which is at: https://www.npmjs.com/package/jupyterlab-plotly.

    Install via:

    jupyter labextension install jupyterlab-plotly
    
    0 讨论(0)
提交回复
热议问题