# Revision history [back]

Here are at least 3 ways:

• Run the code with 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.