[英]I use Colab and Plotly and I want save a Plotly figure - how to install plotly-orca in Colab?
我收到以下錯誤消息。
如果您還沒有安裝 orca,您可以使用 conda 進行安裝,如下所示:
$ conda install -c plotly plotly-orca
或者,請參閱https://github.com/plotly/orca 上的 orca 項目 README 中的其他安裝方法。
我試過: !pip install plotly-orca
,但這會引發錯誤。
收集 plotly-orca 找不到滿足 plotly-orca 要求的版本(來自版本:)沒有找到與 plotly-orca 匹配的分布
我想做的事:
將 iplotly 圖形保存為 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)
我用過這個:
!pip install plotly==4.4.1
!wget https://github.com/plotly/orca/releases/download/v1.2.1/orca-1.2.1-x86_64.AppImage -O /usr/local/bin/orca
!chmod +x /usr/local/bin/orca
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.