Hacker News new | ask | show | jobs
by y4mi 2606 days ago
Debuggers are only really useful if you're trying to figure out why some object in your server doesn't do what you want it to.

I'd wager that almost no data scientists write object oriented code.. it's probably mostly done one calculation at a time. executed in the notebooks repl. So the value you get from ide debuggers is tiny, as you're already doing everything one step at a time.

1 comments

You still write functions and may want to inspect variable state in the middle of function execution.
Correct. RStudio has this feature, where variable values can be inspected in a sidebar. This would be a really useful feature for Jupyter, especially when running a Python kernel.
There is a JupyterLab extension for that: https://github.com/lckr/jupyterlab-variableInspector
Does it work with variables that are local to a function? I don't mean inspecting global variables after having executed a cell, but local variables in the middle of a function execution.