如何在 Google Colaboratory 上运行下载的 Jupyter Notebook? [英] How to run a downloaded Jupyter notebook on Google Colaboratory?

查看:28
本文介绍了如何在 Google Colaboratory 上运行下载的 Jupyter Notebook?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 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:

  • 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆