如何将模块添加到IPython的自动完成? [英] How do I add a module to the ipython autocomplete?
本文介绍了如何将模块添加到IPython的自动完成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚安装在我的电脑 SQLAlchemy的
模块,但是当我键入导入SQL
和<大骨节病>标签骨节病>在IPython的提示自动完成的只是建议我内建的sqlite3
模块。
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.
我怎么IPython中也建议 SQLAlchemy的
对进口自动完成?
How do I get ipython to also suggest sqlalchemy
on the import autocomplete?
推荐答案
根据此消息,
In [1]: import sq[TAB]
Caching the list of root modules, please wait!
(This will only be done once - type '%rehashx' to reset cache!)
你试过%rehashx
?
这篇关于如何将模块添加到IPython的自动完成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文