|
|
|
|
|
by tdfx
4938 days ago
|
|
I was lucky enough to find IPython early on when I started with Python. I'm constantly amazed with its feature set. Some cool things I found useful: The "run" command for running python scripts: * -t to print timing information * -p to print profiling info from profiler module * -d run the script under pdb interactively (with -b to set line breakpoints) * -n to set __name__ All of these things can be done fairly easily on their own, but doing it through IPython makes the output so much easier to read and work with. Whenever I'm working with data I need to visualize, I like to use: ipython qtconsole --pylab=inline
to get a terminal-like window that has inline graphs from matplotlib functions. |
|