4.8 Using IPython Tab Completion for Discovery
You can view a module’s documentation in IPython interactive mode via tab completion—a discovery feature that speeds your coding and learning processes. After you type a portion of an identifier and press Tab, IPython completes the identifier for you or provides a list of identifiers that begin with what you’ve typed so far. This may vary based on your operating system platform and what you have imported into your IPython session:
In [1]: import math
In [2]: ma<Tab>
map %macro %%markdown
math %magic %matplotlib
max() %man
You can scroll through the identifiers with the up and down arrow keys. As you do, IPython highlights an identifier and shows it to the right of the In
[]
prompt.
Viewing Identifiers ...
Get Intro to Python for Computer Science and Data Science: Learning to Program with AI, Big Data and The Cloud now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.