Skip to content

Commit 3933f71

Browse files
authored
Add baseline framework
1 parent b570628 commit 3933f71

File tree

4 files changed

+57
-2
lines changed

4 files changed

+57
-2
lines changed

.devcontainer/devcontainer.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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/python
3+
{
4+
"name": "Python 3",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",
7+
"postCreateCommand": "pip install --user -r requirements.txt",
8+
"customizations": {
9+
"vscode": {
10+
"extensions": [
11+
"ms-python.python",
12+
"GitHub.github-vscode-theme",
13+
"ms-python.vscode-pylance",
14+
"ms-python.debugpy",
15+
"ms-toolsai.jupyter",
16+
"ms-toolsai.jupyter-keymap",
17+
"ms-toolsai.jupyter-renderers",
18+
"ms-toolsai.vscode-jupyter-slideshow",
19+
"mechatroner.rainbow-csv"
20+
]
21+
}
22+
}
23+
}

.vscode/settings.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"editor.bracketPairColorization.enabled": true,
3+
"editor.cursorBlinking": "solid",
4+
"editor.fontFamily": "ui-monospace, Menlo, Monaco, 'Cascadia Mono', 'Segoe UI Mono', 'Roboto Mono', 'Oxygen Mono', 'Ubuntu Monospace', 'Source Code Pro', 'Fira Mono', 'Droid Sans Mono', 'Courier New', monospace",
5+
"editor.fontLigatures": false,
6+
"editor.fontSize": 22,
7+
"editor.formatOnPaste": true,
8+
"editor.formatOnSave": true,
9+
"editor.lineNumbers": "on",
10+
"editor.matchBrackets": "always",
11+
"editor.minimap.enabled": false,
12+
"editor.smoothScrolling": true,
13+
"editor.tabSize": 2,
14+
"editor.useTabStops": true,
15+
"emmet.triggerExpansionOnTab": true,
16+
"files.autoSave": "afterDelay",
17+
"terminal.integrated.fontSize": 18,
18+
"workbench.colorTheme": "Visual Studio Dark",
19+
"workbench.fontAliasing": "antialiased",
20+
"workbench.statusBar.visible": true,
21+
}

README.md

+12-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
1-
# cs-python
2-
Baseline template to run Python in a codespace
1+
# Python and Jupyter Notebooks Codespaces Template
2+
Baseline template to run Python in a codespace.
3+
4+
## Included
5+
- Python 3.12-bullseye container
6+
- Jupyter Notebooks extensions preinstalled
7+
- Lightweight VS Code config (dark theme etc)
8+
- Auto-loaded requirements.txt file for Python dependencies
9+
- Python .gitignore file
10+
11+
## License
12+
Published under GPT-3 license. Free to use, at your own peril.

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python-dotenv

0 commit comments

Comments
 (0)