How do I troubleshoot my coding in a notebook?

  • Updated

To troubleshoot your code in a notebook, you need to insert “%%debug” (yes, there are two percentage-signs) at the top of the cell you’d like to debug. When you run the cell with this special command, a free text area shows up, and you can enter variable names, one at a time, to inspect what they contain. Enter ‘c’ in the text area to exit the debug mode. For more complex code troubleshooting in Python, install the package “pixiedust” by following the instructions in How do I install packages in notebooks?

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Article is closed for comments.