Skip to content

Commit

Permalink
Update codespace to install package and ipykernel (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsetiawan authored Jul 20, 2023
1 parent 12f7c05 commit 2018305
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ COPY environment.yml* .devcontainer/noop.txt /tmp/conda-tmp/
RUN if [ -f "/tmp/conda-tmp/environment.yml" ]; then umask 0002 && /opt/conda/bin/conda env update -n base -f /tmp/conda-tmp/environment.yml; fi \
&& rm -rf /tmp/conda-tmp

# Setup libmamba solver
# Setup libmamba solver and ipykernel
RUN conda update --yes -n base conda \
&& conda install --yes -n base conda-libmamba-solver \
&& conda install --yes -n base \
conda-libmamba-solver \
ipykernel \
&& conda config --set solver libmamba

# [Optional] Uncomment to install a different version of Python than the default
Expand Down
10 changes: 7 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"build": {
"context": "..",
"dockerfile": "Dockerfile"
}
},

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
Expand All @@ -14,10 +14,14 @@
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "python --version",
"postCreateCommand": "pip install -e ${containerWorkspaceFolder}",

// Configure tool-specific properties.
// "customizations": {},
"customizations": {
"vscode": {
"extensions": ["ms-toolsai.jupyter", "ms-python.python"]
}
}

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
Expand Down

0 comments on commit 2018305

Please sign in to comment.