[英]How to run isolated jupyterhub notebooks
I'm running a jupyterhub using sudospawner on CentOS7 server. 我正在CentOS7服务器上使用sudospawner运行jupyterhub。 The purpose of jupyterhub is twofold jupyterhub的目的是双重的
Initially when I was installing jupyterhub, someone told me that different users would be able to run isolated versions of the same notebook. 最初,当我安装jupyterhub时,有人告诉我,不同的用户将能够运行同一笔记本的隔离版本。 In other words, if person A were to change a parameter in a master notebook from "foo" to "bar" this wouldn't cause B's single-user notebook to change, since each person is spawning a separate server. 换句话说,如果人A将主笔记本中的参数从“ foo”更改为“ bar”,则不会导致B的单用户笔记本发生变化,因为每个人都在生成单独的服务器。
However, now that it's actually installed, I find out that this is not the case. 但是,既然已经实际安装了,我发现情况并非如此。 As long as I have the right permissions, I can change anyone's notebook, and this change is reflected across anyone who has the notebook open. 只要我拥有正确的权限,就可以更改任何人的笔记本,并且此更改会在打开笔记本的任何人中反映出来。 This defeats point #2. 这击败了第二点。 I want persons A, B, C to all use the same notebook N without changes being reflected on each person's local machine. 我希望A,B,C所有人都使用同一笔记本N,而不会在每个人的本地计算机上反映出更改。
Now I have thought of a solution where we keep a git repo of the master notebook and run some code to automatically pull the repo into each person's local dir upon logging in. However, is there a simpler way or more accepted way to accomplish the same thing with just jupyterhub configuration commands? 现在,我想到了一个解决方案,其中我们保留主笔记本的git repo并运行一些代码以在登录时自动将repo放入每个人的本地目录中。但是,有没有更简单的方法或更被接受的方法来完成此操作只需jupyterhub配置命令就能完成?
If you set up jupyterhub on a linux server then file permissions will take care of this. 如果您在Linux服务器上设置jupyterhub,则文件权限将解决此问题。 My setup using SudoSpawner and PAM authentication on a personal CENTOS 7 server: 我在个人CENTOS 7服务器上使用SudoSpawner和PAM身份验证的设置:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.