使用令牌将Colabatory连接到本地运行时

时间:2018-06-13 15:23:19

标签: google-colaboratory

当使用conda安装的Jupyter服务器创建运行时(不知道它是否适用于其他元数据包)服务器启动并提供连接端口和令牌。 e.g。

 $ jupyter notebook 
[I 16:09:59.582 NotebookApp] [nb_conda_kernels] enabled, 11 kernels found
[I 16:09:59.831 NotebookApp] [nb_anacondacloud] enabled
[I 16:09:59.834 NotebookApp] [nb_conda] enabled
[I 16:09:59.863 NotebookApp] ✓ nbpresent HTML export ENABLED
[W 16:09:59.863 NotebookApp] ✗ nbpresent PDF export DISABLED: No module named 'nbbrowserpdf'
[I 16:09:59.865 NotebookApp] Serving notebooks from local directory: /home/peter/Desktop
[I 16:09:59.865 NotebookApp] 0 active kernels
[I 16:09:59.865 NotebookApp] The Jupyter Notebook is running at:
[I 16:09:59.865 NotebookApp] http://localhost:8888/?token=f2e38594d77977a7e8d0d53d31699037e8c184ee108191ea
[I 16:09:59.865 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

是否有办法为合作的本地连接设置令牌(没有它就不会连接)

我按照此处https://research.google.com/colaboratory/local-runtimes.html

的说明操作

更新:如果令牌设置为空白,则可以连接,例如与

jupyter notebook --NotebookApp.allow_origin='https://colab.research.google.com' --port=8888 --NotebookApp.token=''

这略微次优,因为令牌提供了更多的安全性。重要的是我想如果暴露了juptyer服务器。

0 个答案:

没有答案