From 23528802c59426844c5f8c853289b1331aa595a5 Mon Sep 17 00:00:00 2001 From: Eli Holmes - NOAA Date: Fri, 7 Mar 2025 14:16:48 -0800 Subject: [PATCH 1/2] open qmd in jupyter lab and notebook with editor --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5811d21..cdbc6e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -71,7 +71,11 @@ RUN mandb RUN mkdir -p ${NB_PYTHON_PREFIX}/etc/jupyter/jupyter_server_config.d/ && \ mkdir -p ${NB_PYTHON_PREFIX}/etc/jupyter/jupyter_notebook_config.d/ && \ cp ${REPO_DIR}/custom_jupyter_server_config.json ${NB_PYTHON_PREFIX}/etc/jupyter/jupyter_server_config.d/ && \ - cp ${REPO_DIR}/custom_jupyter_server_config.json ${NB_PYTHON_PREFIX}/etc/jupyter/jupyter_notebook_config.d/ + cp ${REPO_DIR}/custom_jupyter_server_config.json ${NB_PYTHON_PREFIX}/etc/jupyter/jupyter_notebook_config.d/ && \ + chown jovyan:staff ${NB_PYTHON_PREFIX}/etc/jupyter/jupyter_server_config.d/custom_jupyter_server_config.json && \ + chown jovyan:staff ${NB_PYTHON_PREFIX}/etc/jupyter/jupyter_notebook_config.d/custom_jupyter_server_config.json && \ + chmod 664 ${NB_PYTHON_PREFIX}/etc/jupyter/jupyter_server_config.d/custom_jupyter_server_config.json && \ + chmod 664 ${NB_PYTHON_PREFIX}/etc/jupyter/jupyter_notebook_config.d/custom_jupyter_server_config.json # Set up the defaults for Desktop. Keep config in the /etc so doesn't trash user environment (that they might want for other environments) ENV XDG_CONFIG_HOME=/etc/xdg/userconfig From 4f681107f7006e52194f1f7fe187c146a8176faf Mon Sep 17 00:00:00 2001 From: Eli Holmes - NOAA Date: Fri, 7 Mar 2025 14:22:27 -0800 Subject: [PATCH 2/2] Update custom_jupyter_server_config.json --- custom_jupyter_server_config.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/custom_jupyter_server_config.json b/custom_jupyter_server_config.json index ba62640..3bf4020 100644 --- a/custom_jupyter_server_config.json +++ b/custom_jupyter_server_config.json @@ -1,5 +1,10 @@ { "ContentsManager": { "allow_hidden": true + }, + "@jupyterlab/docmanager-extension:plugin": { + "defaultViewers": { + "qmd": "editor" + } } }