News for hackers. Stuff that matters.
Re:Jupyter Notebook 7 by nl on Thursday July 27, 2023 @12:31AM (#36888936)
> Both Jupyter Notebook and JupyterLab are widely used across data science, machine learning, computational research, and education.

Are they though? Does anyone actually use JupyterLab by choice?

From what I've seen people love Jupyter Notebook but find JupyterLab misses the mark (and this is certainly my experience).

Re:Jupyter Notebook 7 by laichzeit0 on Thursday July 27, 2023 @12:40AM (#36888987)
Notebook classic for me. Vim keystrokes + Black plugin for formatting. I hate JupyterLab, have tried it multiple times. Have tried VSCode and PyCharm’s notebooks. I always go back to Classic as it just feels right.
Re:Jupyter Notebook 7 by daniel_grady on Thursday July 27, 2023 @12:38AM (#36888978)
Strongly agree.
Re:Jupyter Notebook 7 by devsda on Thursday July 27, 2023 @12:59AM (#36889105)
The couple of times I experimented with jupyter ecosystem, it was only through labs. I thought notebook is the barebones app and labs is the more integrated ide like approach. But still for some reason didn't stick with it.

Would you mind sharing the areas where you feel lab falls short and where notebook does it better?

I want to give notebooks a try.

Re:Jupyter Notebook 7 by akasakahakada on Thursday July 27, 2023 @04:06AM (#36890419)
If there isn't jupyterlab, I will just stick with google colab. Same notebook but lightyears better inplementation. You can tab to autocomplete code off the shelf in colab.
Re:Jupyter Notebook 7 by timlod on Thursday July 27, 2023 @01:10AM (#36889179)
I've long switched to Emacs/Org, but used JupyterLab extensively before (as a data scientist). It's way more powerful than vanilla notebooks since you can open notebooks/code/related side-by-side, easier to extend (with lab extensions), etc.

I always thought people only still used vanilla notebooks because that's what people say they use, e.g. "I work with Jupyter notebooks" (even though that may well be in JupyterLab). So most regular users wouldn't necessarily know about JupyterLab.

Re:Jupyter Notebook 7 by gpderetta on Thursday July 27, 2023 @05:44AM (#36891163)
I have used org-mode/babel as a notebook replacement, and obviously the flexibility and the editing capabilities are vastly superior to Jupyter notebook, but I fund it sluggish. I assume that, at least in my setup (using babel-python), the kernel is invoked synchronously. I also didn't try to get any form of completion working, but it should be possible and it would be nice to have.

What is your setup?

Re:Jupyter Notebook 7 by taeric on Thursday July 27, 2023 @10:53AM (#36894502)
There is ob-async that worked well back when I tried it. Might be worth a look if the synchronous nature of the executions is slowing you down.
Re:Jupyter Notebook 7 by timlod on Sunday August 06, 2023 @12:08AM (#37018908)
I use emacs-jupyter, which has async execution. Sorry for the late reply, only just now noticed this!
Re:Jupyter Notebook 7 by williamstein on Thursday July 27, 2023 @01:13AM (#36889198)
Interestingly this new Jupyter Notebook v7 is basically JupyterLab, but extensively configured to have a UI very similar to Jupyter Notebook. Under the hood it is a completely different (and much more modern) codebase than Jupyter Notebook 6.x, and it’s really cool that this finally landed!
Re:Jupyter Notebook 7 by f6v on Thursday July 27, 2023 @01:29AM (#36889295)
I run Jupyter lab with R and Python kernels for bioinformatics analysis. I saw it once in some tutorial and kind of liked it more than notebook.
Re:Jupyter Notebook 7 by actuallyalys on Thursday July 27, 2023 @01:32AM (#36889319)
I primarily use Jupyter Lab. I have some frustrations but I generally like being able to manage multiple kernels from one notebook, having multiple views into one notebook, having context-sensitive help, and having some of the other features that were only in Lab.

That being said, I'm glad they've switched course and continue to work on Notebook once it became clear some people preferred it to Lab. With some of the added features and the ability to switch between Lab and Notebook more easily, I may give Notebook another try.

Re:Jupyter Notebook 7 by kzrdude on Thursday July 27, 2023 @03:34AM (#36890180)
What is the usecase you have for multiple kernels in one notebook?
Re:Jupyter Notebook 7 by i_love_limes on Thursday July 27, 2023 @06:32AM (#36891543)
In my field (genetic epidemiology), there are annoyingly un-standardised toolsets. There are libraries in R, python, and C/C++ binaries. Being able to string these together in one notebook is helpful.

That being said, I usually just stick to one notebook per thing.

Re:Jupyter Notebook 7 by actuallyalys on Thursday July 27, 2023 @09:40AM (#36893332)
It's not using multiple kernels in one notebook, but being able to manage all my kernels without opening up another window.
Re:Jupyter Notebook 7 by tomjakubowski on Thursday July 27, 2023 @09:20AM (#36893044)
How does mixing and matching kernels in one notebook work? Can you directly exchange data between cells of different kernel types somehow? Do you go through the filesystem or some kind of in-memory serialization?

(I'm sorry for the questions that could be answered from documentation, but I can't find the docs on this feature! I have been wanting to specify data cells in a notebook, like the markdown cells, and then reference their contents from a code cell)

Re:Jupyter Notebook 7 by wenc on Thursday July 27, 2023 @01:52AM (#36889442)
> Are they though? Does anyone actually use JupyterLab

I always use JupyterLab by choice.

However between JupyterLab and VS Code Jupyter, it’s VS Code every time. It’s just so much better.

Re:Jupyter Notebook 7 by catsarebetter on Thursday July 27, 2023 @01:59AM (#36889485)
100% tons of DL/ML researchers use Jupyter. I think the problem that most have is deploying the apps in prod.
Re:Jupyter Notebook 7 by philip-b on Thursday July 27, 2023 @04:17AM (#36890508)
I am confused. Isn't Jupyter Lab the same as Jupyter Notebook but also with a file chooser and some extra functions? I don't care a lot which one I'm choosing. I always open Jupyter Lab because it has some very small neat additions. Why would I want to want to use Jupyter Notebook without the Lab interface around it?
Re:Jupyter Notebook 7 by hcks on Thursday July 27, 2023 @06:11AM (#36891379)
It’s literally the same except Lab has a file picker, but it’s a meme for some people to pretend Lab is some sort of disaster.
Re:Jupyter Notebook 7 by dacryn on Thursday July 27, 2023 @04:35AM (#36890633)
jupyterlab is a lot more popular than notebook in my workplace.

There is literally no downside to using it over notebook, why would you prefer notebook at all?

the file browsers, the terminal, the plugins, ... so much better

Re:Jupyter Notebook 7 by atoav on Thursday July 27, 2023 @04:39AM (#36890652)
* * *
Re:Jupyter Notebook 7 by imglorp on Thursday July 27, 2023 @06:55AM (#36891728)
Yeah, another thing you can do is offer Labs as a service (Jupyter Hub) to a group of users and then you can do things across the org like preinstalled requirements, shared or persistent storage, federated users, etc. If you run this on kubernetes it'll spawn up and down labs as people login/out and let you manage lab lifecycles, proxying, etc. We bundle Hub with our AI product at $work to give our users a packaged experience.

https://jupyter.org/hub

Re:Jupyter Notebook 7 by jncfhnb on Thursday July 27, 2023 @07:48AM (#36892089)
I have seen the exact opposite. JupyterLab is far more dominant. Including cloud service providers like AWS’ Sagemaker using it as the go to simple data scientist interface.

I started strongly advocating for it pretty much immediately. The waste of space on the margins of the notebook view was (is?) awful.

Re:Jupyter Notebook 7 by zelphirkalt on Saturday July 29, 2023 @07:52PM (#36926121)
> The waste of space on the margins of the notebook view was (is?) awful.

If that is your only concern, it will probably be quite easy to write a user style sheet to fix it.

Re:Jupyter Notebook 7 by geysersam on Thursday July 27, 2023 @08:05AM (#36892224)
I vastly prefer lab to notebook. My impression is that lab is just notebook with slimmer margins tabs, overall better UI, what am I missing?