Re: ipython: Multiple commands on the same line and newlines

2011-04-17 Thread Phil Winder
On Apr 17, 1:11 pm, Andrea Crotti andrea.crott...@gmail.com wrote: Phil Winder philipwin...@gmail.com writes: Yes, that does not produce an error, but it does not work. Please refer to my first post. Try the first code, you will get a syntax error. Placing things on one line makes for easy

[Q] ipython: Multiple commands on the same line and newlines

2011-04-16 Thread Phil Winder
Hi, I'm having a go at using ipython as a command prompt for data analysis. Coming from Matlab, I'm used to typing multiple commands on the same line then using the up arrow to go through my history. How can I write multiple python commands on the same line? E.g. x = 0; while x 10: x = x + 1;

Re: ipython: Multiple commands on the same line and newlines

2011-04-16 Thread Phil Winder
On Apr 16, 5:29 pm, Andrea Crotti andrea.crott...@gmail.com wrote: Phil Winder philipwin...@gmail.com writes: Hi, I'm having a go at using ipython as a command prompt for data analysis. Coming from Matlab, I'm used to typing multiple commands on the same line then using the up arrow to go