ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 08 Jan 2014 07:58:50 +0100How to get the same environment in "sage -ipython notebook" as in "sage"?https://ask.sagemath.org/question/10894/how-to-get-the-same-environment-in-sage-ipython-notebook-as-in-sage/If I start the command line version of sage with **sage** and type
integrate(x^2,x)
I get
1/3*x^3
as desired.
<br>
However, if I start sage in IPython's notebook with **sage -ipython notebook** and type the same thing I get
NameError: name 'integrate' is not defined
Trying to fix this by defining some prerequisites
from sage.all import *
,var x
I now get
RuntimeError: Use ** for exponentiation, not '^', which means xor
in Python, and has the wrong precedence.
<br>
**In other words, it is clear that *sage -ipython notebook* does not provide the same environment as *sage*.**
<h1>How can I fix this? I just want an IPython notebook that works like my sage command line.</h1>testtest2Wed, 08 Jan 2014 07:58:50 +0100https://ask.sagemath.org/question/10894/