Jupyter Notebook Enhancements, Tips And Tricks

You rock, @msm1089 - thank you for doing the work!

I can’t help but want to tell that the b (break) command in Pdb is super super helpful to debug/experiment the source code.

Before I usually copy/paste the source code in jupyter notebook to experiment (by running line by line or adding pdb.set_trace() ) . If doing so is not evident, I would open VSCode and quickly going through chain of definitions and guessing what the code is doing. Sometimes it doesn’t work. For example, when I want to check the definition of self.after_batch(b) at line 53 in data/core.py I get “no definition found”

With the b command, I can set break point to any function that I want in Jupyter Notebook. It’s super handy and save me a lot of time

Below is an example of getting inside the cluster_columns function in fastbook