you want to profile with %lprun is that the overhead of "tracingthe execution time of each line is significant tracing functions that are not of interest would potentially significantly alter the profile results ipython html notebook starting in the ipython teamled by brian grangerbuilt web technology-based interactive computational document format that is commonly known as the ipython notebook it has grown into wonderful tool for interactive computing and an ideal medium for reproducible research and teaching 've used it while writing most of the examples in the booki encourage you to make use of ittoo it has json-based ipynb document format that enables easy sharing of codeoutputand figures recently in python conferencesa popular approach for demonstrations has been to use the notebook and post the ipynb files online afterward for everyone to play with the notebook application runs as lightweight server process on the command line it can be started by runningipython notebook --pylab=inline [notebookappusing existing profile diru'/home/wesmconfig/ipython/profile_default[notebookappserving notebooks from /home/wesm/book_scripts [notebookappthe ipython notebook is running at[notebookappuse control- to stop this server and shut down all kernels on most platformsyour primary web browser will automatically open up to the notebook dashboard in some cases you may have to navigate to the listed url from thereyou can create new notebook and start exploring since you use the notebook inside web browserthe server process can run anywhere you can even securely connect to notebooks running on cloud service providers like amazon ec as of this writinga new project notebookcloud appspot commakes it easy to launch notebooks on ec tips for productive code development using ipython writing code in way that makes it easy to developdebugand ultimately use interactively may be paradigm shift for many users there are procedural details like code reloading that may require some adjustment as well as coding style concerns as suchmost of this section is more of an art than science and will require some experimentation on your part to determine way to write your python code that is effective and productive for you ultimately you want to structure your code in way that makes it easy to use iteratively and to be able to explore the results of running program or function as effortlessly as possible have found software designed with ipythonan interactive computing and development environment www it-ebooks info