-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python.exe window won't close on windows 10 #54
Comments
I wonder, if your exe is called Lines 18 to 20 in 332b955
Can you find the registry key it's set and check what Python exe it points to? |
I'm not really sure how. Poking around regedit right now. Do you want to know the registry key for my nbopen? I don't see it in here: All of the python executables in Anaconda and elsewhere when I see them in File Explorer read "python.exe." Could it be because I use an environment named "python3" ? |
Have a look for |
I have one entry there. Here is what I get for the value string: |
OK, so it did get |
In case it matters, the extra python window does not pop up if I first open it normally through anaconda command prompt: > jupyter notebook "mynotebook.ipynb" Then close the browser tab. |
Ah, I bet that the cmd window opens for the kernel. Nbopen does two different things, depending on whether Jupyter is already running. If Jupyter is running and can access the notebook, Nbopen just opens a new tab on your existing server. If not, it launches a new Jupyter server to show you the notebook you want. When your server is running in a command prompt, the kernels it starts will inherit that console window automatically. But when it's running without a command prompt, because it was launched by double clicking a file, a new console is created for the kernel. If I'm right, you can probably fix this locally by editing a |
Thank you @takluyver . I was able to solve the issue based on your instructions above to @richardwmcgovern |
Thanks @takluyver. When I run Available kernels: I normally use the "Python (default)" kernel. Which has path to executable: Unfortunately I can't find a Do you know where the default python kernel directory might be on Windows 10? |
I know this answer is a little late, but in my system the |
I followed the instructions to integrate with my file manager on Windows 10 by running:
python3 -m nbopen.install_win
It works and I am able to double-click open .ipynb files in a jupyter notebook. Doing so opens a python.exe blank terminal window (running it I presume). Unfortunately this window never closes, even after I close and halt the notebook, close the browser tabs, CNTRL + C in the anaconda prompt, close my browser. I have to restart my whole system to close those pesky python windows.
The text was updated successfully, but these errors were encountered: