Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

multiple simultaneous connections on same jupyter notebook at the same time

I created a jupyter notebook with the purpose of taking a survey on a fairly large group of people, which consists of 1 script that each person has to run and fill in. To make it convenient for them I hosted a public jupyter notebook server and mailed every person the link to participate.

The problem is that when one person is running the script, all other people have to wait until that person closes the notebook in order for them to run it. I want a system that generates one seperate kernel for every incoming connection so multiple people can take the survey at the same time.

Does anyone have any ideas?

like image 892
R34V3r Avatar asked Oct 29 '18 13:10

R34V3r


People also ask

Can multiple people work on a Jupyter Notebook at the same time?

The new collaborative editing feature enables collaboration in real-time between multiple clients without user roles. When sharing the URL of a document to other users, they will have access to the same environment you are working on (they can e.g. write and execute the cells of a notebook).

How do you run multiple cells in a Jupyter Notebook at the same time?

Use the following smart shortcuts to quickly run the code cells: Ctrl+Enter : Runs the current cell. Shift+Enter : Runs the current cell and select the cell below it. To execute all code cells in your notebook, click. on the notebook toolbar or press Ctrl+Alt+Shift+Enter .

Can you collaborate on JupyterLab?

Collaboration in JupyterLabWith the Git version control sytem added through the Git extension in JupyterLab, users can share their work on files in JupyterLab. To enable sharing when working on files, users must be added to the project as collaborators and must have access to the associated project Git repository.

Can a Jupyter Notebook be shared?

Sharing LocallyYou can export to a variety of formats from within the notebook by navigating to File -> Download As. You'll want to export your notebook as a Jupyter Interactive Notebook ( . ipynb file format) if you'd like the person you're sharing it with to interact with the notebook.


1 Answers

Jupyter Notebook wasn't made for simultaneous collaboration on the same file. One solution I've seen that addresses exactly this problem is Google Colab, which is a fork of Jupyter built on Google's collaborative Docs platform, and allows exactly what you're talking about.

It looks like for Jupyter Lab, they're hoping to integrate simultaneous editing as a core feature (they were originally going for a Google Drive backend, but Google seems to have pulled support and now they're considering more P2P solutions like IPFS), but it looks like that work has hit a few roadbumps and won't be released with version 1.0.

like image 61
scnerd Avatar answered Sep 22 '22 07:09

scnerd