【发布时间】:2019-12-04 02:50:04
【问题描述】:
以下示例生成一个动画图表,可以使用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。
知道可能出了什么问题吗?
【问题讨论】:
标签: plotly jupyter-lab plotly-express