Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8698bc2

Browse files
Add codespaces configuration
1 parent fa21b42 commit 8698bc2

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

‎.devcontainer/devcontainer.json‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
{
3+
"hostRequirements": {
4+
"memory": "8gb",
5+
"cpus": 4
6+
},
7+
"image": "mcr.microsoft.com/devcontainers/universal:2",
8+
"features": {
9+
"ghcr.io/devcontainers/features/desktop-lite:1": {},
10+
"ghcr.io/rocker-org/devcontainer-features/apt-packages:1": {
11+
"packages": "inkscape,ffmpeg,dvipng,lmodern,cm-super,texlive-latex-base,texlive-latex-extra,texlive-fonts-recommended,texlive-latex-recommended,texlive-pictures,texlive-xetex,fonts-wqy-zenhei,graphviz,fonts-crosextra-carlito,fonts-freefont-otf,fonts-humor-sans,fonts-noto-cjk,optipng"
12+
}
13+
},
14+
"onCreateCommand": ".devcontainer/setup.sh",
15+
"postCreateCommand": "",
16+
"customizations": {
17+
"vscode": {
18+
"extensions": [
19+
"ms-python.python",
20+
"yy0931.mplstyle",
21+
"eamodio.gitlens",
22+
"ms-vscode.live-server"
23+
],
24+
"settings": {}
25+
}
26+
}
27+
}

‎.devcontainer/setup.sh‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
curl micro.mamba.pm/install.sh | bash
6+
7+
conda init --all
8+
micromamba shell init -s bash
9+
micromamba env create -f environment.yml --yes
10+
# Note that `micromamba activate mpl-dev` doesn't work, it must be run by the
11+
# user (same applies to `conda activate`)
12+
echo "envs_dirs:
13+
- /home/codespace/micromamba/envs" > /opt/conda/.condarc

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /