Autocompletion and function definition in Python Interpreter

376 views Asked by At

See the below GIF Link

How does the documentation for all the functions appear as you type in the terminal?

I am already familiar with autocompletion and there are bunch to tutorials to do this but what about function definition? Currently I am using pip install ptpython module to get autocompletion feature but I want to know the function definition as well. Could anyone help me?

1

There are 1 answers

0
python On

Got my answer from @Padraic Cunningham. See the comment section.

This is a bpython shell. You can download using pip or apt-get install bpython

pip install bpython
sudo apt-get install bpython

To start go to your terminal and type bpython

enter image description here