Ipython

How To Debug Python Code In Ipython And Jupyter Notebook

When you run python script file in ipython command console or jupyter notebook web page, if your source code has exception, it will throw out the exception and stop at the line where the exception occurred. In this situation, you can set breakpoints and run into ipython debug mode, then you can debug your python …

How To Debug Python Code In Ipython And Jupyter Notebook Read More »

How To Introspect ( Look Inside ) Python Objects In Ipython

Ipython provide some magic command ( ?, ??, %pdef, %pdoc, %psource, %pfile ) for you to look inside python objects(  variable, function, class. module, object etc ). In this article i will tell you how to use them to introspect python objects in ipython. Below example need an ipython environment, if you do not install …

How To Introspect ( Look Inside ) Python Objects In Ipython Read More »