How to add a module to ipython autocomplete?

I just installed the sqlalchemy module on my computer, but when I type import sql and TAB at the ipython prompt, autocomplete offers me a built-in sqlite3 module.

How do I get ipython to also offer sqlalchemy in import autocomplete?

+6
source share
1 answer

Based on this post

 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 ?

+10
source

Source: https://habr.com/ru/post/907707/


All Articles