Version/Environment (if relevant):
This applies to using the Domino Standard Environment (DSE) for Domino versions 5.6.x or 5.7.x
Issue:
When trying to use notebooks in VSCode you must manually reload the Python extension upon every start or restart in order to use it, otherwise the IDE will have trouble finding the proper kernel for execution your Python or notebook code:
Root Cause:
In the 5.6 DSE VSCode's code-server was upgraded, resulting in code-server . Apparently within the dependencies for code-server and ms-python there are defects resulting in this problem.
Resolutions:
Option 1: You can "reload" via the extension panel on the left of your VSCode IDE.
Option 2: You can revert to the 5.5 DSE.
Option 3: The following dockerfile instructions can be used with the 5.6.x or 5.7.x DSE to download which downloads and uses ms-python.python-2023.4.1
, a combo which remedies the behavior.
USER root
RUN rm -r /home/ubuntu/.local/share/code-server/
RUN rm -r /home/ubuntu/.config/code-server
RUN rm -r /usr/lib/code-server
RUN rm -r /usr/bin/code-server
RUN curl -fOL https://github.com/coder/code-server/releases/download/v4.10.0/code-server_4.10.0_amd64.deb && \
dpkg -i code-server_4.10.0_amd64.deb && \
rm -rf code-server_4.10.0_amd64.deb
# Install VSCode extensions for python (pinned to this version so the python extension works for python notebooks)
RUN cd /tmp && \
mkdir -p /home/ubuntu/.local/share/code-server/ && \
mkdir -p /home/ubuntu/.config && \
wget -nv -O ms-python-release.vsix https://open-vsx.org/api/ms-python/python/2023.4.1/file/ms-python.python-2023.4.1.vsix && \
code-server --install-extension ./ms-python-release.vsix --extensions-dir /home/ubuntu/.local/share/code-server/extensions || true && \
chown -R ${DOMINO_USER}.${DOMINO_GROUP} "/home/${DOMINO_USER}" && \
rm -rf /tmp/* && \
rm -rf /var/tmp/*
USER ubuntu
Notes/Information:
This is resolved as of the 5.8 DSE.
References/Internal Records:
- https://dominodatalab.atlassian.net/browse/DOM-49540
Comments
0 comments
Please sign in to leave a comment.