From 3884501db42bb580128a252b2fbacc2ce10f5df9 Mon Sep 17 00:00:00 2001 From: Jonathan Felder Date: Thu, 30 May 2024 13:08:07 -0700 Subject: [PATCH] [DH-262] add PDF export and remove QtPNG export from datahub and r hub --- deployments/datahub/config/common.yaml | 10 +++------- deployments/r/config/common.yaml | 5 +++-- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/deployments/datahub/config/common.yaml b/deployments/datahub/config/common.yaml index 6492e68b6..c8cb8d6b9 100644 --- a/deployments/datahub/config/common.yaml +++ b/deployments/datahub/config/common.yaml @@ -82,11 +82,6 @@ jupyterhub: nodeSelector: hub.jupyter.org/pool-name: core-pool-2024-05-08 singleuser: - extraFiles: - remove-exporters: - mountPath: /etc/jupyter/jupyter_notebook_config.py - stringData: | - c.QtPNGExporter.enabled = False extraEnv: # Unset NotebookApp from hub/values. Necessary for recent lab versions. JUPYTERHUB_SINGLEUSER_APP: "jupyter_server.serverapp.ServerApp" @@ -117,12 +112,13 @@ jupyterhub: mountPath: /home/jovyan/.rstudio subPath: '{username}/.datahub-rstudio' extraFiles: - # DH-164 + # DH-164, DH-262 remove-exporters: mountPath: /etc/jupyter/jupyter_notebook_config.py stringData: | c.QtPDFExporter.enabled = False - c.PDFExporter.enabled = False + c.PDFExporter.enabled = True + c.QtPNGExporter.enabled = False memory: guarantee: 512M limit: 1G diff --git a/deployments/r/config/common.yaml b/deployments/r/config/common.yaml index c1de043a7..51cb0040b 100644 --- a/deployments/r/config/common.yaml +++ b/deployments/r/config/common.yaml @@ -47,12 +47,13 @@ jupyterhub: singleuser: extraFiles: - # DH-216 + # DH-216, re-add PDFExporter DH-262 remove-exporters: mountPath: /etc/jupyter/jupyter_notebook_config.py stringData: | c.QtPDFExporter.enabled = False - c.PDFExporter.enabled = False + c.PDFExporter.enabled = True + c.QtPNGExporter.enabled = False extraEnv: # Unset NotebookApp from hub/values. Necessary for recent lab versions. JUPYTERHUB_SINGLEUSER_APP: "jupyter_server.serverapp.ServerApp"