Re: [codenode-devel] Re: [sage-devel] Indents in notebook cells

2009-08-10 Thread William Stein
On Mon, Aug 10, 2009 at 11:08 AM, Dorian Raymer wrote: > Evaluating Kiran's CELL 1 in a codenode python notebook returns a similar > error: > > File "", line 1 > u = 2+3 >^ > IndentationError: unexpected indent > > I don't think this is a sign of any bug, it is simply bad Python syntax.

Re: [codenode-devel] Re: [sage-devel] Indents in notebook cells

2009-08-10 Thread Dorian Raymer
Evaluating Kiran's CELL 1 in a codenode python notebook returns a similar error: File "", line 1 u = 2+3 ^ IndentationError: unexpected indent I don't think this is a sign of any bug, it is simply bad Python syntax. It doesn't make sense to exec something with leading white space with no

[sage-devel] Indents in notebook cells

2009-08-10 Thread Kiran Kedlaya
What would you expect from the following input into the notebook? CELL 1: u = 2+2 u = 2+3 CELL 2: print u If you try something like this at a command line, the first line gives an error due to the spaces in front. But on my notebook server (running 4.1), the first cell evaluates without