Skip to content

Commit

Permalink
Merge pull request #3282 from yuvipanda/allow-hidden
Browse files Browse the repository at this point in the history
Allow JupyterLab to show hidden files
  • Loading branch information
yuvipanda authored Oct 18, 2023
2 parents 51b7211 + a898485 commit 30b7c1b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 24 deletions.
8 changes: 0 additions & 8 deletions config/clusters/2i2c/jackeddy.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,6 @@ basehub:
url: ""
custom_html: <a href="https://science.nasa.gov/heliophysics/programs/living-with-a-star/">NASA's Living with a Star program</a> and <a href="https://cpaess.ucar.edu/">UCAR/CPAESS</a>
singleuser:
extraFiles:
# FIXME: document this feature
# Currently only documented in the context of culling https://infrastructure.2i2c.org/sre-guide/manage-k8s/culling/#kernel-culling-configuration
jupyter_notebook_config.json:
data:
# Allow jupyterlab option to show hidden files in browser
ContentsManager:
allow_hidden: true
# https://infrastructure.2i2c.org/howto/features/dedicated-nodepool/
nodeSelector:
# Applied to all profile options
Expand Down
8 changes: 0 additions & 8 deletions config/clusters/jupyter-meets-the-earth/common.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,6 @@ basehub:
url: https://jupytearth.org

singleuser:
extraFiles:
jupyter_server_config.json:
mountPath: /etc/jupyter/jupyter_notebook_config.json
data:
# Allow jupyterlab option to show hidden files in browser
# https://github.com/berkeley-dsep-infra/datahub/issues/3160
ContentsManager:
allow_hidden: true
initContainers:
# Need to explicitly set this up and copy what's in basehub/values.yaml
# as we have an extra 'shared-public' directory here.
Expand Down
8 changes: 0 additions & 8 deletions config/clusters/nasa-cryo/common.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,6 @@ basehub:
- jomey

singleuser:
extraFiles:
# jupyter_server_config.json is defined by basehub, this entry adds to it
jupyter_server_config.json:
data:
ContentsManager:
# Enable showing hidden files in JupyterLab
# https://github.com/CryoInTheCloud/hub-image/issues/3
allow_hidden: true
defaultUrl: /lab
storage:
extraVolumes:
Expand Down
5 changes: 5 additions & 0 deletions helm-charts/basehub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,11 @@ jupyterhub:
# as culling the kernel will register activity,
# resetting the no_activity timer for the server as a whole
data:
# Allow JupyterLab to show the 'View -> Show Hidden Files' option
# in the menu. Defaults are not changed.
# https://github.com/jupyterlab/jupyterlab/issues/11304#issuecomment-945466766
ContentsManager:
allow_hidden: true
# MappingKernelManager configuration reference:
# https://jupyter-server.readthedocs.io/en/latest/api/jupyter_server.services.kernels.html#jupyter_server.services.kernels.kernelmanager.MappingKernelManager
#
Expand Down

0 comments on commit 30b7c1b

Please sign in to comment.