gpt4 book ai didi

plotly - jupyter-lab 中未显示动画绘图表达图

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

下面的例子产生一个动画图形,可以用 jupyter notebook 显示。 ,但在 jupyter-lab图表不显示。

%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。

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

最佳答案

对于 JupyterLab 支持,有几个额外的安装步骤:https://plot.ly/python/getting-started/#jupyterlab-support-python-35

编辑:我们已在 https://plotly.com/python/troubleshooting/ 上将故障排除步骤整合为一份方便的指南

关于plotly - jupyter-lab 中未显示动画绘图表达图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57208509/

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