First time here? Check out the FAQ!
answered 2012-04-30 19:41:01 +0100
Here are at least 3 ways:
Run the code with sage -python filename.py
sage -python filename.py
In the notebook, choose "python" in the dropdown list at the top.
In the notebook, put the code in a cell with a %python at the top of the cell.
%python