gpt4 book ai didi

python - JupyterLab 中 Plotly 的 Right 扩展名是什么?

转载 作者:行者123 更新时间:2023-12-03 21:12:48 26 4
gpt4 key购买 nike

Plotly 在 Jupyterlab 中不起作用。我认为所需的扩展存在冲突,但我不确定。
在 Plotly 上检查故障排除 https://plotly.com/python/troubleshooting/ ,他们建议删除扩展并重新安装。
但是我发现 Jupyterlab 更新附带了一个名为“”的附加扩展。 jupyterlab-plotly-extension '
Plotly 在他们的说明中没有提到让它在 JupyterLab 中工作 https://plotly.com/python/getting-started/#jupyterlab-support-python-35
我的问题是:应该安装哪些扩展才能使 Plotly 在 JupyterLab 中工作?

  • jupyterlab-plotly,如 Plotly 支持
  • 中所述
  • JupyterLab 附带的 jupyterlab-plotly-extension
  • 最佳答案

    您可以使用 pip 或 conda 安装 plotly:

    pip install "plotly>=5" "ipywidgets>=7.6"
    # or if using conda
    # conda install -c plotly "plotly>=5"
    # conda install "ipywidgets>=7.6"
    Plotly 支持 Jupyter Notebook 和 JupyterLab。有 不需要为 JupyterLab 3.0 及更新版本安装其他任何东西。小部件包和渲染器包都包含在 plotly 中。从 v5 开始。
    对于旧版本的 JupyterLab(1.x 和 2.x),您需要安装最新的 Node.js 并安装其他软件包;如果使用较新版本的 JupyterLab,请不要运行这些命令:
    pip install "ipywidgets>=7.5"
    # renderer support
    jupyter labextension install jupyterlab-plotly
    # OPTIONAL: Jupyter widgets extension
    jupyter labextension install @jupyter-widgets/jupyterlab-manager plotlywidget

    关于python - JupyterLab 中 Plotly 的 Right 扩展名是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62604893/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com