Archive for the ‘IPython’ Category
Sunday, April 13th, 2008
So you’ve come up with a couple of ways to solve a problem in code. But how do you decide which way is the best? One criterion to decide on is to use the one that makes the most sense to you. Another criterion is to use the version that is fastest. Here’s how to quickly determine which way is fastest using the interactive interpreter IPython. (more…)
Posted in IPython, Python. Tags: algorithm, efficiency, speed ( 2 Comments »)
Sunday, December 2nd, 2007
You can start another thread in IPython to run a program in the background. (more…)
Posted in IPython. Tags: IPython, IPython help, Python ( No Comments »)
Sunday, December 2nd, 2007
One great thing about Python is the interactive debugger, which lets you inspect the value of variables at the point an error occurred. Of course, IPython integrates nicely with the Python debugger and makes debugging code a cinch. (more…)
Posted in IPython. Tags: IPython, IPython help, Python ( No Comments »)
Sunday, December 2nd, 2007
IPython makes it easy to edit source code, or create new scripts based on a couple of lines in your history, or paste examples from the web. (more…)
Posted in IPython. Tags: IPython, IPython help, Python ( No Comments »)
Sunday, December 2nd, 2007
You can make use of your Python skills by interacting with system commands directly for things like file renaming, directory restructuring, or calling any arbitrary system command from within IPython. Here are some ways to do that. (more…)
Posted in IPython. Tags: IPython, IPython help, Python ( No Comments »)
Sunday, December 2nd, 2007
For the pathologically lazy, there are some shortcuts in IPython to save you from typing often-used commands.
(more…)
Posted in IPython. Tags: IPython, IPython help, Python ( No Comments »)
Sunday, December 2nd, 2007
This post shows the different ways of keeping track of your work in IPython: the command history, saving the history (or parts of the history to file) for later use, and storing variables so you don’t have to create them next time you use IPython. (more…)
Posted in IPython. Tags: help, IPython, Python ( No Comments »)
Sunday, December 2nd, 2007
After working in IPython for a while, sometimes you’d like to use a variable you created way back at the beginning, but you don’t remember exactly what it was called. Here are some useful commands for working with variables in IPython. (more…)
Posted in IPython. Tags: help, IPython, Python ( No Comments »)
Sunday, December 2nd, 2007
Running programs or scripts in IPython is easy, and here are the commands to use. (more…)
Posted in IPython. Tags: IPython, IPython help, Python ( No Comments »)
Sunday, December 2nd, 2007
A reference table of commands to use when navigating directories in IPython. (more…)
Posted in IPython. Tags: directory navigation, IPython, IPython help, Python ( No Comments »)