我正在尝试与我的团队共享我的 Jupyter 笔记本,并希望我们所有人都在同一个笔记本上进行验证?可能吗 ?
1 回答
Yes, JupyterLab 3.1 introduces Real Time Collaboration mode:
Ensure you have JupyterLab 3.1 or newer installed, and for convenience install
jupyterlab-link-share
:pip install -U "jupyterlab>=3.1" jupyterlab-link-share
Add
c.LabApp.collaborative = True
setting to your config file (which isjupyter_server_config.py
orjupyter_notebook_config.py
depending on the server you use)After restarting JupyterLab open the new
Share
menu and chooseShare Jupyter Server Link
, copy the link and send it to your collaborator. Of course, the serve needs to be accessible for them (in the same network, or publicly available).
You can try it out on binder: (here using this public gist).
JupyterHub users may need to perform additional configuration (as discussed on the discourse here) because there are additional permissions/authentication questions to be dealt with.