例如,我在某些URL下有一个Python文件可用
在现实中,它将不是要点,而是一些课件/作业复习软件。
我如何使用谷歌Colab打开这样的URL,这样我就可以运行Python代码了?
我知道我可以为Github专家或存储库构建colab URL,但是我可以为任意的URL构建它吗?
发布于 2018-09-04 01:31:48
目前还没有办法按照您的要求-构造一个URL,这将导致Colab自动加载一个.py文件的内容在一个特定的网址到一个新的Colab笔记本。
与此最接近的是在github上托管一个笔记本,然后使用Colab url打开它。
http://github.com/username/repository/path/to/notebook.ipynb可以在Colab中使用http://colab.research.google.com/github/username/repository/path/to/notebook.ipynb打开http://gist.github.com/username/hash/filename.ipynb可以在Colab中使用http://colab.research.google.com/gist/username/hash/filename.ipynb打开https://stackoverflow.com/questions/52131683
复制相似问题