Skip to content

Commit e58b468

Browse files
authored
Merge pull request #9 from sysprog21/refine
Suppress JupyterLab notifications
2 parents e205f12 + 1add158 commit e58b468

File tree

4 files changed

+17
-67
lines changed

4 files changed

+17
-67
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ COPY . /chisel-bootcamp/
4444
WORKDIR /chisel-bootcamp
4545

4646
RUN mkdir -p $JUPYTER_CONFIG_DIR/custom && \
47+
mkdir -p $JUPYTER_CONFIG_DIR/lab/user-settings/@jupyterlab/apputils-extension && \
4748
cp source/custom.js $JUPYTER_CONFIG_DIR/custom/ && \
48-
cp source/jupyter_server_config.py $JUPYTER_CONFIG_DIR/
49+
cp source/jupyter_server_config.py $JUPYTER_CONFIG_DIR/ && \
50+
cp source/overrides.json $JUPYTER_CONFIG_DIR/lab/user-settings/@jupyterlab/apputils-extension/notification.jupyterlab-settings
4951

5052
# Second stage - download Scala requirements and the Scala kernel
5153
FROM base AS intermediate-builder

OneDayAgenda.md

Lines changed: 0 additions & 66 deletions
This file was deleted.

source/jupyter_server_config.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,11 @@ def filter(self, record):
3131
# Apply the filter to ServerApp logger
3232
server_logger = logging.getLogger('ServerApp')
3333
server_logger.addFilter(SuppressAuthWarning())
34+
35+
# Hide system and build files from file browser
36+
# Students only need to see notebook files (*.ipynb)
37+
c.ContentsManager.hide_globs = [
38+
'almond', 'coursier', 'Dockerfile', 'LICENSE',
39+
'Install.md', 'README.md', 'runtest.py',
40+
'binder', 'images', 'source'
41+
]

source/overrides.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"@jupyterlab/apputils-extension:notification": {
3+
"fetchNews": "false",
4+
"checkForUpdates": false
5+
}
6+
}

0 commit comments

Comments
 (0)