Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Word wrap in magma interface

Hi all,

I'm experiencing a strange phenomenon when using the sage interface to magma, through the notebook interface (in firefox and chrome browsers, on separate computers). If I enter a command that is long enough to require word-wrapping in the standard input window, it causes the magma interpreter to throw an error. As best I can tell, it is passing the newline to magma erroneously. That is, I don't intend to have a newline there, but it's still causing an error. I was baffled what was causing the error, but then I broke the code (a long sum) into two shorter lines, each a command for half of the code for the sum.

Can anyone offer advice how to work with long lines of code in the sage magma interface, without having to awkwardly break them up? Thanks, David

click to hide/show revision 2
retagged

Word wrap in magma interface

Hi all,

I'm experiencing a strange phenomenon when using the sage interface to magma, through the notebook interface (in firefox and chrome browsers, on separate computers). If I enter a command that is long enough to require word-wrapping in the standard input window, it causes the magma interpreter to throw an error. As best I can tell, it is passing the newline to magma erroneously. That is, I don't intend to have a newline there, but it's still causing an error. I was baffled what was causing the error, but then I broke the code (a long sum) into two shorter lines, each a command for half of the code for the sum.

Can anyone offer advice how to work with long lines of code in the sage magma interface, without having to awkwardly break them up? Thanks, David

click to hide/show revision 3
retagged

Word wrap in magma interface

Hi all,

I'm experiencing a strange phenomenon when using the sage interface to magma, through the notebook interface (in firefox and chrome browsers, on separate computers). If I enter a command that is long enough to require word-wrapping in the standard input window, it causes the magma interpreter to throw an error. As best I can tell, it is passing the newline to magma erroneously. That is, I don't intend to have a newline there, but it's still causing an error. I was baffled what was causing the error, but then I broke the code (a long sum) into two shorter lines, each a command for half of the code for the sum.

Can anyone offer advice how to work with long lines of code in the sage magma interface, without having to awkwardly break them up? Thanks, David