Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jupyter Notebook Launch Error from Navigator

When I attempt to launch Jupyter NB from Anaconda Navigator, nothing happens, and in the terminal I see the following:

/home/captroberts/.anaconda/navigator/scripts/notebook.sh: 5: /home/captroberts/anaconda3/etc/conda/deactivate.d/deactivate-gxx_linux-64.sh: Syntax error: "(" unexpected

What does this mean, how do I fix it to launch apps from Navigator.

Jupyter-Notebook from the shell works fine.

like image 957
NavArch Avatar asked Mar 06 '20 16:03

NavArch


People also ask

Why is my Anaconda Navigator not launching jupyter notebook?

Jupyter fails to start If you're using a menu shortcut or Anaconda launcher to start it, try opening a terminal or command prompt and running the command jupyter notebook . If it can't find jupyter , you may need to configure your PATH environment variable.

How do I launch jupyter in Anaconda Navigator?

Open a Jupyter Notebook with Anaconda NavigatorOpen Anaconda Navigator using the Windows start menu and select [Anaconda3(64-bit)] –> [Anaconda Navigator]. A Jupyter file browser will open in a web browser tab. A new notebook will open as a new tab in your web browser.


3 Answers

Ubuntu by default the interpreting shell is dash. set bash as the /bin/sh

sudo dpkg-reconfigure dash
like image 139
eSab Avatar answered Oct 23 '22 04:10

eSab


The following fixed the issue for me. Some suggestion online to remove the word 'function' from line 5 and 31 from all the .sh files in the folders anaconda3/etc/conda/activate.d and anaconda3/etc/conda/deactivate.d

like image 26
taz Avatar answered Oct 23 '22 05:10

taz


I just started deleting the offending *.sh files until it worked. No issues since.

like image 35
NavArch Avatar answered Oct 23 '22 05:10

NavArch