简体   繁体   English

如何在 colab 中保存代码及其权限

[英]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.

相关问题 有没有办法来解决这个问题? +如何将代码保存到我的计算机中 - Is there a way to fix this? +how can I save the codes into my computer 如何从 Jupyter Notebook 下载(保存)所有代码? - How can I download (save) all the codes from Jupyter Notebook? 如何直接将文件从 colab 复制到 github 存储库? (可以将笔记本保存在 Github 存储库中) - How can I copy a file from colab to github repo directly? (It is possible to save the notebook in the Github repo) 如何在 Google Drive 中永久保存一个库并从 Google Colab 中加载它? - How can i permantly save a lib in Google Drive and load it from there in Google Colab? 我怎样才能简化代码? - How can i simplify the codes? 如何以boto编程方式检查Amazon S3权限? - How can I programmatically check Amazon S3 permissions with boto? 我可以将colab项目保存在Google驱动器上,然后上传并稍后开始吗? - can i save colab project on google drive and upload and start later? 如何保存快捷方式的图标? - How can I save a shortcut's icon? 我使用 Colab 和 Plotly,我想保存一个 Plotly 图 - 如何在 Colab 中安装 plotly-orca? - I use Colab and Plotly and I want save a Plotly figure - how to install plotly-orca in Colab? 如何在 Google Colab 中使用 Svelte - How can I use Svelte in Google Colab
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM