从ipython中的模块将所有内容导入当前命名空间

时间:2012-03-20 01:00:03

标签: namespaces ipython

我想将模块中的所有内容导入IPython会话中的全局命名空间。所以我尝试from <module> import *,但这不起作用。虽然这在python会话中按预期工作。我怎么能在IPython中做到这一点?

我意识到这是不好的做法,但我只是想为常用模块的交互式会话做这件事。

1 个答案:

答案 0 :(得分:0)

在IPython下,PyROOT不支持

from ROOT import *。以下是ROOT 5.34 / 09的警告:

UserWarning: "from ROOT import *" is not supported under IPython
相关问题