I'm new to both Sage and Python. For writing sage program, I went to sagemath cloud, and when I tried to create a new file, I had, among others, two options: sage worksheet and IPython notebook. I noticed both does coloring and indentation. But I was wondering: is there any way to take advantage of both of them together? How can I combine both of them together? For example, in IPython notebook, how can I make it understand the sage commands?
To give an explicit and concrete example of the above, in Sage tutorials, there's factor(-2007). If you run it on sage worksheet, it gives (as you expect), -1*3^2*223, but in IPython notebook, it shows 'factor' is not defined. How can I write factor(-2007) in IPynb, run it, and get -1*3^2*223?
I'm working in a windows 8, 64 bit environment, just if it is relevant.