How to Use Print in Jupyter Interactive Notebook for Better Debugging and Output?

20 Replies, 1691 Views

print in Jupyter interactive notebook is my go-to for debugging too! One thing I do is use `print` with `locals()` or `globals()` to see all the variables in scope. Helps a ton when you’re not sure what’s going on.

Also, if you’re into visuals, try `matplotlib` inline with print to debug plots. Sometimes seeing the data and the plot together makes things click.

Messages In This Thread



Users browsing this thread: 1 Guest(s)