Live data from Hacker News

Jupyter Notebook 7

blog.jupyter.org

51–60 of 118 posts

Re: Jupyter Notebook 7

#51
post #28

Earlier quoted context omitted.

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 a…

What is the usecase you have for multiple kernels in one notebook?

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

#52

My problem with vanilla jupyter notebook is that they hide every settings from you. Look at those 4:3 ratio dead zones on two sides, who would have thought that you can edit the css or javascript preference to increase your screen real estate? People told me to use extensions but none of them really actually work, including the installation process.

It's a fair point, but it's hardly unique to Jupyter. In fact, while 99% of websites suffer from this problem, I think it's unfair to highlight it specifically wrt Jupyter. Heck, even the site we're on right now does a poor combination of uncomfortably-long lines AND unused left and right margins.

99% of websites are not insanely popular development environments. vscode.dev, for example, takes up the full browser width.

Re: Jupyter Notebook 7

#53
post #4

> 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).

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

#54
post #45

Earlier quoted context omitted.

Like everything else in the Python ecosystem, it's half-baked and not composable. People use it for two reasons: a) because they need to get those graphs on the screen and this is the only way b) running ML code on a remote, beefier server.

What would a "composable" experience look like?

You would have to formalize the inputs and outputs of your notebook, perhaps a preamble with imports and so on. Then other notebooks could use yours, kind of like importing (perhaps exactly by importing?)

As it is now, you typically wind up “programizing” your notebook once it does what it should so you can run in batch and so on.

Re: Jupyter Notebook 7

#55
Timely! I just deployed it on our company server. There's a hidden gem that's not enabled by default and really helps when pair programming in Jupyter:

https://jupyterlab.readthedocs.io/en/stable/user/rtc.html

Here's a Dockerfile that enables it:

    FROM jupyter/scipy-notebook:2023-07-25
    RUN pip install jupyter-collaboration
    ENV DOCKER_STACKS_JUPYTER_CMD="lab --collaborative"
Usage:

    docker build . -t jupyter-collaboration && docker run -p 10000:8888 jupyter-collaboration
The only missing would be having more than one cursor and some convenient way to start and attach remote servers, e.g. over AWS...

Re: Jupyter Notebook 7

#56
post #12

I have never understood the appeal of this. You can generate good looking presentations, but that is all. Is any real science done with this or is it the Powerpoint for PyCon talks?

A heck of a lot of science gets done with this. Something like it is basically mandatory for interactive analysis of datasets large enough they take a decent amount of time to load into memory and process, and jupyter is the best and most common option (you can kind of bodge it with the vainlla python REPL, and there are other options with a similar-ish workflow).

Re: Jupyter Notebook 7

#58
post #12

I have never understood the appeal of this. You can generate good looking presentations, but that is all. Is any real science done with this or is it the Powerpoint for PyCon talks?

I was extremely stubborn when I started out in python. Built a script for everything. Jupyter is messy. But once I started using it I never went back for data analysis tasks. Say you have a large file you want to read into memory. That’s step 1, it takes a long time to parse that big json file they sent you. Then you want to check something about that data, maybe sum one of the columns. That’s step 2. Then you realiz…

I like to imagine it's like a very advanced REPL that's somewhat reproducible (if you run everything from the beginning). If you don't find the appeal of being able to mutate state live for experimentation then it isn't for you.

Re: Jupyter Notebook 7

#59
post #47

Man Open Source software should not post announcements like this using a blogging platform that nags you to pay to view posts. Like it's possible to dismiss the prompt and view the post (for now at least) but something about that definitely feels off.

100% agreed. I can't stand Medium.

Much <3 to the Jupyter team. Github pages + Jekyll is performant!

Re: Jupyter Notebook 7

#60
post #4

> 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).

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.

Post reply on HN