合作:如何在本地计算机上安装和使用? [英] Colaboratory: How to install and use on local machine?

查看:105
本文介绍了合作:如何在本地计算机上安装和使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Google Colab很棒,但我希望我可以完全在本地和脱机运行colab笔记本,就像从本地提供的jupyter笔记本一样?

Google Colab is awesome to work with, but I wish I can run colab notebooks completely locally and offline, just like jupyter notebooks served from the local?

我该怎么做?我可以安装一个colab软件包吗?

How do I do this? Is there a colab package which I can install?

编辑:该问题的先前答案似乎提供了访问Google托管的Colab的方法.但这不是我想要的.

EDIT: Some previous answers to the question seem to give methods to access Colab hosted by Google. But that's not what I'm looking for.

我的问题是我该怎么做pip install colab,这样我就可以像pip install jupyter之后的jupyter一样在本地运行它. Colab软件包似乎不存在,所以,如果我需要它,该怎么做才能从源代码安装它?

My question is how do I pip install colab so I can run it locally like jupyter after pip install jupyter. Colab package doesn't seem to exist, so if I want it, what do I do to install it from the source?

推荐答案

来自此 Github链接,看来Google Colab可能不是(或保持)开源.

From this Github link, it seems that Google Colab may not be (or remain) opensource.

无论我寻找什么,回购都在此处:

From whatever I have hunted for, the repo is here:

git clone https://github.com/googlecolab/colabtools.git
cd colabtools
python setup.py install

然后检查是否已安装它:)

And then check if you have it installed :)

pip list | grep colab
google-colab                       0.0.1a1

或者,如果您想要一个轮子(将放置在dist文件夹中),则应该这样做

Alternatively if you want a wheel (will be put inside dist folder), you shall do

python setup.py bdist_wheel

这篇关于合作:如何在本地计算机上安装和使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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