Skip to content

Instantly share code, notes, and snippets.

Last active May 27, 2020 00:39
What would you like to do?
JupyterHub setup on centos
curl -O
chmod u+x
./ -b -p /opt/anaconda3
export PATH=/opt/anaconda3/bin:$PATH
curl --silent --location | bash -
yum install nodejs -y
npm install -g configurable-http-proxy
pip install jupyterhub
jupyterhub --generate-config
openssl req \
-newkey rsa:2048 -nodes -keyout domain.key \
-x509 -days 365 -out domain.crt
jupyterhub -f
Copy link

@johnrc Brilliant, thanks for sharing.
I'm curios, why pip install jupyterhub instead of conda install -c conda-forge jupyterhub ?
I'm wondering if "pip install jupyterhub" will overcome all the issue I'm experiences.
I used "conda install -c conda-forge jupyterhub" expecting "To install JupyterHub along with its dependencies including nodejs/npm" well according to
Any how:
I'm implementing this in CentOS 7.x
Do I need nodejs and configurable-http-proxy and even after conda install jupyterhub?

Thanks in advance.


Copy link

johnrc commented Oct 1, 2019

@siralfbaez First off, my "install" script is old and brittle. Also, conda will only help you install the Python dependencies but not other runtimes like nodejs. It sounds like nodejs is still required.

Copy link

@johnrc. Thanks for taking the time to shade some light on this, and correct. I found the conda part being strait forward to implemented, The painful part was JupyterHub with TLS. So I end up going with The JupyterHub Littliest distribution via PIP as described on this guide> Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment