2020-01-21 12:44:13 -07:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# spacecruft-voila-start
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
2020-01-21 19:08:09 -07:00
|
|
|
cd /srv/satnogs/satnogs-wut/notebooks/
|
2020-01-21 12:44:13 -07:00
|
|
|
|
|
|
|
voila \
|
2020-01-21 17:26:54 -07:00
|
|
|
--ExecutePreprocessor.timeout=600 \
|
2020-01-21 12:44:13 -07:00
|
|
|
--no-browser \
|
2020-01-21 17:26:54 -07:00
|
|
|
--port=8867 \
|
|
|
|
--theme=dark \
|
2020-01-21 12:44:13 -07:00
|
|
|
--autoreload=True \
|
|
|
|
--template=default \
|
|
|
|
--Voila.ip=localhost \
|
|
|
|
--VoilaConfiguration.enable_nbextensions=False \
|
2020-01-21 17:26:54 -07:00
|
|
|
wut-web.ipynb \
|
|
|
|
1>>~/log/voila.log 2>>~/log/voila.err &
|
2020-01-21 12:44:13 -07:00
|
|
|
exit
|
2020-01-21 17:26:54 -07:00
|
|
|
|
|
|
|
--debug \
|
2020-01-21 12:44:13 -07:00
|
|
|
--strip_sources=False \
|
|
|
|
|
|
|
|
--base_url=<Unicode> (Voila.base_url)
|
|
|
|
Default: '/'
|
|
|
|
Path for voila API calls. If server_url is unset, this will be
|
|
|
|
used for both the base route of the server and the client. If
|
|
|
|
server_url is set, the server will server the routes prefixed by
|
|
|
|
server_url, while the client will prefix by base_url (this is
|
|
|
|
useful in reverse proxies).
|
|
|
|
--server_url=<Unicode> (Voila.server_url)
|
|
|
|
Default: None
|
|
|
|
Path to prefix to voila API handlers. Leave unset to default to base_url
|
|
|
|
--Voila.config_file_paths=<List>
|
|
|
|
Default: []
|
|
|
|
Paths to search for voila.(py|json)
|
|
|
|
--Voila.connection_dir_root=<Unicode>
|
|
|
|
Default: ''
|
|
|
|
Location of temporry connection files. Defaults to system
|
|
|
|
`tempfile.gettempdir()` value.
|
|
|
|
--Voila.custom_display_url=<Unicode>
|
|
|
|
Default: ''
|
|
|
|
Override URL shown to users. Replace actual URL, including protocol,
|
|
|
|
address, port and base URL, with the given value when displaying URL to the
|
|
|
|
users. Do not change the actual connection URL. If authentication token is
|
|
|
|
enabled, the token is added to the custom URL automatically. This option is
|
|
|
|
intended to be used when the URL to display to the user cannot be determined
|
|
|
|
reliably by the Jupyter notebook server (proxified or containerized setups
|
|
|
|
for example).
|
|
|
|
--Voila.log_level=<Enum>
|
|
|
|
Default: 30
|
|
|
|
Choices: (0, 10, 20, 30, 40, 50, 'DEBUG', 'INFO', 'WARN', 'ERROR', 'CRITICAL')
|
|
|
|
Set the log level by value or name.
|
|
|
|
--Voila.root_dir=<Unicode>
|
|
|
|
Default: ''
|
|
|
|
The directory to use for notebooks.
|
|
|
|
|
|
|
|
--Voila.server_url=<Unicode>
|
|
|
|
Default: None
|
|
|
|
Path to prefix to voila API handlers. Leave unset to default to base_url
|
|
|
|
--Voila.static_paths=<List>
|
|
|
|
Default: ['/home/jebba/.local/lib/python3.7/site-packages/voila/static']
|
|
|
|
paths to static assets
|
|
|
|
--Voila.static_root=<Unicode>
|
|
|
|
Default: '/home/jebba/.local/lib/python3.7/site-packages/voila/static'
|
|
|
|
Directory holding static assets (HTML, JS and CSS files).
|
|
|
|
--Voila.template_paths=<List>
|
|
|
|
Default: []
|
|
|
|
path to nbconvert templates
|
|
|
|
--VoilaConfiguration.file_whitelist=['.*\\.(png|jpg|gif|svg)']
|
|
|
|
--VoilaConfiguration.resources=<Dict>
|
|
|
|
Default: {}
|
|
|
|
extra resources used by templates; example use with --template=reveal
|
|
|
|
--VoilaConfiguration.resources="{'reveal': {'transition': 'fade', 'scroll':
|
|
|
|
True}}"
|
|
|
|
|