### Navigation

- index
- modules |
- next |
Sage Reference Manual »
- The Sage Command Line »

# The Sage Command Line

The Sage Read-Eval-Print-Loop (REPL) is based on IPython. In this document, you’ll find how the IPython integration works. You should also be familiar with the documentation for IPython.

For more details about using the Sage command line, see the Sage tutorial.

- Invoking Sage
  - Command-line options for Sage
- Sage startup scripts
  - The sagerc shell script
  - The init.sage script
- Environment variables used by Sage
- Interactively tracing execution of a command
- Extra readline commands
- Sage’s IPython Modifications
  - SageTerminalApp
  - SageInteractiveShell
  - SageTerminalInteractiveShell
  - Interface Shell
- Sage’s IPython Extension

## Pretty Printing

In addition to making input nicer, we also modify how results are printed. This again builds on how IPython formats output. Technically, this works using a modified displayhook in Python.

- IPython Displayhook Formatters
- The Sage pretty printer
- Representations of objects.
- Utility functions for pretty-printing
- The display hook for plain Python

# Indices and Tables

- Index
- Module Index
- Search Page

### Navigation

- index
- modules |
- next |
Sage Reference Manual »
- The Sage Command Line »