Voila!
parent
3829dafe64
commit
7f80a61a45
67
README.md
67
README.md
|
@ -71,7 +71,10 @@ pip3 install tensorflow
|
||||||
python3 karoo_gp.py
|
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:
|
To install everything for jupyter, not in virt env... Thusly:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -95,7 +98,7 @@ pip3 install --user sklearn sympy
|
||||||
pip3 install --user tensorflow
|
pip3 install --user tensorflow
|
||||||
```
|
```
|
||||||
|
|
||||||
# Run Jupyter
|
## Run Jupyter
|
||||||
Copy the `foo` to an appropriate place. Run similar to this:
|
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 &
|
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.
|
||||||
|
|
||||||
|
```
|
||||||
|
<VirtualHost karoo.spacecruft.org:443>
|
||||||
|
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]
|
||||||
|
<Location />
|
||||||
|
ProxyPass http://127.0.0.1:8221/
|
||||||
|
</Location>
|
||||||
|
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
|
||||||
|
</VirtualHost>
|
||||||
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue