How do I start ipython's qtconsole cleanly on

2019-05-08 12:34发布

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.

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?

2条回答
Viruses.
2楼-- · 2019-05-08 13:21

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: I am using python 2.7.9 with IPython 3.0.0 on windows 7

查看更多
地球回转人心会变
3楼-- · 2019-05-08 13:30

If you installed Python using Anaconda then such a shortcut already exists under the name Jupyter QTConsole.

查看更多
登录 后发表回答