Skip to content

Commit 89c9da9

Browse files
authored
Merge pull request #318 from harshad16/disable-announcements
fix: disable announcement of jupyterlab notification
2 parents 1e9cad8 + c80f69d commit 89c9da9

File tree

7 files changed

+21
-1
lines changed

7 files changed

+21
-1
lines changed

jupyter/datascience/ubi8-python-3.8/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ USER root
3030
# Install usefull OS packages
3131
RUN dnf install -y jq unixODBC git-lfs libsndfile
3232

33+
# Disable announcement plugin of jupyterlab
34+
RUN jupyter labextension disable "@jupyterlab/apputils-extension:announcements"
35+
3336
# Install MongoDB Client, We need a special repo for MongoDB as they do their own distribution
3437
COPY mongodb-org-6.0.repo-x86_64 /etc/yum.repos.d/mongodb-org-6.0.repo
3538

jupyter/datascience/ubi9-python-3.9/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ USER root
3030
# Install usefull OS packages
3131
RUN dnf install -y jq unixODBC postgresql git-lfs libsndfile
3232

33+
# Disable announcement plugin of jupyterlab
34+
RUN jupyter labextension disable "@jupyterlab/apputils-extension:announcements"
35+
3336
# Install MongoDB Client, We need a special repo for MongoDB as they do their own distribution
3437
COPY mongodb-org-6.0.repo-x86_64 /etc/yum.repos.d/mongodb-org-6.0.repo
3538

jupyter/minimal/ubi8-python-3.8/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ COPY Pipfile.lock start-notebook.sh ./
2020
# Install Python dependencies from Pipfile.lock file
2121
RUN echo "Installing softwares and packages" && micropipenv install && rm -f ./Pipfile.lock
2222

23+
# Disable announcement plugin of jupyterlab
24+
RUN jupyter labextension disable "@jupyterlab/apputils-extension:announcements"
25+
2326
# Fix permissions to support pip in Openshift environments
2427
RUN chmod -R g+w /opt/app-root/lib/python3.8/site-packages && \
2528
fix-permissions /opt/app-root -P

jupyter/minimal/ubi9-python-3.9/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ COPY Pipfile.lock start-notebook.sh ./
2020
# Install Python dependencies from Pipfile.lock file
2121
RUN echo "Installing softwares and packages" && micropipenv install && rm -f ./Pipfile.lock
2222

23+
# Disable announcement plugin of jupyterlab
24+
RUN jupyter labextension disable "@jupyterlab/apputils-extension:announcements"
25+
2326
# Fix permissions to support pip in Openshift environments
2427
RUN chmod -R g+w /opt/app-root/lib/python3.9/site-packages && \
2528
fix-permissions /opt/app-root -P

jupyter/pytorch/ubi9-python-3.9/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ RUN echo "Installing softwares and packages" && \
1818
micropipenv install && \
1919
rm -f ./Pipfile.lock && \
2020
# Replace Notebook's launcher, "(ipykernel)" with Python's version 3.x.y \
21-
sed -i -e "s/Python.*/$(python --version | cut -d '.' -f-2)\",/" /opt/app-root/share/jupyter/kernels/python3/kernel.json
21+
sed -i -e "s/Python.*/$(python --version | cut -d '.' -f-2)\",/" /opt/app-root/share/jupyter/kernels/python3/kernel.json && \
22+
# Disable announcement plugin of jupyterlab \
23+
jupyter labextension disable "@jupyterlab/apputils-extension:announcements"
2224

2325
# Fix permissions to support pip in Openshift environments
2426
RUN chmod -R g+w /opt/app-root/lib/python3.9/site-packages && \

jupyter/tensorflow/ubi9-python-3.9/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ RUN echo "Installing softwares and packages" && micropipenv install && rm -f ./P
1919
# Replace Notebook's launcher, "(ipykernel)" with Python's version 3.x.y
2020
RUN sed -i -e "s/Python.*/$(python --version | cut -d '.' -f-2)\",/" /opt/app-root/share/jupyter/kernels/python3/kernel.json
2121

22+
# Disable announcement plugin of jupyterlab
23+
RUN jupyter labextension disable "@jupyterlab/apputils-extension:announcements"
24+
2225
# Fix permissions to support pip in Openshift environments
2326
RUN chmod -R g+w /opt/app-root/lib/python3.9/site-packages && \
2427
fix-permissions /opt/app-root -P

jupyter/trustyai/ubi9-python-3.9/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ RUN echo "Installing softwares and packages" && micropipenv install && rm -f ./P
2828
# Replace Notebook's launcher, "(ipykernel)" with Python's version 3.x.y
2929
RUN sed -i -e "s/Python.*/$(python --version | cut -d '.' -f-2)\",/" /opt/app-root/share/jupyter/kernels/python3/kernel.json
3030

31+
# Disable announcement plugin of jupyterlab
32+
RUN jupyter labextension disable "@jupyterlab/apputils-extension:announcements"
33+
3134
# Fix permissions to support pip in Openshift environments
3235
RUN chmod -R g+w /opt/app-root/lib/python3.9/site-packages && \
3336
fix-permissions /opt/app-root -P

0 commit comments

Comments
 (0)