Skip to content

Commit

Permalink
Update user image to use latest ipywwt-based hubbleds
Browse files Browse the repository at this point in the history
  • Loading branch information
nmearl committed Jan 10, 2024
1 parent 7f0afa3 commit a805565
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 18 deletions.
12 changes: 6 additions & 6 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ channels:
- conda-forge

dependencies:
- jupyter_contrib_nbextensions==0.5.1
- jupyterhub-singleuser>=3.0,<4.0
- python=3.8
- nbgitpuller=1.1.*
- jupyter_contrib_nbextensions
- jupyterhub-singleuser
- python=3.10
- nbgitpuller
- pip
- git
- numpy
Expand All @@ -18,5 +18,5 @@ dependencies:
- h5py
- openblas
- pip:
- jupyter-server-proxy==3.2.2
- aiohttp==3.8.4
- jupyter-server-proxy @ git+https://github.com/jupyterhub/jupyter-server-proxy.git
- aiohttp
3 changes: 1 addition & 2 deletions jupyter_config.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"VoilaConfiguration": {
"template": "cosmicds-default",
"enable_nbextensions": true,
"file_whitelist": [".*"],
"file_allowlist": [".*"],
"show_tracebacks": true,
"http_keep_alive_timeout": 5
}
Expand Down
15 changes: 8 additions & 7 deletions jupyter_server_config_extra_tmpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@
"--Voila.base_url={base_url}hubble/",
"--Voila.server_url=/",
"--Voila.tornado_settings={{'allow_origin': '*'}}",
# "--VoilaConfiguration.template=cosmicds-default",
"--VoilaConfiguration.enable_nbextensions=true",
"--VoilaConfiguration.file_whitelist=['.*']",
"--VoilaConfiguration.template=cosmicds-default",
"--VoilaConfiguration.theme=dark",
# "--VoilaConfiguration.enable_nbextensions=true",
"--VoilaConfiguration.file_allowlist=['.*']",
"--VoilaConfiguration.show_tracebacks=true",
"--VoilaConfiguration.http_keep_alive_timeout=5",
"--MappingKernelManager.cull_interval=240",
"--MappingKernelManager.cull_idle_timeout=600",
"--ExecutePreprocessor.timeout=300"
# "--VoilaConfiguration.http_keep_alive_timeout=5",
# "--MappingKernelManager.cull_interval=240",
# "--MappingKernelManager.cull_idle_timeout=600",
# "--ExecutePreprocessor.timeout=300"
],
"absolute_url": False,
"launcher_entry": {"title": "Hubble Data Story"},
Expand Down
5 changes: 2 additions & 3 deletions postBuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ ls -lrt
jupyter --paths

mkdir -p /home/jovyan/.local/etc/jupyter
cat jupyter_server_config_extra.py >> /home/jovyan/.local/etc/jupyter/jupyter_server_config.py
# cat jupyter_server_config_extra.py >> /home/jovyan/.local/etc/jupyter/jupyter_server_config.py

export NODE_OPTIONS=--openssl-legacy-provider
pip install git+https://github.com/nmearl/hubbleds.git
pip install git+https://github.com/nmearl/hubbleds@2i2c-hub

jupyter nbextension install --py --symlink --sys-prefix ipyevents
jupyter nbextension enable ipyevents --py --sys-prefix
Expand Down

0 comments on commit a805565

Please sign in to comment.