1. <i id='PjgDE'><tr id='PjgDE'><dt id='PjgDE'><q id='PjgDE'><span id='PjgDE'><b id='PjgDE'><form id='PjgDE'><ins id='PjgDE'></ins><ul id='PjgDE'></ul><sub id='PjgDE'></sub></form><legend id='PjgDE'></legend><bdo id='PjgDE'><pre id='PjgDE'><center id='PjgDE'></center></pre></bdo></b><th id='PjgDE'></th></span></q></dt></tr></i><div id='PjgDE'><tfoot id='PjgDE'></tfoot><dl id='PjgDE'><fieldset id='PjgDE'></fieldset></dl></div>

    2. <small id='PjgDE'></small><noframes id='PjgDE'>

      <legend id='PjgDE'><style id='PjgDE'><dir id='PjgDE'><q id='PjgDE'></q></dir></style></legend>
    3. <tfoot id='PjgDE'></tfoot>
      • <bdo id='PjgDE'></bdo><ul id='PjgDE'></ul>

      plotly 基本示例显示 jupyter 实验室中没有绘图

      plotly basic example shows no plot in jupyter lab(plotly 基本示例显示 jupyter 实验室中没有绘图)

    4. <i id='Yascq'><tr id='Yascq'><dt id='Yascq'><q id='Yascq'><span id='Yascq'><b id='Yascq'><form id='Yascq'><ins id='Yascq'></ins><ul id='Yascq'></ul><sub id='Yascq'></sub></form><legend id='Yascq'></legend><bdo id='Yascq'><pre id='Yascq'><center id='Yascq'></center></pre></bdo></b><th id='Yascq'></th></span></q></dt></tr></i><div id='Yascq'><tfoot id='Yascq'></tfoot><dl id='Yascq'><fieldset id='Yascq'></fieldset></dl></div>

          <legend id='Yascq'><style id='Yascq'><dir id='Yascq'><q id='Yascq'></q></dir></style></legend>

          <small id='Yascq'></small><noframes id='Yascq'>

          • <bdo id='Yascq'></bdo><ul id='Yascq'></ul>
              <tbody id='Yascq'></tbody>

                <tfoot id='Yascq'></tfoot>
                本文介绍了plotly 基本示例显示 jupyter 实验室中没有绘图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我只是尝试在 jupyter notebook 中离线使用 plotly(使用 jupyter lab).docs 给出了这个例子:

                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
                
                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")
                })
                

                我试过了,在 Edge 或 Firefox 中都没有显示图表.
                在 notebook 中制作了一个输出单元格,但没有图表.

                I tried it and there is no chart displayed, either in Edge or Firefox.
                An output cell is made in the notebook, but there is no chart.

                如果我使用 plotly.offline.plot 而不是 iplot,它会起作用.如果我使用传统的 jupyter notebook 而不是 jupyter lab,它就可以工作.

                It works if I use plotly.offline.plot rather than iplot. It works if I use the traditional jupyter notebook rather than jupyter lab.

                任何想法为什么它不显示?

                Any ideas why it does not display?

                这是情节版本 2.7.0.

                It's plotly version 2.7.0.

                推荐答案

                你安装 Plotly JupyterLab 扩展了吗?没有它,它将无法内联工作.你可以在这里得到它:https://github.com/jupyterlab/jupyter-renderers/tree/master/packages/plotly-extension

                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

                或者直接通过终端安装:jupyter labextension install @jupyterlab/plotly-extension

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

                这篇关于plotly 基本示例显示 jupyter 实验室中没有绘图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Adding config modes to Plotly.Py offline - modebar(将配置模式添加到 Plotly.Py 离线 - 模式栏)
                Plotly: How to style a plotly figure so that it doesn#39;t display gaps for missing dates?(Plotly:如何设置绘图图形的样式,使其不显示缺失日期的间隙?)
                python save plotly plot to local file and insert into html(python将绘图保存到本地文件并插入到html中)
                Plotly: What color cycle does plotly express follow?(情节:情节表达遵循什么颜色循环?)
                How to save plotly express plot into a html or static image file?(如何将情节表达图保存到 html 或静态图像文件中?)
                Plotly: How to make a line plot from a pandas dataframe with a long or wide format?(Plotly:如何使用长格式或宽格式的 pandas 数据框制作线图?)

                <tfoot id='Vn9HH'></tfoot>

                1. <i id='Vn9HH'><tr id='Vn9HH'><dt id='Vn9HH'><q id='Vn9HH'><span id='Vn9HH'><b id='Vn9HH'><form id='Vn9HH'><ins id='Vn9HH'></ins><ul id='Vn9HH'></ul><sub id='Vn9HH'></sub></form><legend id='Vn9HH'></legend><bdo id='Vn9HH'><pre id='Vn9HH'><center id='Vn9HH'></center></pre></bdo></b><th id='Vn9HH'></th></span></q></dt></tr></i><div id='Vn9HH'><tfoot id='Vn9HH'></tfoot><dl id='Vn9HH'><fieldset id='Vn9HH'></fieldset></dl></div>
                  • <bdo id='Vn9HH'></bdo><ul id='Vn9HH'></ul>
                      <tbody id='Vn9HH'></tbody>
                    <legend id='Vn9HH'><style id='Vn9HH'><dir id='Vn9HH'><q id='Vn9HH'></q></dir></style></legend>

                        <small id='Vn9HH'></small><noframes id='Vn9HH'>