当我使用一个普通的pythonshell时(我希望这个术语是可以理解的),然后输入
import IPython
IPython.start_ipython(["--pylab=qt", "--TerminalInteractiveShell.editor=scite"])
ipython控制台的启动方式如下
^{pr2}$但是当我在一个已经运行的ipython控制台上做同样的操作时,这就不起作用了。是否可以“重置”正在运行的ipython控制台?在
编辑:我现在用自己的代码解决了我的问题。当然,在这里展示我的代码对任何人都没有帮助。在给出的答案上(谢谢!):键入
%pylab qt, %
%config TerminalInteractiveShell.editor='scite'
不会抛出错误消息。但它与
ipython --pylab=qt --TerminalInteractiveShell.editor='scite'
行为不同,我的GUI只有在后一种情况下才有响应。我不知道为什么。在
有一个IPython magic命令
%reset
,它将清除所有变量。在您可以使用
%reset?
查看更多详细信息和docstring:相关问题 更多 >
编程相关推荐