如何在Win7上干净地启动ipython的qtconsole [英] How do I start ipython's qtconsole cleanly on Win7

查看:205
本文介绍了如何在Win7上干净地启动ipython的qtconsole的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 7上安装了python 3.4和ipython 2.3.1。我使用来自 http://www.lfd.uci.edu/~gohlke/pythonlibs/ (谢谢,克里斯!)。即使以管理员身份运行,此安装过程也不会创建任何开始菜单快捷方式。我可以从cmd窗口成功运行ipython qtconsole,但是我必须打开该命令窗口并且进程不会分叉 - 它只是托管子进程的额外窗口。如果我创建了一个快捷方式来执行相同操作,它会打开一个cmd窗口,然后打开qtconsole。

I have python 3.4 and ipython 2.3.1 installed on Windows 7. I installed ipython using pip from a wheel from http://www.lfd.uci.edu/~gohlke/pythonlibs/ (Thanks, Chris!). This install procedure does not create any start menu shortcuts, even when run as administrator. I can successfully run "ipython qtconsole" from a cmd window, but then I have to have that command window open and the process doesn't fork--it's just and extra window hosting the child process. If I create a shortcut to do the same, it opens a cmd window which then opens the qtconsole.

那么,如何在没有额外cmd窗口的情况下启动qtconsole?在以前的版本中,你可以调用python来运行ipython-console脚本,但是现在似乎已经废除了,这有点像专用的exe看起来做同样的事情......但是等待它完成。有没有办法可以在不等待的情况下启动qtconsole?

So, how do I start qtconsole without having an extra cmd window? In previous versions, you could invoke python to run the ipython-console script, but that seems to be done away with now, in favor of a dedicated exe that appears to do the same...but waits for it to finish. Is there a way I can start qtconsole without waiting?

推荐答案

我发现了一些这里,然后尝试了一些事情,因此发现如果输入运行 window

I found something here, and then tried a few things and hence found that this does it if typed in the run window

c:\python27\pythonw -c "import IPython; IPython.start_ipython(['qtconsole'])"

我想它也适用于快捷方式。

I guess it should also work for shortcuts.

P.S:我在Windows 7上使用带有IPython 3.0.0的python 2.7.9

这篇关于如何在Win7上干净地启动ipython的qtconsole的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆