IPython is an interactive command-line shell for quickly running Python commands and viewing their results. In Spyder, it appears in the bottom-right pane and supports experimentation, testing, and interaction with programs. section 3.2
Use the console to:
- Try single commands and build intuition about statements and expressions. section 3.2
- Use autocompletion, command history, and color highlighting while working. section 3.2
- Test and debug programs by entering commands and inspecting their output. section 3.2
Peek at expression results
Enter 3 + 2 and press Enter to see Out[] 5. Enter 4 / 5 to see Out[] 0.8. Each result provides a quick look at what the expression evaluates to. section 3.2
Figure 3.4. Programmers use the console for their own testing and debugging. They type commands directly in the console and look at the output. Users interact with a program via the console. They type input to a program and view the output from a program in the console.
Compare how programmers test commands in the console with how users provide input to programs and view their output. section 3.2
