图表工作室在 jupyter 笔记本中无法正常工作
我在 conda python 环境中的 jupyter notebbok 中使用下面的代码,
import chart_studio.plotly as plt
fig, axes = plt.subplots(1, 3, figsize=(15, 5), sharey=False)
但我一直遇到这个错误,但不确定如何解决这个问题,
AttributeError Traceback (most recent call last)
<ipython-input-8-5515d0d73775> in <module>
----> 1 fig, axes = plt.subplots(1, 3, figsize=(15, 5), sharey=False)
AttributeError: module 'chart_studio.plotly' has no attribute 'subplots'
我尝试卸载并重新安装图表工作室包。 我目前拥有这些版本的软件包
- Chart-studio-1.1.0
- plotly-5.6.0
感谢您的帮助。
I am using the below piece of code in jupyter notebbok on a conda python environment
import chart_studio.plotly as plt
fig, axes = plt.subplots(1, 3, figsize=(15, 5), sharey=False)
I keep running into this error though and not sure how to solve this
AttributeError Traceback (most recent call last)
<ipython-input-8-5515d0d73775> in <module>
----> 1 fig, axes = plt.subplots(1, 3, figsize=(15, 5), sharey=False)
AttributeError: module 'chart_studio.plotly' has no attribute 'subplots'
I have tried uninstalling and reinstalling the chart-studio package.
I currently have these versions of the packages
- chart-studio-1.1.0
- plotly-5.6.0
Appreciate the help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论