News for hackers. Stuff that matters.
Re:Jupyterlab Desktop by wenc on Sunday February 12, 2023 @03:21AM (#34761000)
I use Jupyter inside VS Code -- the Jupyter interface inside VS Code has a nicer UI and is very polished (supports black reformatting, refactoring, step debugging, etc.).

Haven't gone back to vanilla Jupyter or JupyterLab in the browser for years.

Re:Jupyterlab Desktop by ImaCake on Sunday February 12, 2023 @03:33AM (#34761073)
Vscode offers such an improved experience. Once you discover that autocomplete can take a millisecond instead of 5 seconds its pretty hard to go back.
Re:Jupyterlab Desktop by bsdz on Sunday February 12, 2023 @03:51AM (#34761181)
For me, I find I need both JupyterLab and the VSCode Jupyter extension. The vscode extension is superior for step-by-step debugging especially with integrated REPL console. However, I notice running cells in vscode is several magnitudes slower than executing the same cells in a JupyterLab session. Also I use several JupyterLab extensions such as citation manager, mathjax 3, etc and custom kernels utilising docker/GPUs etc. I'm not sure how to use these in vscode and also I'm not a fan of vscode's use of Katex over mathjax 3.
Re:Jupyterlab Desktop by PartiallyTyped on Sunday February 12, 2023 @04:00AM (#34761231)
The only case where this setup does not cut it is when you wish to use the notebook as slides for a presentation.
Re:Jupyterlab Desktop by wodenokoto on Sunday February 12, 2023 @04:19AM (#34761352)
It has better auto completion. Not better interface.
Re:Jupyterlab Desktop by sireat on Sunday February 12, 2023 @05:27AM (#34761708)
I could never figure out a good use of JupyterLab over regular Jupyter notebooks mainly because of compatibility reasons. Still it is good that they are making progress.

Over the last 5 years I've gone:

* Anaconda install of Jupyter Notebooks (until the license change)

* running JupyterHub server for my organization

* PyCharm

* VSCode

VS Code has made fantastic progress in the last few years for Jupyter Notebook support. Integrated with Copilot it is scarily productive.

At the same time for teaching non-technical audiences it is hard to beat Google Colab for availability(mybinder.org type solutions are generally more brittle).

Re:Jupyterlab Desktop by s5ma6n on Sunday February 12, 2023 @10:33AM (#34763563)
I am also mostly using VSCode for Notebooks however one big downside is the performance goes down the drain when the notebooks are large in size (i.e. Contains images, plots).

The cell execution speed drastically (up to 10x) slows down w.r.t. Notebook file size. Still looking for a solution to this problem.

Re:Jupyterlab Desktop by braza on Sunday February 12, 2023 @10:50AM (#34763722)
The biggest block for me to use Jupyter in VSCode is because it’s support for Jupyter environments in docker is a huge pain.
Re:Jupyterlab Desktop by mumblemumble on Sunday February 12, 2023 @11:44AM (#34764257)
I agree with the comments about bigger notebooks getting slower.

But I'm not sure it's enough of a hit to outweigh the other productivity gains I get, which are myriad. With vscode, I get vim emulation in Jupyter notebooks that actually works. I get better autoformatting options, and linting of notebook code. And I get a proper programmer's editor for working with *.py files. And that's just my greatest hits list.

Re:Jupyterlab Desktop by petemir on Sunday February 12, 2023 @11:59AM (#34764413)
I have tried VS Code for notebooks, but for the life of me I am not able to get an interpreter console attached to the same kernel running the notebook, and for me that's a no-go. I usually use the console as the way to test things/syntax easily, and then move that to the notebook.
Re:Jupyterlab Desktop by DwnVoteHoneyPot on Sunday February 12, 2023 @12:53PM (#34764980)
I find VS Code's UI for notebooks to be clunky. Each cell is way too large and it's cluttered with buttons that only show up with mouse-over.

Another issue is if you use vim key maps, Jupyter allows it in editor but vim mapping off automatically in notebooks.

Re:Jupyterlab Desktop by zsolt_terek on Sunday February 12, 2023 @03:00PM (#34766294)
Have you seen Python Interactive? There are no separate editors for each cell, but you edit a single file and use #%% to define the boundaries between cells. https://code.visualstudio.com/docs/python/jupyter-support-py
Re:Jupyterlab Desktop by efxhoy on Sunday February 12, 2023 @06:49PM (#34768470)
black has an optional jupyter component that lets it format notebooks with

  pip install "black[jupyter]"