Skip to content

Instantly share code, notes, and snippets.

@jimathyp
Last active May 25, 2021 23:31
Show Gist options
  • Select an option

  • Save jimathyp/3a1e6cb26f38f4509b5cd7de5446331a to your computer and use it in GitHub Desktop.

Select an option

Save jimathyp/3a1e6cb26f38f4509b5cd7de5446331a to your computer and use it in GitHub Desktop.

Jupyter Notebook Issues

Particular to running in WSL.

The usual way to start is with

jupyter notebook

But if error

jupyter Start : This command cannot be run due to the error: The system cannot find the file specified.

The problem occurs because the Jupyter notebook tries to open the browser after it is started

Then start with any of:

jupyter notebook --no-browser
jupyter notebook --port=8889 --no-browser

https://stackoverflow.com/questions/62814002/start-this-command-cannot-be-run-due-to-the-error-the-system-cannot-find-the

There are two important steps:

Run

jupyter notebook --generate-config

to generate the file ~/.jupyter/jupyter_notebook_config.py then change the following line:

c.NotebookApp.use_redirect_file = False

Uncomment that line.

Add your browser to ~/.bashrc E.g.

export BROWSER='/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe'

Then

source ~/.bashrc

Running Jupyter Notebook on WSL while Using Browser on Windows A guide to having a similar experience to Ubuntu or Mac Ali Akbar Septiandri Apr 25, 2020

jupyter/jupyter_core#191 Jupyter Notebook does not load using ubuntu 18.04 LTS in windows 10 #191

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment