Skip to content

Commit

Permalink
Merge pull request ProjectPythia#3 from brian-rose/main
Browse files Browse the repository at this point in the history
Add some notebook content and a Binder link
  • Loading branch information
brian-rose authored Feb 12, 2021
2 parents 243cb95 + e25d8f6 commit dc74bf3
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 1 deletion.
5 changes: 4 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ bibtex_bibfiles:

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

# Add GitHub buttons to your book
# See https://jupyterbook.org/customize/config.html#add-a-link-to-your-repository
Expand Down
2 changes: 2 additions & 0 deletions _toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
chapters:
- file: foundations/overview
- file: foundations/basic-python
sections:
- file: foundations/Hello
- file: foundations/jupyter
- file: foundations/markdown
- file: foundations/conda
Expand Down
77 changes: 77 additions & 0 deletions foundations/Hello.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "interracial-cheat",
"metadata": {},
"source": [
"# Fun with Python\n",
"\n",
"A very minimal example for the Pythia Foundations collection."
]
},
{
"cell_type": "markdown",
"id": "documented-idaho",
"metadata": {},
"source": [
"A Python program can be a single line:"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "after-jenny",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Hello interweb\n"
]
}
],
"source": [
"print('Hello interweb')"
]
},
{
"cell_type": "markdown",
"id": "accompanied-crash",
"metadata": {},
"source": [
"Try it out in Binder and run it yourself!"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "future-transcription",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.6"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
8 changes: 8 additions & 0 deletions foundations/basic-python.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,11 @@
```{note}
This content is under construction!
```

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.

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.

Here's a minimal example:

- [Fun with Python](Hello)

0 comments on commit dc74bf3

Please sign in to comment.