Skip to content

Commit 6fbe367

Browse files
committed
Add examplar jupyter notebook content
1 parent 243cb95 commit 6fbe367

File tree

3 files changed

+87
-0
lines changed

3 files changed

+87
-0
lines changed

_toc.yml

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
chapters:
1313
- file: foundations/overview
1414
- file: foundations/basic-python
15+
sections:
16+
- file: foundations/Hello
1517
- file: foundations/jupyter
1618
- file: foundations/markdown
1719
- file: foundations/conda

foundations/Hello.ipynb

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"id": "interracial-cheat",
6+
"metadata": {},
7+
"source": [
8+
"# Fun with Python\n",
9+
"\n",
10+
"A very minimal example for the Pythia Foundations collection."
11+
]
12+
},
13+
{
14+
"cell_type": "markdown",
15+
"id": "documented-idaho",
16+
"metadata": {},
17+
"source": [
18+
"A Python program can be a single line:"
19+
]
20+
},
21+
{
22+
"cell_type": "code",
23+
"execution_count": 1,
24+
"id": "after-jenny",
25+
"metadata": {},
26+
"outputs": [
27+
{
28+
"name": "stdout",
29+
"output_type": "stream",
30+
"text": [
31+
"Hello interweb\n"
32+
]
33+
}
34+
],
35+
"source": [
36+
"print('Hello interweb')"
37+
]
38+
},
39+
{
40+
"cell_type": "markdown",
41+
"id": "accompanied-crash",
42+
"metadata": {},
43+
"source": [
44+
"Try it out in Binder and run it yourself!"
45+
]
46+
},
47+
{
48+
"cell_type": "code",
49+
"execution_count": null,
50+
"id": "future-transcription",
51+
"metadata": {},
52+
"outputs": [],
53+
"source": []
54+
}
55+
],
56+
"metadata": {
57+
"kernelspec": {
58+
"display_name": "Python 3",
59+
"language": "python",
60+
"name": "python3"
61+
},
62+
"language_info": {
63+
"codemirror_mode": {
64+
"name": "ipython",
65+
"version": 3
66+
},
67+
"file_extension": ".py",
68+
"mimetype": "text/x-python",
69+
"name": "python",
70+
"nbconvert_exporter": "python",
71+
"pygments_lexer": "ipython3",
72+
"version": "3.8.6"
73+
}
74+
},
75+
"nbformat": 4,
76+
"nbformat_minor": 5
77+
}

foundations/basic-python.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@
33
```{note}
44
This content is under construction!
55
```
6+
7+
This section will contain tutorials on some basics of Python syntax. We will not cover a comprehensive introduction to programming concepts, but will aim this material at people who have done at least some coding before but are new to Python.
8+
9+
We can use [Jupyter](jupyter) notebooks for much of the content, which will be rendered here as static pages but also be Binderized for interactive learning.
10+
11+
Here's a minimal example:
12+
13+
- [Fun with Python](Hello)

0 commit comments

Comments
 (0)