[英]how can i save the codes in colab and it's permissions
I want to save my codes and i want to restrict it that no one can change it even myself.我想保存我的代码,并且我想限制它,即使我自己也无法更改它。 I don't know how to do it.我不知道该怎么做。 is it possible?可能吗? I know how to share without edit permission.我知道如何在没有编辑权限的情况下分享。 but how to do it for myself但如何为自己做
There's a Playground Mode in Colab (check File menu), it still allows you to run and change everything but nothing will be saved, that applies to output too. Colab 中有一个游乐场模式(检查文件菜单),它仍然允许您运行和更改所有内容,但不会保存任何内容,这也适用于输出。 You can also create links to Playground mode Colab Notebooks yourself by appending #forceEdit=true&sandboxMode=true
to the URL, ie colab.research.google.com/drive/1R4O...?hl=en#forceEdit=true&sandboxMode=true
and perhaps collect those links into single Notebook and access those files from there.您还可以通过将#forceEdit=true&sandboxMode=true
附加到 URL 来自己创建指向 Playground 模式 Colab Notebooks 的链接,即colab.research.google.com/drive/1R4O...?hl=en#forceEdit=true&sandboxMode=true
并且也许将这些链接收集到单个笔记本中并从那里访问这些文件。
But even if you accidentally do mess up your Notebook, in most cases you can still roll back to pervious revision through Revision history , you can name revisions and manually save & pin your Notebook.但即使你不小心弄乱了你的笔记本,在大多数情况下,你仍然可以通过修订历史回滚到以前的修订,你可以命名修订并手动保存和固定你的笔记本。
Colab also integrates with Github and you can conveniently save the copy there as well for proper version control - File >> Save a Copy in Github Colab 还与 Github 集成,您可以方便地在那里保存副本以进行适当的版本控制 -文件 >> 在 Github 中保存副本
Works with private repositories and Github Gists too.也适用于私人存储库和 Github Gists。 And by default the "Open In Colab" button is added to those files, so no need to manually re-import anything to Colab or GDrive.默认情况下, “在 Colab 中打开”按钮会添加到这些文件中,因此无需手动将任何内容重新导入 Colab 或 GDrive。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.