diff --git a/docker-compose/jupyter/Dockerfile b/docker-compose/jupyter/Dockerfile
index 29f736cdca2fc843750612c6780ea7ad2dfa516e..0ad27d2a5580ae16d6c7535f4fa97ead82a21a81 100644
--- a/docker-compose/jupyter/Dockerfile
+++ b/docker-compose/jupyter/Dockerfile
@@ -9,7 +9,6 @@ ARG CONTAINER_EXECUTION_UID=1000
 ENV HOME=/home/user
 RUN sudo mkdir -p ${HOME}
 RUN sudo chown ${CONTAINER_EXECUTION_UID} -R ${HOME}
-USER ${CONTAINER_EXECUTION_UID}
 
 RUN sudo pip3 install jupyter
 RUN sudo pip3 install ipykernel
@@ -20,8 +19,6 @@ RUN sudo pip3 install matplotlib jupyterplot
 # Allow Download as -> PDF via html
 RUN sudo pip3 install nbconvert
 RUN sudo pip3 install notebook-as-pdf
-# pyppeteer-install installs in the homedir, so run it as the user that will execute the notebook
-RUN pyppeteer-install
 
 # see https://github.com/jupyter/nbconvert/issues/1434
 RUN sudo bash -c "echo DEFAULT_ARGS += [\\\"--no-sandbox\\\"] >> /usr/local/lib/python3.7/dist-packages/pyppeteer/launcher.py"
@@ -46,7 +43,7 @@ RUN sudo pip3 install python-logstash-async
 COPY jupyter-notebook /usr/local/bin/jupyter-notebook
 
 #Install further python modules
-RUN sudo pip3 install PyMySQL[rsa] sqlalchemy
+RUN sudo pip3 install PyMySQL[rsa] sqlalchemy pyvisa
 
 # Add Tini. Tini operates as a process subreaper for jupyter. This prevents kernel crashes.
 ENV TINI_VERSION v0.6.0
@@ -54,3 +51,6 @@ ENV JUPYTER_RUNTIME_DIR=/tmp
 ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /usr/bin/tini
 RUN sudo chmod +x /usr/bin/tini
 
+USER ${CONTAINER_EXECUTION_UID}
+# pyppeteer-install installs in the homedir, so run it as the user that will execute the notebook
+RUN pyppeteer-install