How to install jupyter notebook into Centos 7 | Rhel 7

In this section you Will able to learn how to install jupyter notebook into Centos 7 | Rhel 7

1: Be sudo user and install bzip dependency

install bzip for jupyter
               
su root
yum install bzip2 -y
                
               

2: Create jupyter user and in sudoer and switch to jupyter user

create jupyter user and into sudoer
               
useradd jupyter
echo 'jupyter ALL = (ALL) NOPASSWD: ALL' > /etc/sudoers.d/20-jupyter
su jupyter
cd ~
                
               

3: Create notebook directory for all notebooks

               
mkdir ~/notebooks
                
               

4: Download anaconda.sh file for installation

download anconda.sh file for installation
               
curl -o anaconda.sh https://repo.continuum.io/archive/Anaconda3-4.2.0-Linux-x86_64.sh

                
               

5: Install anaconda file using anaconda.sh

install anaconda using bash
               
bash anaconda.sh

                
               

6: export jupyter into PATH variable

               

su root 

vi /etc/profile

export PATH=$PATH:/home/jupyter/anaconda3/bin
:wq

source /etc/profile
                
               

7: Generate config file


su jupyter
cd ~
jupyter notebook --generate-config

7: edit below file and change localhost to ip

change jupyter ip

vi /home/jupyter/.jupyter/jupyter_notebook_config.py

Change localhost with IP

wq:

8: Start jupyter notebook

start jupyter notebook

su root
cd /home/jupyter
nohup  /home/jupyter/anaconda3/bin/jupyter notebook --config /home/jupyter/.jupyter/jupyter_notebook_config.py &

8: Start jupyter notebook

jupyter notebook dashboard
If You Want to Know More Checkout My Youtube Channel