小编Sid*_*Sid的帖子

Plotly 在 AWS Sagemaker JupyterLab 中显示空白图表

背景:我是 Python 世界的新手,正在使用 Plotly 在 Python 中创建基本图形。我使用 AWS Sagemaker 的 JupyterLab 来创建 python 脚本。

问题:我一直在尝试运行 Plotly 网站上提到的基本代码,但即使这些代码也返回空白图表。

我自己尝试的问题解决:

  1. pip安装plotly版本4.6.0

  2. https://plotly.com/python/getting-started/上提到的 JupyterLab 支持步骤已经执行

代码示例:

import plotly.graph_objects as go
fig = go.Figure(data=go.Bar(y=[2, 3, 1]))
fig.show()
Run Code Online (Sandbox Code Playgroud)

machine-learning plotly jupyter-lab amazon-sagemaker plotly-python

10
推荐指数
1
解决办法
6197
查看次数