News for hackers. Stuff that matters.
Re:Jupyterlab Desktop by SilverBirch on Sunday February 12, 2023 @06:25AM (#34761997)
Have you tried debugging with Visual studio code? It sounds a lot like what you're asking for. Stick breakpoints where you want them, you can step through etc, and there's variable viewer in the left hand panel - which isn't great on it's own, but then you can right click on the dataframe and open it in data viewer and it'll open a new tab with the dataframe in a table that you can view, and then if you step further through the program you can hit refresh on that view and it'l show you the updated frame.
Re:Jupyterlab Desktop by edot on Sunday February 12, 2023 @08:15AM (#34762576)
Yep, and if you click the three dots next to the debugger config selector on the top left, you can access the debug console and play with a live terminal with access to all of the variables and data that are currently paused.
Re:Jupyterlab Desktop by plaidfuji on Sunday February 12, 2023 @10:18AM (#34763436)
You know what would be killer, if VS Code debug mode would kick out into a notebook environment.
Re:Jupyterlab Desktop by mattnewton on Sunday February 12, 2023 @12:18PM (#34764629)
The repl it provides is pretty close. You can also use special comments to designate cells and just run those parts of a larger program in isolation with a repl, which I have used for debugging
Re:Jupyterlab Desktop by tippytippytango on Sunday February 12, 2023 @01:14PM (#34765189)
Vscode already has a jupyter notebooks mode with full debugger support if that’s what you mean by this.
Re:Jupyterlab Desktop by meken on Sunday February 12, 2023 @03:06PM (#34766342)
I had this idea a few years ago and built an emacs front end for it

Would be really slick in vscode…

https://github.com/ebanner/pynt

Re:Jupyterlab Desktop by mark_l_watson on Sunday February 12, 2023 @10:44AM (#34763663)
Coincidentally, I just tried this yesterday and it was a good experience. No setup time, I just clicked to the left of a line of code to set a breakpoint, and then clicked the debug icon instead of the run icon. The local variable viewer was good enough for me.