如何在 Google Colaboratory 上运行下载的 Jupyter Notebook? [英] How to run a downloaded Jupyter notebook on Google Colaboratory?
问题描述
我正在使用 Google Colaboratory &github.我创建了一个新的 Google Colab 笔记本,并在笔记本中使用一个简单的 !git clone
!git clone
将我的 github 项目克隆到其中.
I am using Google Colaboratory & github.
I create a new Google Colab notebook, and I clone my github project into it using a simple !git clone <github_link>
in the notebook.
现在,我的 github 项目中有一个 Jupyter notebook,我需要在 Google Colab 上运行它.我该怎么做?
Now, I have a Jupyter notebook in my github project that I need to run on Google Colab. How do I do that?
推荐答案
并不是真的需要下载笔记本.如果您的 Notebook 已经在 GitHub 存储库中,那么您唯一需要做的就是:
There is not a real need of downloading the notebook. If you already have your Notebook in a GitHub repo, the only thing you need to do is:
- 在任何浏览器中打开 GitHub 上的 Notebook 文件(因此 URL 以 .ipynb 结尾).
- 将 URL 从 https://github/full_path_to_your_notebook 更改为 https://colab.research.google.com/github/full_path_to_your_notebook
- Open your Notebook file on GitHub in any browser (So the URL ends in .ipynb).
- Change the URL from https://github/full_path_to_your_notebook to https://colab.research.google.com/github/full_path_to_your_notebook
这应该可行.
这篇关于如何在 Google Colaboratory 上运行下载的 Jupyter Notebook?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!