Skip to content

Instantly share code, notes, and snippets.

@efraintorlo
Created January 30, 2022 00:45
Show Gist options
  • Save efraintorlo/b4bd04889de1c31e5772df952104defc to your computer and use it in GitHub Desktop.
Save efraintorlo/b4bd04889de1c31e5772df952104defc to your computer and use it in GitHub Desktop.
Start JupyterHub using Supervisord, it asumes Node is available via NVM
[program:jupyterhub]
environment=HOME='/home/user'
directory=/home/user/PythonProjects/jupyterhub
command=/bin/bash -c 'source ~/.nvm/nvm.sh && source ~/.bashrc && nvm use default && source venv/bin/activate && jupyterhub'
user=user
autostart=true
autorestart=true
startretries=3
stderr_logfile = /var/log/supervisor/jupyterhub-stderr.log
stdout_logfile = /var/log/supervisor/jupyterhub-stdout.log
@efraintorlo
Copy link
Author

JupyterHub installed on python3 virtual environment

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