jupyter / jupyter/notebook

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

Open
#3,577 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

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`?

Contributor guide

Open the contributing guide

Research direction

Reproduce the behavior on Windows 10 by launching Jupyter Notebook through pythonw.exe and opening a notebook. Trace how the notebook kernel process is launched and determine whether its executable can be configured; done means opening a notebook does not spawn an empty python.exe terminal window.

Written by the indexing model from the issue text.

Assessment

Tech stack
anaconda, jupyter-notebook, python
Domain
backend, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.