Skip to content

Commit e27f169

Browse files
authored
test using workspace settings to filter available kernels
1 parent 69c9874 commit e27f169

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

Dockerfile

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,19 @@ RUN mamba env update -n base -f environment.yml
4949
RUN echo "alias pip=pip3" >> ~/.bashrc
5050
RUN echo "alias python=python3" >> ~/.bashrc
5151

52-
RUN mkdir -p /home/coder/.local/share/code-server/Machine/
53-
RUN echo "{\"workbench.colorTheme\": \"Default Dark+\", \"python.pythonPath\": \"/home/coder/local/bin/conda/bin/python\"}" >> /home/coder/.local/share/code-server/Machine/settings.json
54-
52+
RUN mkdir -p /home/coder/.vscode/settings.json
53+
cat <<EOT >>
54+
{
55+
"jupyter.kernels.filter": [
56+
{
57+
"path": "/usr/bin/python3",
58+
"type": "pythonEnvironment"
59+
}
60+
],
61+
"workbench.colorTheme": "Default Dark+",
62+
"python.defaultInterpreterPath": "/home/coder/local/bin/conda/bin/python"
63+
}
64+
EOT
5565

5666
# Nice colors in python terminal
5767
RUN echo "import sys ; from IPython.core.ultratb import ColorTB ; sys.excepthook = ColorTB() ;" >> /home/coder/local/bin/conda/lib/python3.9/site-packages/sitecustomize.py

0 commit comments

Comments
 (0)