Is there a way for two People to work on one Jupyter Notebook [closed]
Asked Answered
T

6

11

A friend of mine and me are doing some field research for our Physics degree. And we are using jupyter notebook to analyse the data we get. We usually sit together working at two different copies of the same file that in the end will be drag and dropped together using jupyter lab. This is obviously not ideal, so i thought is there any way for just two people to work on one document in Jupyter, sadly Google Colab has been Deprecated and CoCalc is expensive. So i thought id ask here if there is a way to make one person run a Jupyter notebook and the other one just being able to access it over peer to peer aswell so we could write in the same file at the same time. Do you guys know something that makes me do this maybe a workaround that i can do. Thanks for answers in advance

T answered 17/11, 2019 at 18:2 Comment(5)
you should use GitHub for this.Tory
Is Google Colab really deprecated? I see Jupyter colaboratory is indeed deprecated [1], but the Google colab tools repo [2] is active (commits, issues) and the stackoverflow tag is active [3]. [1] github.com/jupyter/colaboratory [2] github.com/googlecolab/colabtools [3] stackoverflow.com/questions/tagged/google-colaboratoryTyrothricin
@Tory this won't work well with jupiter notebooks, as they contain way more than just codeCerumen
Google Colab is not deprecated: colab.research.google.com. Where did you get this information from?Gallic
what i mean is that google colabs Colaboratory functions are deprecated. You cant work with multiple people efficently in it.T
O
11

CoCalc is expensive.

Fortunately, we also provide a complete free easy to install open source version of CoCalc, which you can run on any computer that supports Docker. For example, here's how to run it on Google cloud.

(I have put too many years of my life into making realtiime collaboration work for Jupyter via CoCalc... In any case, the open source code has been battle tested in production for a while now and is working well finally. I hope it can solve your problem...)

Omit answered 18/11, 2019 at 18:44 Comment(1)
this literally made my day 100% Better that is so dope good job. and thanks for the answerT
E
6

You can upload your notebook to Deepnote. It provides a hosted environment, where you and your colleague can connect at the same time and work on the same notebook in real-time (the same way you'd do in Google Docs).

Colab is also good, but writing at the same time will result in conflicts.

Extramural answered 4/6, 2020 at 16:35 Comment(2)
I have been beta testing Deepnote for quite some time now and its amazing.T
can you use COLAB as like as two users can edit a google sheets or can tow developers can use Live Share in VSCTribal
R
2

Notebook itself doesn't support to collaborate simultaneously, but you can use GitHub to manage your python script and upload it into Colab separately. This way Github can help manage the file history and solve the conflicts.

Rackety answered 17/11, 2019 at 18:7 Comment(1)
Coming back to this, Jupyter now supports real time collaboration via the --collaborative flag.T
L
2

JupyterLab 3.1.0a7 introduced real time collaboration.

There is a screencast showing it in action.
Key thing to note is the new top-level menu item called Share, to the right of Settings & Help.


You can click on launch binder here or here to try it now.

"Once you see the JupyterLab interface, there's a new top-level menu item called "Share"; click that, grab and share that URL, and you're done!"-SOURCE: Step #5 here

There's a gist here that seems to be updated regularly with how to activate the feature.

There's a detailed walk-through here if you want to add the ability into your own repositories that can launch via MyBinder.org. Although if that repo falls behind the gist, you'll probably want to consult the gist for the current best practices once you have the idea from the detailed walk-through.



Closely related question with an answer by @krassowski, is here. You may want to look there for some additional details.

Lase answered 12/8, 2021 at 19:55 Comment(0)
E
1

While you can use github for this it can get messy, many people clear output cells when committing to git to avoid conflict issues. Which would defeat the object of your review work.

You should try Curvenote (which we're building for that reason) it doesn't offer compute as its a collaborative writing tool, works on top of Jupyter via a chrome extenson and gives you real time versioning, commenting and diffs.

Enteritis answered 5/3, 2021 at 20:57 Comment(0)
C
1

Google Colab has been Deprecated and CoCalc is expensive

Noteable.io is 100% free for all users including storage, compute, RAM. For your purposes, it will be ideal as you will get Google Drive like collaboration (commenting, @mentioning, Annotating data points), versioning, sharing, interactive visualizations, choice of using Python and SQL in the same notebook and a ton of other features.

Here are good example notebooks on Noteable:

  1. Climate Change: An analysis of Dew Point for the city of Toronto
  2. Healthcare Sector Employee Attrition Exploratory Data Analysis
  3. Exploratory Data Analysis Using SQL and Python - Online Retailer Orders
Cavie answered 29/11, 2022 at 17:58 Comment(1)
This is realy cool thank you for sharing this.T

© 2022 - 2024 — McMap. All rights reserved.