If you have Jupyter installed with Anaconda, you can do the following.
Create a small batch file (e.g. start_jupyter_notebook.bat) with the contents (commands from the Jupyter shortcut):
@echo off set ANACONDAPATH=C:\_work\_programs\Anaconda3 %ANACONDAPATH%\python.exe %ANACONDAPATH%\cwp.py %ANACONDAPATH%^ %ANACONDAPATH%\python.exe %ANACONDAPATH%\Scripts\jupyter-notebook-script.py %1
(of course, you will have to modify ANACONDAPATH for your installation)
Then go to one .ipynb file of your choice, right-click on it, go to properties → open with → change and select the created batch file.
I am pretty sure that this can also be configured for any other Python / Jupyter installation.
PS The cwp.py file sets some environment variables. I think this is the reason that fredm73's answer did not work for everyone. Also, my answer is very similar at the end.
source share