How to autocomplete and quickly access help or documentation in Python?
For interactive shell, you can use IPython.
For interactive notebook, you can use Jupyter or Colab.
- To autocomplete, just press
tabkey . A notable difference in Colab is pressing
tabkey after typing an open parenthesis for a method or a class will show its documentation .
- To quickly access documentation, type ? before or after an object and press the run key [2, 3].
- To quickly access documentation including the source code, type ?? before or after an object and press the run key .
The run key for IPython, Jupyter and Colab:
IPython -> Jupyter -> Colab