![](/img/trans.png)
[英]How to upload a text file using google.colab import files and then converting it into a set of words?
[英]from google.colab import files, how to get the same behaviour of files in Jupyterlab
我目前正在開發一個在 colab 上運行良好的項目,但我想在我的本地 jupyterlab 上修改和運行它,但該項目中有一些特定於 colab 的功能,如files
和以這種方式from google.colab import files
導入的output
from google.colab import files
和from google.colab import output
。
如果您有辦法解決此問題,我將不勝感激。
我是在 pypi 上找到的,所以基本上你可以在本地pip install google-colab
模塊pip install google-colab
然后在你的筆記本中使用它。
您也可以在這里找到所需模塊的存儲庫: https : //github.com/googlecolab/colabtools/tree/0162530b8c7f76741ee3e518db34aa5c173e8ebe/google/colab
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.