diff --git a/README.md b/README.md index 464a80b..1afd081 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,10 @@ pip3 install tensorflow python3 karoo_gp.py ``` -# Jupyter Install +# Jupyter +Jupyter is a cute interface to python. + +## Jupyter Install To install everything for jupyter, not in virt env... Thusly: ``` @@ -95,7 +98,7 @@ pip3 install --user sklearn sympy pip3 install --user tensorflow ``` -# Run Jupyter +## Run Jupyter Copy the `foo` to an appropriate place. Run similar to this: ``` @@ -107,3 +110,63 @@ jupyter-lab \ 1>>/home/jebba/log/karoo.log 2>>/home/jebba/log/karoo.err & ``` + +# Voila +Voila can take Jupyter notebooks and turn them into websites. +Example site below: + +* https://karoo.spacecruft.org/ + +## Install Voila +See other docs, maybe in satnogs-wut. + + +``` +# Install Dependencies: +sudo apt install python3 python3-pip python3-venv + +# Clone repo: +git clone https://spacecruft.org/spacecruft/karoo_gp + +# Setup +cd karoo_gp +git checkout jupyter + +pip3 install --user --upgrade pip +pip3 install --user --upgrade setuptools + +# Install python dependencies +pip3 install --user wheel +pip3 install --user sklearn sympy +# This will install Tensorflow 2.1: +pip3 install --user tensorflow +``` + +## Voila Apache +Snippet of apache code to set up proxy using Certbot. + +``` + +ServerAdmin webmaster@localhost +DocumentRoot /var/www/html +ErrorLog ${APACHE_LOG_DIR}/error.log +CustomLog ${APACHE_LOG_DIR}/access.log combined +RewriteEngine on +#LoadModule proxy_module modules/mod_proxy.so +#LoadModule proxy_http_module modules/mod_proxy_http.so +RequestHeader set X-Forwarded-Proto 'https'env=HTTPS +RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC] +RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC] +RewriteRule /(.*) ws://127.0.0.1:8221/$1 [P] + + ProxyPass http://127.0.0.1:8221/ + +ProxyVia On +ProxyPreserveHost On +Include /etc/letsencrypt/options-ssl-apache.conf +ServerName karoo.spacecruft.org +SSLCertificateFile /etc/letsencrypt/live/wut.spacecruft.org/fullchain.pem +SSLCertificateKeyFile /etc/letsencrypt/live/wut.spacecruft.org/privkey.pem + +``` +