Skip to content

Commit 05091e7

Browse files
authored
Fix "Render Notebook with Voila" in JupyterHub (#4487)
* Allow serving pages within JupyterHub image * [images/jupyter-singleuser] Bump version * Add JH prototype image profile for 2025.11.7
1 parent a8f0fe8 commit 05091e7

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
c.FileCheckpoints.checkpoint_dir = ( # noqa: F821
22
"/home/jovyan/.jupyter/.ipynb_checkpoints/"
33
)
4+
c.Spawner.args = [ # noqa: F821
5+
"--VoilaConfiguration.enable_nbextensions=True",
6+
"--VoilaConfiguration.file_whitelist=['.*']",
7+
'--NotebookApp.tornado_settings={"headers":{"Content-Security-Policy": "frame-ancestors \'self\'"}}',
8+
]

images/jupyter-singleuser/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "jupyter-singleuser"
3-
version = "2025.9.25"
3+
version = "2025.11.7"
44
description = "This is the notebook image that individual users are served via JupyterHub."
55
requires-python = ">=3.11.0, <3.12.0"
66

kubernetes/apps/charts/jupyterhub/values.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,17 @@ jupyterhub:
4040
mem_limit: "12G"
4141
mem_guarantee: "10G"
4242
cpu_guarantee: 1.5
43+
- display_name: "Prototype Image - 2025.11.7, Python 3.11"
44+
description: "This is the newer environment proposed for promotion to default. Recommended for analysts to use and report any issues. Your code will run on a shared machine with 3–10G of memory and 0.7–1.9 CPU cores."
45+
kubespawner_override:
46+
image: ghcr.io/cal-itp/data-infra/jupyter-singleuser:2025.11.7
47+
- display_name: "Power Prototype Image - 2025.11.7, Python 3.11"
48+
description: "This is the newer environment proposed for promotion to default. Recommended for analysts to use and report any issues. Your code will run on a shared machine with 10–12G of memory and 1.5–1.9 CPU cores."
49+
kubespawner_override:
50+
mem_limit: "12G"
51+
mem_guarantee: "10G"
52+
cpu_guarantee: 1.5
53+
image: ghcr.io/cal-itp/data-infra/jupyter-singleuser:2025.11.7
4354
- display_name: "Legacy Image - 2025.6.10, Python 3.11"
4455
description: "This is the older environment from before the dependency updates work. Your code will run on a shared machine with 3–10G of memory and 0.7–1.9 CPU cores."
4556
kubespawner_override:

0 commit comments

Comments
 (0)