Skip to content

Commit 100f845

Browse files
committed
Add option to run on GitHub Codespaces
1 parent a9a9aea commit 100f845

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "SparkTraining",
3+
"hostRequirements": {
4+
"cpus": 2,
5+
"memory": "2gb",
6+
"storage": "2gb"
7+
},
8+
"containerEnv": {
9+
"PYTHONUNBUFFERED": "1"
10+
},
11+
"postCreateCommand": "python -m pip install --upgrade pip && pip install -r requirements.txt && cd notebooks",
12+
"extensions": [
13+
"ms-python.python",
14+
"ms-toolsai.jupyter"
15+
],
16+
}
17+

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
[![SWAN](https://swan.web.cern.ch/sites/swan.web.cern.ch/files/pictures/open_in_swan.svg)](https://cern.ch/swanserver/cgi-bin/go?projurl=https://github.com/cerndb/SparkTraining.git)
44
[<img src="https://colab.research.google.com/assets/colab-badge.svg">](https://colab.research.google.com/github/cerndb/SparkTraining)
55
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/cerndb/SparkTraining/master)
6+
<a href="https://codespaces.new/cerndb/SparkTraining?devcontainer_path=.devcontainer%2FSparkTraining%2Fdevcontainer.json">
7+
<img src="https://github.com/codespaces/badge.svg" alt="Open in GitHub Codespaces" width="180">
8+
</a>
69

710
### Course website with videos and slides: https://sparktraining.web.cern.ch/
811

@@ -63,7 +66,9 @@ Contact: Luca.Canali@cern.ch
6366
- `git clone https://github.com/cerndb/SparkTraining`
6467
- or clone the image at `https://gitlab.cern.ch/db/SparkTraining`
6568
- Start jupyter: `jupyter-notebook`
69+
- Run the notebooks on GitHub Codespaces: <a href="https://codespaces.new/cerndb/SparkTraining?devcontainer_path=.devcontainer%2FSparkTraining%2Fdevcontainer.json">
70+
<img src="https://github.com/codespaces/badge.svg" alt="Open in GitHub Codespaces" width="180"></a>
6671
- Run the notebooks on Colab: [<img src="https://colab.research.google.com/assets/colab-badge.svg">](https://colab.research.google.com/github/cerndb/SparkTraining)
67-
- With this option you will need also to download the data folder and pip install pyspark
72+
- With this option you will need also to download the data folder and `pip install pyspark`
6873
- Run on binder: [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/cerndb/SparkTraining/master)
6974

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pyspark
2+

0 commit comments

Comments
 (0)