On this page
  1. idlelib
  2. Import
  3. Overview
  4. Quick Start
  5. Implementation Walkthrough
  6. 1. Launching IDLE on a Specific File
  7. Gotchas & Boundaries

idlelib

Prev: http | Up: stdlib_module | Next: imaplib
Rel: wave, colorsys, gettext, locale, turtle
Ref: docs.python.org — idlelib
Tags: #public #python3 #stdlib


Import

import idlelib

Overview

Implementation package for IDLE, Python's bundled Tkinter-based IDE (python3 -m idlelib). idlelib is an application package rather than a general-purpose library—launch it from the CLI rather than importing its internal modules in production code.

Quick Start

import idlelib

# Verify idlelib is installed; launch the IDE from a terminal with:
#   python3 -m idlelib
assert hasattr(idlelib, "__file__")

Implementation Walkthrough

1. Launching IDLE on a Specific File

From the command line:

Gotchas & Boundaries

Linked from

Related notes