Category: /knowledge /machine_learning
Tags: machine_learning

Most info is from

add /home/share/anaconda3/bin to the path .bashrc

export PATH=/home/share/anaconda3/bin:.:$PATH

sudo apt-get install npm nodejs-legacy
npm install -g configurable-http-proxy
pip install jupyterhub
pip install --upgrade notebook

Test Jupyterhub default configuration

jupyterhub --no-ssl
# use w3m to test the page
w3m http://localhost:8000

openssl req ­-x509 ­-nodes ­-days 365 ­-newkey rsa:2048
    ­-keyout base_key.key
    -out base_cert.pem

sudo env “PATH=$PATH” jupyterhub #or create a one-liner mysudo command: sudo -E env “PATH=$PATH” “$@”

jupyterhub –ip –port 443 –ssl-key server.key –ssl-cert server.cert

generate authentication token

openssl rand -hex 32

sudo setcap ‘cap_net_bind_service=+ep’ which node

sudo apt-get update sudo apt-get install software-properties-common sudo add-apt-repository ppa:certbot/certbot sudo apt-get update sudo apt-get install certbot

sudo certbot certonly –webroot -w /home/share/conf/jh -d teckoo.ddns.net

  • Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/teckoo.ddns.net/fullchain.pem Your key file has been saved at: /etc/letsencrypt/live/teckoo.ddns.net/privkey.pem Your cert will expire on 2018-03-25. To obtain a new or tweaked version of this certificate in the future, simply run certbot again. To non-interactively renew all of your certificates, run “certbot renew”

Verify it from 1. localhost, 2. then from a local LAN host, 3. remote external host.

If it works on localhost, but not from LAN, it can be a firewall problem. Try ‘sudo ufw disable’, or ‘ufw allow 80’

sudo systemctl daemon-reload and sudo systemctl <start stop status> jupyterhub


sudo /etc/init.d/jupyterhub <start stop restart status>

== Google colab == You can upload Jypyter notebooks, and DATA.

from command line, type:

jupyter notebook
# if it fails to run, try
conda install jupyter notebook


Kaggle Colab Google Keras

https://js.tensorflow.org/ https://playground.tensorflow.org



  • 如果看不到评论部分, 请暂时关掉adblock in Firefox/Chrome
  • 本网站使用Javascript实现评论功能, 此处外链对提高您的网站PR没有帮助. (潜台词: 请不要灌水, 谢谢)