Open Jupyter notebooks with double click in standalone window

Follow these few steps to get started with running Python and Jupyter in your system.

Installation

First of all, if you haven’t already, download and install Anaconda from here.

It may take a while to install, so be patient. Follow the default install suggestions.

This will install the essential Python packages along with Jupyter using the Anaconda package manager.

Setup doubleclick on Windows

Open Anaconda prompt: Start Menu > Anaconda Prompt with administrative rights (Right click > Run as administrator)

pip install nbopen
python -m nbopen.install_win
  1. Open regedit
  2. Find Jupyter.nbopen using Ctrl+F
  3. Or somewhere in Computer\HKEY_USERS\XXXXXXXX\Jupyter.nbopen\shell\open\command
  4. Open cmd and run the code below. Copy the output to the registry default value
echo "%userprofile%\Anaconda3\pythonw.exe" "%userprofile%\Anaconda3\cwp.py" "%userprofile%\Anaconda3" "%userprofile%\Anaconda3\pythonw.exe" -m nbopen "%1"

Example output:

"C:\Users\diogo\Anaconda3\pythonw.exe" "C:\Users\diogo\Anaconda3\cwp.py" "C:\Users\diogo\Anaconda3" "C:\Users\diogo\Anaconda3\pythonw.exe" -m nbopen "%1"

Setting double click to open on windows.

Setting up open in standalone chrome window app

Get the Jupyter Lab and Jupyter notebook to open in a Chrome or Firefox window

  1. Open Anaconda Prompt with admnistrative rights
  2. Run jupyter lab --generate-config
  3. Open %userprofile%/.jupyter/jupyter_notebook_config.py
  4. Add c.NotebookApp.browser = "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe --app=%s" to this file

Alternatively download and run set-jupyter-standalone.bat.

Finally

Download a starting notebook.ipynb file:

🎵 Grab your mouse

and double click

for python, python, python🎵 

  1. Lifehacks
  2. Uncategorized
  3. Writing