News for hackers. Stuff that matters.
Re:The Jupyter+Git problem is now solved by sdfghswe on Wednesday July 19, 2023 @10:54AM (#36787447)
Jupyter+Git has no problem.

The problem is Jupyter notebooks+Git.

The solution is use Jupyter, but not Jupyter notebooks.

Re:The Jupyter+Git problem is now solved by SpriglyElixir12 on Wednesday July 19, 2023 @11:25AM (#36787983)
What is the difference between the two? Googling it shows some comparisons between jupyter lab vs notebook but I can't find anything on plain jupyter.
Re:The Jupyter+Git problem is now solved by sdfghswe on Wednesday July 19, 2023 @11:34AM (#36788112)
Jupyter is the protocol to communicate between a frontend and a backend.

Jupyter notebooks is an interactive notebook that implements that protocol.

Do you know what also implements the protocol? VS Code. And doesn't have any of the stupid problems that the Jupyter notebooks do.

Re:The Jupyter+Git problem is now solved by Noumenon72 on Wednesday July 19, 2023 @02:37PM (#36791181)
Are you saying that VS Code also lets you do all of the "Run just this cell" that notebooks do?
Re:The Jupyter+Git problem is now solved by sdfghswe on Thursday July 20, 2023 @06:41AM (#36798798)
Yes.

In VS Code if you do as below:

#%%

print("my python print")

#%%

Then you can run it as a cell. Crucially however, note that those delimiters are ALSO valid python code. So you just version as with everything else.

Re:The Jupyter+Git problem is now solved by jph00 on Wednesday July 19, 2023 @12:10PM (#36788724)
There isn’t a problem any more with notebooks and git because nbdev now provides a merge driver. So it’s fine to use notebooks with git now.
Re:The Jupyter+Git problem is now solved by esafak on Wednesday July 19, 2023 @02:30PM (#36791070)
Thanks, but this is a bit pedantic. For most people Jupyter is the notebook. You could just as well call the other one the "Jupyter protocol".
Re:The Jupyter+Git problem is now solved by sdfghswe on Thursday July 20, 2023 @06:40AM (#36798789)
It's not pedantic, it's a huge difference.

If I said "the problem is now solved, just use VS Code", most people would say "but that's not jupyter, i need the interactivity aspect", not realizing that VS Code is just as interactive (thank to jupyter).