Assistance required starting jupyter-notbook through Anaconda-Navigator on linux

289 views
Skip to first unread message

HaKDMoDz

unread,
Apr 1, 2019, 7:07:01 PM4/1/19
to Project Jupyter
Hi I'm new to python programming and decided to take a udemy course the first thing instructed is to install Anaconda then run anaconda-navigator from which then I'm supposed to click the Jupyter-Notebook gui icon to activate the notebook ide. my problem is that upon doing these steps jupyter-notebook displays a progress bar as if it were about to load up but then doesn't inside my linux shell terminal for the command anaconda-navigator i get these error messages 

root@kali:~# anaconda-navigator
2019-04-02 09:55:50,749 - ERROR anaconda_api.is_vscode_available:1064
''

2019-04-02 09:55:52,611 - ERROR download_api._download:234

2019-04-02 09:55:52,666 - ERROR download_api._download:234

2019-04-02 09:55:52,983 - ERROR download_api._download:234

could somebody please assist me in getting jupyter-notebook up and running I'm on 

..............                                  
            ..,;:ccc,.                                  root@kali
          ......''';lxO.                                 OS: Kali Linux 2019.1
.....''''..........,:ld;                                   Kernel: x86_64 Linux 4.19.0-kali4-amd64
           .';;;:::;,,.x,                                 Uptime: 44m
      ..'''.            0Xxoc:,.  ...                  Packages: 4553
  ....                ,ONkc;,;cokOdc',.          Shell: bash 5.0.2
 .                   OMo           ':ddo.           Resolution: 1920x1080
                    dMc               :OO;          DE: KDE 5.54.0 / Plasma 5.14.5
                    0M.                 .:o.            WM: KWin
                    ;Wd                                 WM Theme: Breeze
                     ;XO,                               GTK Theme: Kali-X-Dark [GTK2], Blackbird [GTK3]
                       ,d0Odlc;,..                    Icon Theme: oxygen
                           ..',;:cdOOd::,.            Font: Noto Sans Regular
                                    .:d;.':;.              CPU: Intel Core i7-4710HQ @ 8x 3.5GHz [27.8°C]
                                       'd,  .'             GPU: Mesa DRI Intel(R) Haswell Mobile 
                                         ;l   ..            RAM: 1880MiB / 15959MiB
                                          .o    
                                            c   
                                            .'  
                                             .  
my linux ability is also a beginner but i have tried pip install notebook to receive these messages 

root@kali:~# pip install notebook
Requirement already satisfied: notebook in ./anaconda3/lib/python3.7/site-packages (5.7.4)
Requirement already satisfied: nbconvert in ./anaconda3/lib/python3.7/site-packages (from notebook) (5.4.0)
Requirement already satisfied: prometheus-client in ./anaconda3/lib/python3.7/site-packages (from notebook) (0.5.0)
Requirement already satisfied: ipykernel in ./anaconda3/lib/python3.7/site-packages (from notebook) (5.1.0)
Requirement already satisfied: traitlets>=4.2.1 in ./anaconda3/lib/python3.7/site-packages (from notebook) (4.3.2)
Requirement already satisfied: jupyter-core>=4.4.0 in ./anaconda3/lib/python3.7/site-packages (from notebook) (4.4.0)
Requirement already satisfied: jupyter-client>=5.2.0 in ./anaconda3/lib/python3.7/site-packages (from notebook) (5.2.4)
Requirement already satisfied: pyzmq>=17 in ./anaconda3/lib/python3.7/site-packages (from notebook) (17.1.2)
Requirement already satisfied: nbformat in ./anaconda3/lib/python3.7/site-packages (from notebook) (4.4.0)
Requirement already satisfied: jinja2 in ./anaconda3/lib/python3.7/site-packages (from notebook) (2.10)
Requirement already satisfied: tornado>=4 in ./anaconda3/lib/python3.7/site-packages (from notebook) (5.1.1)
Requirement already satisfied: ipython-genutils in ./anaconda3/lib/python3.7/site-packages (from notebook) (0.2.0)
Requirement already satisfied: Send2Trash in ./anaconda3/lib/python3.7/site-packages (from notebook) (1.5.0)
Requirement already satisfied: terminado>=0.8.1 in ./anaconda3/lib/python3.7/site-packages (from notebook) (0.8.1)
Requirement already satisfied: mistune>=0.8.1 in ./anaconda3/lib/python3.7/site-packages (from nbconvert->notebook) (0.8.4)
Requirement already satisfied: pygments in ./anaconda3/lib/python3.7/site-packages (from nbconvert->notebook) (2.3.1)
Requirement already satisfied: entrypoints>=0.2.2 in ./anaconda3/lib/python3.7/site-packages (from nbconvert->notebook) (0.2.3)
Requirement already satisfied: bleach in ./anaconda3/lib/python3.7/site-packages (from nbconvert->notebook) (3.0.2)
Requirement already satisfied: pandocfilters>=1.4.1 in ./anaconda3/lib/python3.7/site-packages (from nbconvert->notebook) (1.4.2)
Requirement already satisfied: testpath in ./anaconda3/lib/python3.7/site-packages (from nbconvert->notebook) (0.4.2)
Requirement already satisfied: defusedxml in ./anaconda3/lib/python3.7/site-packages (from nbconvert->notebook) (0.5.0)
Requirement already satisfied: ipython>=5.0.0 in ./anaconda3/lib/python3.7/site-packages (from ipykernel->notebook) (7.2.0)
Requirement already satisfied: decorator in ./anaconda3/lib/python3.7/site-packages (from traitlets>=4.2.1->notebook) (4.3.0)
Requirement already satisfied: six in ./anaconda3/lib/python3.7/site-packages (from traitlets>=4.2.1->notebook) (1.12.0)
Requirement already satisfied: python-dateutil>=2.1 in ./anaconda3/lib/python3.7/site-packages (from jupyter-client>=5.2.0->notebook) (2.7.5)
Requirement already satisfied: jsonschema!=2.5.0,>=2.4 in ./anaconda3/lib/python3.7/site-packages (from nbformat->notebook) (2.6.0)
Requirement already satisfied: MarkupSafe>=0.23 in ./anaconda3/lib/python3.7/site-packages (from jinja2->notebook) (1.1.0)
Requirement already satisfied: webencodings in ./anaconda3/lib/python3.7/site-packages (from bleach->nbconvert->notebook) (0.5.1)
Requirement already satisfied: jedi>=0.10 in ./anaconda3/lib/python3.7/site-packages (from ipython>=5.0.0->ipykernel->notebook) (0.13.2)
Requirement already satisfied: pickleshare in ./anaconda3/lib/python3.7/site-packages (from ipython>=5.0.0->ipykernel->notebook) (0.7.5)
Requirement already satisfied: backcall in ./anaconda3/lib/python3.7/site-packages (from ipython>=5.0.0->ipykernel->notebook) (0.1.0)
Requirement already satisfied: setuptools>=18.5 in ./anaconda3/lib/python3.7/site-packages (from ipython>=5.0.0->ipykernel->notebook) (40.6.3)
Requirement already satisfied: prompt-toolkit<2.1.0,>=2.0.0 in ./anaconda3/lib/python3.7/site-packages (from ipython>=5.0.0->ipykernel->notebook) (2.0.7)
Requirement already satisfied: pexpect; sys_platform != "win32" in ./anaconda3/lib/python3.7/site-packages (from ipython>=5.0.0->ipykernel->notebook) (4.6.0)
Requirement already satisfied: parso>=0.3.0 in ./anaconda3/lib/python3.7/site-packages (from jedi>=0.10->ipython>=5.0.0->ipykernel->notebook) (0.3.1)
Requirement already satisfied: wcwidth in ./anaconda3/lib/python3.7/site-packages (from prompt-toolkit<2.1.0,>=2.0.0->ipython>=5.0.0->ipykernel->notebook) (0.1.7)
Requirement already satisfied: ptyprocess>=0.5 in ./anaconda3/lib/python3.7/site-packages (from pexpect; sys_platform != "win32"->ipython>=5.0.0->ipykernel->notebook) (0.6.0)

Roland Weber

unread,
Apr 3, 2019, 1:32:43 AM4/3/19
to Project Jupyter
To get the problem with Anaconda Navigator sorted out, you'll have to reach out to Anaconda. The first error message suggests that it expects but doesn't find (a certain version of) Visual Studio... which makes little sense on Linux.

For Jupyter to work, you don't need Anaconda Navigator though. Maybe somebody else here can tell you how to start that IDE directly from the command line.

A quick search on your error message showed a few reports where people ran into the Anaconda Navigator problem AND Jupyter didn't work. I suggest that you treat these as separate problems... start by finding out whether Jupyter and/or that IDE is working if you start them from the command line.

Hope that helps,
  Roland

HaKDMoDz

unread,
Apr 5, 2019, 3:05:18 PM4/5/19
to Project Jupyter
Solved. Jupyter notebook doesnt run as root by design i think because if it did execute and deploy a web browser as root then malicious shell activity could possibly be run. The fix was to run notebook from the terminal instead of through the anaconda navigator ide as such "jupyter notebook --allow-root". Just thought it may help someone else facing this problem.

Roland Weber

unread,
Apr 8, 2019, 2:15:29 AM4/8/19
to Project Jupyter
Thanks for the root cause analysis ;-)

Another solution might be to run anaconda-navigator and thereby Jupyter as non-root.

cheers,
  Roland

Reply all
Reply to author
Forward
0 new messages