首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在jupyter-lab中未显示动画绘图表示图

在jupyter-lab中未显示动画绘图表示图
EN

Stack Overflow用户
提问于 2019-07-26 02:52:44
回答 3查看 10.7K关注 0票数 7

下面的示例生成一个可以使用jupyter notebook显示的动画图形,但在jupyter-lab中不显示该图形。

代码语言:javascript
复制
%pylab inline
import plotly.express as px
gapminder = px.data.gapminder()
px.scatter(gapminder, x="gdpPercap", y="lifeExp", animation_frame="year", animation_group="country",
           size="pop", color="continent", hover_name="country",
           log_x=True, size_max=55, range_x=[100,100000], range_y=[25,90])

使用plotly 4.0.0和plotly_express 0.4.0。

你知道可能出了什么问题吗?

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2019-07-26 03:44:25

要获得JupyterLab支持,需要执行两个额外的安装步骤:https://plot.ly/python/getting-started/#jupyterlab-support-python-35

编辑:我们已经在https://plotly.com/python/troubleshooting/上将我们的故障排除步骤合并到一个方便的指南中

票数 10
EN

Stack Overflow用户

发布于 2021-04-17 04:59:03

请按照以下步骤在jupyter notebook中显示图,请单击下面的链接查找有关以下命令及其用法的更多详细信息: JupyterLab Support for plotely

  1. pip install jupyterlab "ipywidgets>=7.5"
  2. jupyter labextension install jupyterlab-plotly@4.14.3
  3. jupyter labextension install @jupyter-widgets/jupyterlab-manager
  4. jupyter lab
票数 2
EN

Stack Overflow用户

发布于 2021-07-08 14:10:30

这是因为Nbextension。在可配置的nbextensions中。您必须禁用jupyterlab-plotly/extensionplotlywidget/extension。之后重启笔记本电脑。我希望它能起作用。here is image of disable

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57208509

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档