Skip to content

Commit 98a7ef0

Browse files
added support for codespaces.
1 parent d943078 commit 98a7ef0

File tree

2 files changed

+145
-0
lines changed

2 files changed

+145
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM python:3.8
2+
3+
RUN pip install autopep8 flake8 rope
4+
5+
RUN pip install numpy pandas tensorflow matplotlib
6+
7+
RUN pip3 install torch torchvision torchaudio \
8+
--extra-index-url https://download.pytorch.org/whl/cpu

.devcontainer/devcontainer.json

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
3+
{
4+
"name": "basic_python",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"build": {
7+
// Path is relataive to the devcontainer.json file.
8+
"dockerfile": "Dockerfile"
9+
},
10+
// Set *default* container specific settings.json values on container create.
11+
"settings": {
12+
"terminal.integrated.profiles.linux": {
13+
"bash": {
14+
"path": "bash",
15+
"icon": "terminal-bash"
16+
}
17+
},
18+
"terminal.integrated.defaultProfile.linux": "bash",
19+
"workbench.startupEditor": "none",
20+
"cSpell.enableFiletypes": [
21+
"shellscript"
22+
],
23+
// to do tree settings
24+
"todo-tree.highlights.defaultHighlight": {
25+
"icon": "alert",
26+
"type": "text-and-comment",
27+
"foreground": "#ffffff",
28+
// "background": "#808080",
29+
"opacity": 70,
30+
"iconColour": "#0000FF",
31+
"gutterIcon": true
32+
},
33+
"todo-tree.highlights.customHighlight": {
34+
"TODO": {
35+
"icon": "tools",
36+
// "foreground": "#000000",
37+
// "background": "#FFFFFF",
38+
"iconColour": "#FFFFFF"
39+
},
40+
"NOTE": {
41+
"icon": "note",
42+
"foreground": "#e404f8",
43+
// "background": "#808080",
44+
"iconColour": "#e404f8"
45+
},
46+
"QUESTION": {
47+
"icon": "question",
48+
"foreground": "#FFFF00",
49+
// "background": "#FFFF00",
50+
"iconColour": "#FFFF00"
51+
},
52+
"FIXME": {
53+
"foreground": "#000000",
54+
"background": "#FFFF00",
55+
"iconColour": "#FFFF00"
56+
},
57+
"BUG": {
58+
"foreground": "#000000",
59+
"background": "#FF0000",
60+
"iconColour": "#FF0000"
61+
},
62+
"DEBUG": {
63+
"foreground": "#FFFF00",
64+
// "background": "#FF0000",
65+
"iconColour": "#FFFF00"
66+
},
67+
"SOLVED": {
68+
"icon": "check",
69+
"foreground": "#FFFFFF",
70+
"background": "#00FF00",
71+
"iconColour": "#00FF00"
72+
}
73+
},
74+
"todo-tree.general.tags": [
75+
"TODO",
76+
"NOTE",
77+
"QUESTION",
78+
"FIXME",
79+
"BUG",
80+
"DEBUG",
81+
"SOLVED"
82+
],
83+
"todo-tree.regex.regex": "(//|#|<!--|;|/\\*|^|^\\s*(-|\\d+.))\\s*($TAGS).*(\\n\\s*//\\s{2,}.*)*",
84+
"todo-tree.tree.autoRefresh": true,
85+
"window.restoreWindows": "none",
86+
"indentRainbow.ignoreErrorLanguages": [
87+
"markdown",
88+
"python",
89+
"cpp"
90+
],
91+
"debug.console.wordWrap": false,
92+
"editor.wordWrap": "off",
93+
"editor.mouseWheelZoom": true,
94+
"python.linting.enabled": true,
95+
"python.linting.pylintEnabled": false,
96+
"python.linting.flake8Enabled": true,
97+
"editor.formatOnPaste": true,
98+
"editor.bracketPairColorization.independentColorPoolPerBracketType": true,
99+
"[dockerfile]": {
100+
"editor.defaultFormatter": "ms-azuretools.vscode-docker"
101+
},
102+
"terminal.integrated.fontFamily": "consolas",
103+
"terminal.integrated.fontSize": 16,
104+
"editor.formatOnSave": true,
105+
"jupyter.askForKernelRestart": false,
106+
"editor.minimap.enabled": false,
107+
"window.commandCenter": false,
108+
"terminal.integrated.shellIntegration.enabled": true,
109+
"editor.stickyScroll.enabled": true,
110+
"editor.foldingStrategy": "indentation",
111+
"editor.accessibilitySupport": "off",
112+
"git.confirmSync": false
113+
},
114+
// Add the IDs of extensions you want installed when the container is created.
115+
"extensions": [
116+
"ms-python.python",
117+
"oderwat.indent-rainbow",
118+
"njpwerner.autodocs",
119+
"ms-toolsai.jupyter",
120+
"ms-azuretools.vscode-docker",
121+
"gruntfuggly.todo-tree",
122+
"streetsidesoftware.code-spell-checker"
123+
],
124+
// Features to add to the dev container. More info: https://containers.dev/features.
125+
// "features": {},
126+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
127+
"forwardPorts": [
128+
8901,
129+
8902
130+
]
131+
// Use 'postCreateCommand' to run commands after the container is created.
132+
// "postCreateCommand": "uname -a",
133+
// Configure tool-specific properties.
134+
// "customizations": {},
135+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
136+
// "remoteUser": "vscode"
137+
}

0 commit comments

Comments
 (0)