2020-01-20 23:47:27 -07:00
|
|
|
# Voila
|
|
|
|
|
|
|
|
Voila is a way to turn Jupyter notebooks into web applications.
|
|
|
|
|
|
|
|
# Install
|
|
|
|
Start with basic Debian Buster install.
|
|
|
|
|
|
|
|
```
|
2020-01-21 00:48:17 -07:00
|
|
|
# set up partitions
|
|
|
|
# XXX deps...
|
|
|
|
sudo apt update
|
|
|
|
sudo apt install apache2 python3-certbot-apache python3-pip sshfs
|
|
|
|
certbot
|
|
|
|
systemctl restart apache2
|
|
|
|
adduser wut
|
|
|
|
sudo su - wut
|
|
|
|
pip3 install --upgrade pip
|
|
|
|
# make sure new `pip3` at `~/.local/bin/pip3` is in front in `$PATH`.
|
|
|
|
logout #log back in
|
|
|
|
sudo su - wut
|
|
|
|
pip3 install --user --upgrade setuptools
|
|
|
|
pip3 install --user simplejson
|
|
|
|
pip3 install --user pillow
|
|
|
|
pip3 install --user tensorflow
|
|
|
|
pip3 list | grep tensorflow
|
|
|
|
pip3 install --user voila
|
2020-01-21 11:44:04 -07:00
|
|
|
pip3 install --user ipywidgets
|
|
|
|
pip3 install --user matplotlib
|
|
|
|
# probably not needed
|
|
|
|
pip3 install --user sklearn
|
|
|
|
pip3 install --user seaborn
|
2020-01-21 00:48:17 -07:00
|
|
|
# set up hosts file, network, etc.
|
|
|
|
# set up apache proxy
|
|
|
|
# start voila
|
2020-01-20 23:47:27 -07:00
|
|
|
```
|
|
|
|
|
2020-01-22 17:01:59 -07:00
|
|
|
# Misc
|
|
|
|
Other deps, perhaps used, needed.
|
|
|
|
|
|
|
|
* https://ipywidgets.readthedocs.io/en/stable/user_install.html
|
|
|
|
|
|
|
|
To enable Jupyter widgets:
|
|
|
|
|
|
|
|
```
|
2020-01-22 17:30:01 -07:00
|
|
|
apt install npm nodejs
|
2020-01-22 17:01:59 -07:00
|
|
|
jupyter nbextension enable --py widgetsnbextension
|
2020-01-22 17:30:01 -07:00
|
|
|
jupyter labextension install @jupyter-widgets/jupyterlab-manager
|
|
|
|
|
2020-01-22 17:01:59 -07:00
|
|
|
```
|
|
|
|
|
2020-01-20 23:47:27 -07:00
|
|
|
# wut?
|
|
|
|
Site:
|
|
|
|
|
|
|
|
* https://wut.spacecruft.org
|
|
|
|
|