jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.74k stars 4.98k forks source link

Windows: A terminal window is opened for each notebook in case jupyter is started with pythonw.exe #3577

Open stupidus89 opened 6 years ago

stupidus89 commented 6 years ago

I was trying to run jupyter notebook on my Windows 10 machine without having a pointless terminal window cluttering up space on my taskbar. So, I modified the shortcut for the jupyter notebook to use pythonw.exe instead of python.exe. This is working so far, no terminal window is opened. However, when I open a notebook from the browser, an empty terminal window with the title python.exe spawns. I assume, this is because the python kernel that is started uses python.exe instead of pythonw.exe.

As a workaround I deleted/moved python.exe and renamed pythonw.exe to python.exe in my anaconda install. Of course, this is only a valid solution as long as I only use anaconda for jupyter notebooks.

Is there a way to configure the jupyter kernel to use pythonw.exe instead of python.exe?

takluyver commented 6 years ago

Someone else had this issue and made a fix for a future release of jupyter_client - see https://github.com/jupyter/jupyter_client/pull/346 .

In the meantime, if you find the kernel spec for your kernel, you can modify the JSON to point to pythonw.exe instead of python.exe.