Skip to content

Commit dc74bf3

Browse files
authored
Merge pull request #3 from brian-rose/main
Add some notebook content and a Binder link
2 parents 243cb95 + e25d8f6 commit dc74bf3

File tree

4 files changed

+91
-1
lines changed

4 files changed

+91
-1
lines changed

_config.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@ bibtex_bibfiles:
2121

2222
# Information about where the book exists on the web
2323
repository:
24-
url: https://projectpythia.github.io/pythia-foundations # Online location of your book
24+
url: https://github.com/ProjectPythia/pythia-foundations # Online location of your book
2525
#path_to_book: docs # Optional path to your book, relative to the repository root
2626
branch: main # Which branch of the repository should be used when creating links (optional)
27+
# Configure your Binder links, such as the URL of the BinderHub.
28+
launch_buttons:
29+
binderhub_url : https://mybinder.org
2730

2831
# Add GitHub buttons to your book
2932
# See https://jupyterbook.org/customize/config.html#add-a-link-to-your-repository

_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)