The IPython API

Release:

9.9.0.dev

Date:

December 16, 2025

IPython

IPython: tools for interactive and parallel computing in Python.

IPython.core.alias

System command aliases.

IPython.core.application

An application for IPython.

IPython.core.async_helpers

Async helper function that are invalid syntax on Python 3.5 and below.

IPython.core.autocall

Autocall capabilities for IPython.core.

IPython.core.builtin_trap

A context manager for managing things injected intobuiltins.

IPython.core.compilerop

Compiler tools with improved interactive support.

IPython.core.completer

Completion for IPython.

IPython.core.completerlib

Implementations for various useful completers.

IPython.core.crashhandler

sys.excepthook for IPython itself, leaves a detailed report on disk.

IPython.core.debugger

Pdb debugger class.

IPython.core.debugger_backport

The code in this module is a backport of cPython changes in Pdb that were introduced in Python 3.13 by gh-83151: Make closure work on pdbhttps://github.com/python/cpython/pull/111094.

IPython.core.doctb

IPython.core.error

Global exception classes for IPython.core.

IPython.core.events

Infrastructure for registering and firing callbacks on application events.

IPython.core.extensions

A class for managing IPython extensions.

IPython.core.formatters

Display formatters.

IPython.core.getipython

Simple function to call to get the current InteractiveShell instance

IPython.core.guarded_eval

IPython.core.history

History related magics and functionality

IPython.core.historyapp

An application for managing IPython history.

IPython.core.hooks

Hooks for IPython.

IPython.core.inputtransformer2

Input transformer machinery to support IPython special syntax.

IPython.core.interactiveshell

Main IPython class.

IPython.core.logger

Logger class for IPython's logging facilities.

IPython.core.macro

Support for interactive macros in IPython

IPython.core.magic

IPython.core.magic_arguments

A decorator-based method of constructing IPython magics withargparse option handling.

IPython.core.magics

Implementation of all the magic functions built into IPython.

IPython.core.magics.ast_mod

This module contains utility function and classes to inject simple ast transformations based on code strings into IPython.

IPython.core.magics.auto

Implementation of magic functions that control various automatic behaviors.

IPython.core.magics.basic

Implementation of basic magic functions.

IPython.core.magics.code

Implementation of code management magic functions.

IPython.core.magics.config

Implementation of configuration-related magic functions.

IPython.core.magics.display

Simple magics for display formats

IPython.core.magics.execution

Implementation of execution-related magic functions.

IPython.core.magics.extension

Implementation of magic functions for the extension machinery.

IPython.core.magics.history

Implementation of magic functions related to History.

IPython.core.magics.logging

Implementation of magic functions for IPython's own logging.

IPython.core.magics.namespace

Implementation of namespace-related magic functions.

IPython.core.magics.osm

Implementation of magic functions for interaction with the OS.

IPython.core.magics.packaging

Implementation of packaging-related magic functions.

IPython.core.magics.pylab

Implementation of magic functions for matplotlib/pylab support.

IPython.core.magics.script

Magic functions for running cells in various scripts.

IPython.core.oinspect

Tools for inspecting Python objects.

IPython.core.page

Paging capabilities for IPython.core

IPython.core.payload

Payload system for IPython.

IPython.core.payloadpage

A payload based version of page.

IPython.core.prefilter

Prefiltering components.

IPython.core.profileapp

An application for managing IPython profiles.

IPython.core.profiledir

An object for managing IPython profile directories.

IPython.core.pylabtools

Pylab (matplotlib) support utilities.

IPython.core.shellapp

A mixin forApplication classes that launch InteractiveShell instances, load extensions, etc.

IPython.core.splitinput

Simple utility for splitting user input.

IPython.core.tbtools

IPython.core.tips

IPython.core.ultratb

Verbose and colourful traceback formatting.

IPython.display

Public API for display tools in IPython.

IPython.lib.backgroundjobs

Manage background (threaded) jobs conveniently from an interactive shell.

IPython.lib.clipboard

Utilities for accessing the platform's clipboard.

IPython.lib.deepreload

Provides a reload() function that acts recursively.

IPython.lib.demo

Module for interactive demos using IPython.

IPython.lib.editorhooks

'editor' hooks for common editors that work well with ipython

IPython.lib.guisupport

Support for creating GUI apps and starting event loops.

IPython.lib.latextools

Tools for handling LaTeX.

IPython.lib.pretty

Python advanced pretty printer.

IPython.paths

Find files and directories which IPython uses.

IPython.terminal.debugger

IPython.terminal.embed

An embedded IPython shell.

IPython.terminal.interactiveshell

IPython terminal interface using prompt_toolkit

IPython.terminal.ipapp

TheApplication object for the command lineipython program.

IPython.terminal.magics

Extra magics for terminal use.

IPython.terminal.prompts

Terminal input and output prompts.

IPython.terminal.shortcuts

Module to define and register Terminal IPython shortcuts withprompt_toolkit

IPython.terminal.shortcuts.auto_match

Utilities function for keybinding with prompt toolkit.

IPython.terminal.shortcuts.auto_suggest

IPython.terminal.shortcuts.filters

Filters restricting scope of IPython Terminal shortcuts.

IPython.testing.decorators

IPython.testing.globalipapp

Global IPython app to support test running.

IPython.testing.ipunittest

Experimental code for cleaner support of IPython syntax with unittest.

IPython.testing.skipdoctest

Decorators marks that a doctest should be skipped.

IPython.testing.tools

Generic testing tools.

IPython.utils.PyColorize

IPython.utils.capture

IO capturing utilities.

IPython.utils.coloransi

IPython.utils.contexts

Miscellaneous context managers.

IPython.utils.data

Utilities for working with data structures like lists, dicts and tuples.

IPython.utils.decorators

Decorators that don't go anywhere else.

IPython.utils.dir2

A fancy version of Python's builtindir() function.

IPython.utils.encoding

Utilities for dealing with text encodings

IPython.utils.frame

Utilities for working with stack frames.

IPython.utils.generics

Generic functions for extending IPython.

IPython.utils.importstring

A simple utility to import something by its string name.

IPython.utils.io

IO related utilities.

IPython.utils.ipstruct

A dict subclass that supports attribute style access.

IPython.utils.module_paths

Utility functions for finding modules

IPython.utils.openpy

Tools to open .py files as Unicode, using the encoding specified within the file, as per PEP 263.

IPython.utils.path

Utilities for path handling.

IPython.utils.process

Utilities for working with external processes.

IPython.utils.sentinel

Sentinel class for constants with useful reprs

IPython.utils.strdispatch

String dispatch class to match regexps and dispatch commands.

IPython.utils.sysinfo

Utilities for getting information about IPython and the system it's running in.

IPython.utils.syspathcontext

IPython.utils.tempdir

This module contains classes - NamedFileInTemporaryDirectory, TemporaryWorkingDirectory.

IPython.utils.terminal

Utilities for working with terminals.

IPython.utils.text

Utilities for working with strings and text.

IPython.utils.timing

Utilities for timing code execution.

IPython.utils.tokenutil

Token-related utilities

IPython.utils.wildcard

Support for wildcard pattern matching in object inspection.