takluyver / nbopen

Open a Jupyter notebook in the best available server
BSD 3-Clause "New" or "Revised" License
301 stars 58 forks source link

How to have nbopen working with Anaconda on Windows 10? #79

Open VideoPac opened 2 years ago

VideoPac commented 2 years ago

Hello, I used to open my Jupyter Notebooks with a double-click on .ipynb, but I made a fresh install and it's not working anymore. When I double click on a .ipynb a Command Line window flashes and nothing happen. I tried to add the path to \anaconda3 and to anaconda3\scripts (where nbopen.exe is located) to my system environnement variables but this doesn’t solve the problem… How to have my .ipynb open with a double click? Thank you

takluyver commented 2 years ago

The 'flash of command prompt' usually means the program has exited straight away, usually with an error message that you don't have time to see. You can sometimes see the error message by figuring out the command that the shortcut runs and entering that manually in a command prompt. Beyond that, I don't really know - I haven't used Windows regularly for quite a few years. :slightly_smiling_face:

VideoPac commented 2 years ago

OK thank you. I am still struggling with this, if anybody knows, please help

KevoBernardo commented 1 year ago

Try this:

Go to Regedit. Then go to:

\HKEY_CURRENT_USER\SOFTWARE\Classes\Jupyter.nbopen\shell\open\command

Change the default value to:

C:\ProgramData\Anaconda3\python.exe -m conda run -n base pythonw -m nbopen "%1"

The previous location might change, but basically is where you have python.exe. The next part should be the same

KevoBernardo commented 1 year ago

You can also check out this other issue, seems pretty similar #69