Programming in the Debugger
willcrichton.net
Programming in the Debugger
1–10 of 89 posts
Re: Programming in the Debugger
#2Very true. When programming in jupyter notebooks I often put off wrapping my code in a function because it becomes harder to interact with and debug. But this obviously becomes problematic when you want to leverage code reuse and abstraction.
In order to tackle this (somewhat) I made a tool [1] which allows you to take code anywhere and get it back into a jupyter notebook and make it top-level (e.g. function function/method and loop bodies).
Re: Programming in the Debugger
#3> Interactive editing and debugging is limited to top-level code. Very true. When programming in jupyter notebooks I often put off wrapping my code in a function because it becomes harder to interact with and debug. But this obviously becomes problematic when you want to leverage code reuse and abstraction. In order to tackle this (somewhat) I made a tool [1] which allows you to take code anywhere and get it back int…
And I realized that, past an intermediate level of expertise in this ecosystem, you could really benefit from dropping down to JSON of your notebook and doing a bit of "metaprogramming" (the way you did). Yet the jupyter development team doesn't appear to be taking that into account, i.e., not making it easy/consistent for users to programmatically manipulate their notebooks.
Re: Programming in the Debugger
#4Re: Programming in the Debugger
#5all without touching the mouse
Re: Programming in the Debugger
#6Re: Programming in the Debugger
#7Programming in the debugger is a massively overlooked paradigm. We use gdb for interactive usage. You could become a super-productive programmer if you can use gdb programmatically. The possibilities are endless. The problem: gdb developers don't think of that kind of usage as a core part of the software (let alone making programmability more important than interactivity, something I believe in). And that's why it's…
It has a builtin C interpreter which allowed you to dynamically add and change code while debugging.
Unfortunately the code has somewhat bitrotted, so it's hard to use on a modern Linux system
Re: Programming in the Debugger
#8Re: Programming in the Debugger
#9Re: Programming in the Debugger
#10> Interactive editing and debugging is limited to top-level code. Very true. When programming in jupyter notebooks I often put off wrapping my code in a function because it becomes harder to interact with and debug. But this obviously becomes problematic when you want to leverage code reuse and abstraction. In order to tackle this (somewhat) I made a tool [1] which allows you to take code anywhere and get it back int…
This has been one of my major gripes with ipython/jupyter notebook workflow. And I realized that, past an intermediate level of expertise in this ecosystem, you could really benefit from dropping down to JSON of your notebook and doing a bit of "metaprogramming" (the way you did). Yet the jupyter development team doesn't appear to be taking that into account, i.e., not making it easy/consistent for users to programma…