question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Windows] Opening QtConsole via Start Menu shortcut also opens a terminal window ("python.exe") in the background

See original GitHub issue

I have an issue that appeared recently, which I’m having trouble figuring out. When I start QtConsole via the Start Menu shortcut provided by menuinst, I get a CMD/terminal window in the background (in addition to the QtConsole window). The terminal is titled something like C:\Users\filip\Anaconda3\envs\py3\python.exe (depending on which shortcut I use, I have one for each env). I use a shortcut with the following Target

C:\Users\filip\Anaconda3\pythonw.exe C:\Users\filip\Anaconda3\cwp.py C:\Users\filip\Anaconda3\envs\py3 "C:/Users/filip/Anaconda3/envs/py3/pythonw.exe" "C:/Users/filip/Anaconda3/envs/py3/Scripts/jupyter-qtconsole-script.py"

I didn’t use to get this extra terminal window, and I know the change happened after doing some conda upgrade’s, but I have not been able to pinpoint exactly which upgrade it was. I upgraded my root environment though, so I think it might be related to a change in C:\Users\filip\Anaconda3\pythonw.exe.

The reason I’m posting this here is because all other shortcuts still work the way they used to (Spyder, Thonny, Jupyter Notebook etc.), it’s just the Jupyter QtConsole that get the extra terminal window.

I have tried creating a new env and installing older versions of qtconsole and python, but have had no luck yet. But C:\Users\filip\Anaconda3\pythonw.exe is always called first when starting via the shortcut, that’s why I suspect a change in that executable.

Here’s my jupyter-qtconsole-script.py

from qtconsole.qtconsoleapp import main
if __name__ == '__main__':
    main()

I my root/base env I have python 3.6.5, qtconsole 4.3.1 and ipython 6.4.0.

I would be grateful for any help I can get figuring this out. Sorry if this i not the right forum for this issue!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

1reaction
dvincentwestcommented, Sep 13, 2018

@FSund check out this stack overflow question and answer:

https://stackoverflow.com/questions/52297593/how-to-launch-recent-jupyter-qtconsole-on-windows-without-a-console-window/52300401#52300401

This looks like an Anaconda Issue, not a qtconsole issue. Probably should close this, unless there is further information available

0reactions
FSundcommented, Sep 17, 2018

I have filed a bug against conda-forge/qtconsole-feedstock regarding this issue. https://github.com/conda-forge/qtconsole-feedstock/issues/15

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to launch recent Jupyter QtConsole on Windows without ...
For the first bug, run pythonw <Scripts_dir>\jupyter-qtconsole-script.py which is the script that the .exe wraps. (This is Anaconda-specific.
Read more >
Jupyter Qt Console Documentation
Specify a config file to load. Generate default config file. Set the log level by value or name. Configure additional log handlers.
Read more >
Python appears in cmd - Discussions on Python.org
After I opened python.exe, it appeared in cmd, not python! ... --try typing the long name in the Start Menu) runs in a...
Read more >
Canopy Release Notes — Canopy 2.1.9-final documentation
Attempting to start the Package Manager while Canopy is already restoring/opening a Package Manager window could cause multiple Package Manager windows to open...
Read more >
Python and ArcGIS Pro 1.3 : Conda - Esri Community
A: This behavior will be reviewed in the next release. To avoid this behavior you can launch Python Command Prompt (which calls proenv.bat)...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found