How to auto complete in an iPython notebook while on ipdb?

aviyaron picture aviyaron · Mar 19, 2016 · Viewed 7.2k times · Source

I am running some cell in an iPython notebook. I used the %%debug command in the head of the cell. Now, when i am on ipdb prompt and i hit the ctrl+space or tab, auto complete can't seem to be working.

How to use auto complete?

Answer

Bhavya Ghai picture Bhavya Ghai · Jul 13, 2017

Install pyreadline:

pip install pyreadline

Open jupyter notebook & run the following in one the cell:

%config IPCompleter.greedy=True

Whenever you want to do autocomplete, just press TAB.

Works for me !!!