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.
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.
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.
Ubuntu by default the interpreting shell is dash. set bash as the /bin/sh
sudo dpkg-reconfigure dash
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
I just started deleting the offending *.sh files until it worked. No issues since.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With