0Pricing
Learn AI with Python · Lesson

Working with the Python REPL and IPython

Interactive exploration, tab completion, ?, %timeit, and shell commands in IPython.

The Interactive Workflow

The REPL (Read-Eval-Print Loop) lets you experiment line by line. IPython is a supercharged REPL with introspection, magics, and history, and it powers Jupyter kernels.

pip install ipython
ipython

Docstrings with a Single ?

Append ? to any object to see its docstring and signature, no need to open documentation in a browser.

import numpy as np
np.arange?
# shows signature and docstring for arange

All lessons in this course

  1. Virtual Environments and pip
  2. Jupyter Notebooks for Data Science
  3. Python Data Types for Data Science
  4. Working with the Python REPL and IPython
← Back to Learn AI with Python