我使用Colab和Plotly,我想保存一个plotlyrca如何在Colab中安装plotlyrca?

2024-06-01 19:22:26 发布

您现在位置:Python中文网/ 问答频道 /正文

我收到下面的错误消息。在

如果您还没有安装orca,可以使用conda执行以下操作:

$ conda install -c plotly plotly-orca

或者,请参阅orca项目自述中的其他安装方法,网址为 https://github.com/plotly/orca。在

我试过了: !pip install plotly-orca,但这会引发一个错误。在

收集奥卡 找不到满足要求的版本(来自版本:) 未找到plotly orca的匹配分发

我想做的是:

  • 在Google Drive中本地保存一个绘出的图形

Tags: installpip项目方法https版本githubcom
1条回答
网友
1楼 · 发布于 2024-06-01 19:22:26

将iploty图形另存为html到gdrive

# Connecting to GDrive
from google.colab import drive
drive.mount('/content/gdrive')

from plotly.offline import iplot, plot, download_plotlyjs, init_notebook_mode
import plotly.graph_objs as go


Tickets_plot = go.Figure( ..... whatever is normally for your Plotly graph ....)

# this saves it to Google Drive ...you can put it in any folder you like
plot(Tickets_plot, filename="/content/drive/test.html", auto_open=False)

# this saves it within the notebook folder locallhy
plot(Tickets_plot, filename="/content/drive/test.html", auto_open=False)

相关问题 更多 >