Skip to content

Commit 25029cd

Browse files
committed
start of a jupyter book
1 parent b6ba2ba commit 25029cd

File tree

133 files changed

+98
-436840
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+98
-436840
lines changed

.github/workflows/main.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish JupyterBook to GitHub Pages
2+
3+
on:
4+
push: # trigger build only when push to main
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Python
15+
uses: actions/setup-python@v1
16+
with:
17+
python-version: 3.7
18+
- name: Install Python dependencies
19+
run: |
20+
sudo apt-get install python3-pip
21+
pip install -r requirements.txt
22+
pip install ghp-import
23+
PATH="${PATH}:${HOME}/.local/bin"
24+
25+
- name: Build book HTML
26+
run: |
27+
jupyter-book build ./content
28+
29+
- name: Push _build/html to gh-pages
30+
run: |
31+
sudo chown -R $(whoami):$(whoami) .
32+
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
33+
git config --global user.name "$GITHUB_ACTOR"
34+
git remote set-url origin "https://$GITHUB_ACTOR:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY"
35+
36+
ghp-import ./content/_build/html -f -p -n

content/01-python/python.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# python
2+
3+
These notebooks introduce the core python language

content/_config.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Book settings
2+
# Learn more at https://jupyterbook.org/customize/config.html
3+
4+
title: REU Tutorial on Python
5+
author: <a href="https://zingale.github.io">Michael Zingale</a>
6+
#logo: logo.png
7+
copyright: "2021"
8+
9+
# Force re-execution of notebooks on each build.
10+
# See https://jupyterbook.org/content/execute.html
11+
execute:
12+
execute_notebooks: force
13+
14+
# Define the name of the latex output file for PDF builds
15+
latex:
16+
latex_documents:
17+
targetname: book.tex
18+
19+
# Information about where the book exists on the web
20+
repository:
21+
url: https://github.com/sbu-phy-ast-reu/reu-python-tutorial
22+
path_to_book: content # Optional path to your book, relative to the repository root
23+
branch: main # Which branch of the repository should be used when creating links (optional)
24+
25+
# Add GitHub buttons to your book
26+
# See https://jupyterbook.org/customize/config.html#add-a-link-to-your-repository
27+
html:
28+
use_issues_button: true
29+
use_repository_button: true
30+
extra_footer: |
31+
<p>
32+
&copy; 2021; CC-BY-NC-SA 4.0
33+
<p>
34+
35+
sphinx:
36+
config:
37+
html_show_copyright: false
38+
39+
launch_buttons:
40+
binderhub_url: "https://mybinder.org"
41+
colab_url: "https://colab.research.google.com"

content/_toc.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
format: jb-book
2+
root: Introduction
3+
chapters:
4+
- file: 01-python/python
5+
sections:
6+
- file: 01-python/projectile-motion.ipynb
7+
- file: 01-python/python-io.ipynb
8+
- file: 01-python/w1-python-datatypes.ipynb
9+
- file: 01-python/w2-python-advanced-datatypes.ipynb
10+
- file: 01-python/w2-python-control-flow.ipynb
11+
- file: 01-python/w2-python-exercises.ipynb
12+
- file: 01-python/w3-python-exceptions.ipynb
13+
- file: 01-python/w3-python-exercises.ipynb
14+
- file: 01-python/w3-python-functions.ipynb
15+
- file: 01-python/w4-python-classes.ipynb
16+
- file: 01-python/w4-python-exercises.ipynb
17+
- file: 01-python/w4-python-modules.ipynb
18+
- file: 01-python/w5-python-more-examples.ipynb

lectures/01-python/NOTE

Lines changed: 0 additions & 1 deletion
This file was deleted.

lectures/01-python/VARDEN-tests.ini

Lines changed: 0 additions & 74 deletions
This file was deleted.

lectures/01-python/myprofile.py

Lines changed: 0 additions & 109 deletions
This file was deleted.

lectures/01-python/paradigms.png

-98.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)