From 1add158395ba28085b21daf98c9b50ea42610dfa Mon Sep 17 00:00:00 2001 From: Jim Huang Date: Thu, 6 Nov 2025 15:50:24 +0800 Subject: [PATCH] Suppress JupyterLab notifications JupyterLab displays "Would you like to get notified about official Jupyter news?" banner or "A newer version is available" notification because JupyterLab default configuration enables news notifications and version checks - Add source/overrides.json to disable fetchNews and checkForUpdates - Update Dockerfile to copy overrides.json to JupyterLab user-settings --- Dockerfile | 4 +- OneDayAgenda.md | 66 --------------------------------- source/jupyter_server_config.py | 8 ++++ source/overrides.json | 6 +++ 4 files changed, 17 insertions(+), 67 deletions(-) delete mode 100644 OneDayAgenda.md create mode 100644 source/overrides.json diff --git a/Dockerfile b/Dockerfile index 538379a..f65a78a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,8 +44,10 @@ COPY . /chisel-bootcamp/ WORKDIR /chisel-bootcamp RUN mkdir -p $JUPYTER_CONFIG_DIR/custom && \ + mkdir -p $JUPYTER_CONFIG_DIR/lab/user-settings/@jupyterlab/apputils-extension && \ cp source/custom.js $JUPYTER_CONFIG_DIR/custom/ && \ - cp source/jupyter_server_config.py $JUPYTER_CONFIG_DIR/ + cp source/jupyter_server_config.py $JUPYTER_CONFIG_DIR/ && \ + cp source/overrides.json $JUPYTER_CONFIG_DIR/lab/user-settings/@jupyterlab/apputils-extension/notification.jupyterlab-settings # Second stage - download Scala requirements and the Scala kernel FROM base AS intermediate-builder diff --git a/OneDayAgenda.md b/OneDayAgenda.md deleted file mode 100644 index 4bc57a2..0000000 --- a/OneDayAgenda.md +++ /dev/null @@ -1,66 +0,0 @@ -# One Day : Chisel Bootcamp -The goal of this bootcamp is to get the attendee up to speed with Scala -and Chisel as quickly as possible. The format should be casual with a lot -of questions and immediate feedback. -There's a lot of content here so it -is very unlikely that we will get through everything so instead we will -try and get some hands work in each section to get a taste of the concepts. -It is a very good idea to follow up this bootcamp by fully going through every -section. - -This will all go faster and smoother if you can prepare a development environment beforehand. -Checkout [The Chisel Bootcamp](https://github.com/freechipsproject/chisel-bootcamp) on [github](https://github.com) - -## Presenters -- -## Schedule - -- 9:00 AM -- Quick Introduction to Chisel & the Bootcamp - - Why Chisel. - - How the bootcamp works - -- 9:15 AM -- Section 1: Introduction to Scala - - Why Scala? Coming up to Speed. 5 min. - - Hands on Section 1 - - -- 10:00 AM -- Section 2.1 Combinational Logic - - Pep talk on building circuits with Chisel 5+ minutes - - Hands on Section 2.1 - -- 11:00 AM -- Sections 2.2, 2.3, and 2.4 - - After this hour, you can build anything ~3 minutes - - Hands on Sections 2.2, 2.3, and 2.4 - -- 12:00 PM -- Sections 2.5 - - Putting it all together ~3 minutes - - Hands on Section 2.5. Up to DSP Example - -- 12:30 -- **Lunch** - -- 1:30 PM -- Section 3.1 and 3.2 and Interlude - - About generators. 5 min. - - Hands on Section 3.1 and 3.2 and Interlude - -- 2:30 PM -- Section 3.3 and 3.4 - - About functional programming. 5 min. - - Hands on Section 3.3 and 3.4 - -- 3:30 PM -- Section 3.5 and 3.6 - - About object ans types. 5 min. - - Hands on Section 3.5 and 3.6 - -- 4:30 PM -- Further topics - - Firrtl - - Chisel template - - sbt - - IntelliJ - - Thank you - -- 5:00 PM - ## Done! - - - - - diff --git a/source/jupyter_server_config.py b/source/jupyter_server_config.py index d5617f5..aea6ed6 100644 --- a/source/jupyter_server_config.py +++ b/source/jupyter_server_config.py @@ -31,3 +31,11 @@ def filter(self, record): # Apply the filter to ServerApp logger server_logger = logging.getLogger('ServerApp') server_logger.addFilter(SuppressAuthWarning()) + +# Hide system and build files from file browser +# Students only need to see notebook files (*.ipynb) +c.ContentsManager.hide_globs = [ + 'almond', 'coursier', 'Dockerfile', 'LICENSE', + 'Install.md', 'README.md', 'runtest.py', + 'binder', 'images', 'source' +] diff --git a/source/overrides.json b/source/overrides.json new file mode 100644 index 0000000..7471b32 --- /dev/null +++ b/source/overrides.json @@ -0,0 +1,6 @@ +{ + "@jupyterlab/apputils-extension:notification": { + "fetchNews": "false", + "checkForUpdates": false + } +}