Jupyter notebook not launching from Anaconda Navigator

Marc picture Marc · Sep 12, 2018 · Viewed 16.2k times · Source

I am working on MacBook Pro 10.12.6. I downloaded the most recent Anaconda 5.2 distribution, with the Python 3.6 version.

I can launch the Jupiter Notebook from the command line without problems, but it does not work from the Anaconda Navigator. I have the Jupyter Notebook version 5.6.0 in the Navigator. How can I get it to work?

Answer

legolagon picture legolagon · Oct 2, 2019

I had the same issue on my computer. The issue was that a particular file went missing while updating the notebook. Please check the following file in the folder: /Users/your-name/.anaconda/navigator/scripts/notebook.sh and the corresponding output and error files called something like *out.txt and *err.txt The script notebook.sh should look like this:

#!/usr/bin/env bash

source /Users/your-name/anaconda3/bin/activate /Users/your-name/anaconda3
open /Users/your-name/anaconda3/bin/jupyter_mac.command >/Users/your-name/.anaconda/navigator/scripts/notebook-out-1.txt 2>/Users/your-name/.anaconda/navigator/scripts/notebook-err-1.txt

The error message said that the file jupyter_mac.command did not exist. This was why the notebook was not getting launched.

To fix it simply create this file, jupyter_mac.command , in the /Users/your-name/anaconda3/bin/ folder. The file is the following simple script :

#!/usr/bin/env bash

DIR=$(dirname $0)
$DIR/jupyter-notebook

After saving this file, you may need to give it executable permission using the chmod +x command.

Voila! It's done.