Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

For newly installed modules, how do I get `ipython` import autocomplete to work?

I have just installed the sqlalchemy module in my computer but when I type import sql and TAB in the ipython prompt the autocomplete only suggests me the builtin sqlite3 module.

How do I get ipython to also suggest sqlalchemy on the import autocomplete?

like image 580
hugomg Avatar asked Feb 05 '12 16:02

hugomg


1 Answers

Based on this message,

In [1]: import sq[TAB]
Caching the list of root modules, please wait!
(This will only be done once - type '%rehashx' to reset cache!)

have you tried %rehashx ?

like image 149
unutbu Avatar answered Sep 23 '22 04:09

unutbu