How to install and configure JupyterHub: Difference between revisions
Jump to navigation
Jump to search
(Created page with "This tutorial shows how to install and configure JupyterHub on Centos 7. '''Install Python3.6 (if needed)''' <pre> sudo yum update sudo yum install yum-utils sudo yum groupin...") |
No edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
sudo yum install python36u | sudo yum install python36u | ||
python3.6 -V | python3.6 -V | ||
</pre> | |||
'''Install pip (if needed)''' | |||
<pre> | |||
sudo yum install python-pip | |||
wget "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" | |||
python3.6 get-pip.py | |||
</pre> | |||
'''Install npm/nodejs (if needed)''' | |||
<pre> | |||
curl --silent --location https://rpm.nodesource.com/setup_10.x | sudo bash - | |||
sudo yum -y install nodejs | |||
</pre> | |||
'''Install proxy with npm''' | |||
<pre> | |||
npm install -g configurable-http-proxy | |||
</pre> | |||
'''Install jupyter notebook''' | |||
<pre> | |||
python3.6 -m pip install notebook | |||
</pre> | |||
'''Install Anaconda''' | |||
<pre> | |||
wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda2-4.0.0-Linux-x86_64.sh | |||
bash Anaconda2-4.0.0-Linux-x86_64.sh | |||
Enter(many times) >> yes >> give directory or keep it as Default | |||
</pre> | |||
'''Add Anaconda to PATH''' | |||
<pre> | |||
export PATH=/PATH to Anacond/:$PATH | |||
</pre> | |||
'''Install JupyterHub with Anaconda''' | |||
<pre> | |||
conda install -c conda-forge jupyterhub | |||
</pre> | |||
'''Start and visit JupyterHub''' | |||
<pre> | |||
sudo jupyterhub | |||
Visit https://localhost:8000 in your browser, and sign in with your unix credentials. | |||
</pre> | |||
'''Create a configuration file in current folder and use the configuration file''' | |||
<pre> | |||
jupyterhub --generate-config | |||
jupyterhub -f /path/to/jupyterhub_config.py | |||
</pre> | </pre> |
Latest revision as of 23:51, 16 July 2018
This tutorial shows how to install and configure JupyterHub on Centos 7.
Install Python3.6 (if needed)
sudo yum update sudo yum install yum-utils sudo yum groupinstall development sudo yum install https://centos7.iuscommunity.org/ius-release.rpm sudo yum install python36u python3.6 -V
Install pip (if needed)
sudo yum install python-pip wget "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" python3.6 get-pip.py
Install npm/nodejs (if needed)
curl --silent --location https://rpm.nodesource.com/setup_10.x | sudo bash - sudo yum -y install nodejs
Install proxy with npm
npm install -g configurable-http-proxy
Install jupyter notebook
python3.6 -m pip install notebook
Install Anaconda
wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda2-4.0.0-Linux-x86_64.sh bash Anaconda2-4.0.0-Linux-x86_64.sh Enter(many times) >> yes >> give directory or keep it as Default
Add Anaconda to PATH
export PATH=/PATH to Anacond/:$PATH
Install JupyterHub with Anaconda
conda install -c conda-forge jupyterhub
Start and visit JupyterHub
sudo jupyterhub Visit https://localhost:8000 in your browser, and sign in with your unix credentials.
Create a configuration file in current folder and use the configuration file
jupyterhub --generate-config jupyterhub -f /path/to/jupyterhub_config.py