Skip to content

Commit

Permalink
Updates to links
Browse files Browse the repository at this point in the history
  • Loading branch information
dolsysmith committed Mar 8, 2024
1 parent d7e4078 commit 15f61b3
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 30 deletions.
4 changes: 2 additions & 2 deletions course_utils/postprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
logger.setLevel(logging.INFO)

config = configparser.ConfigParser()
config.read('config.ini')

config.read('course_utils/config.ini')
print(list(config.keys()))
# Pattern that contains Sphinx directives in the notebook JSON
DIRECTIVE_PATTERN = re.compile('````{(\w+)}\s?(.*)\n')
DIRECTIVE_BACKTICKS = 4
Expand Down
14 changes: 7 additions & 7 deletions textbook/homework.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Homework for Python Camp

In addition to the in-class team activities, Python Camp asks you to work through several self-guided lessons for homework, including a handful of exercises that you will submit using the GitHub Classroom autograder to receive a score. The purpose of the homework is to introduce concepts, syntax, and techniques that you will use during the team activities, so it is important that everyone on the team complete the homework lessons to the best of their ability on the days they are assigned.
In addition to the in-class team activities, Python Camp asks you to work through several self-guided lessons for homework, including a final exercise that you will submit using the GitHub Classroom autograder to receive a score. The purpose of the homework is to introduce concepts, syntax, and techniques that you will use during the team activities, so it is important that everyone on the team complete the homework lessons to the best of their ability on the days they are assigned.

The homeworks are designed to be completed individually, but you are also free to collaborate on them (including those you submit for a score). If you collaborate on the autograded homework, be sure to submit your own notebook for autograding if you want to receive the Python Camp certificate of completion.

Expand All @@ -9,9 +9,9 @@ The homeworks are designed to be completed individually, but you are also free t
Each day's homework lesson consists of a Python motebook with documentation, examples of code, and exercises that ask you to write code yourself. Hints and/or hidden solutions are provided for the latter, but you are strongly encouraged to try each exercise on your own before looking at the solution.
- Just as we did for the in-class activities, you should open each homework notebook in JupyterHub (using the rocket icon at the top of the screen) and execute the code cells in order as you read through the notebook. Any changes you make to the notebook in JupyterHub will be saved to your JupyterHub account.
- **Please try your best to complete these notebooks on the day they are assigned**; we'll build on the concepts and practices they introduce in our team activities on the following day.
2. You must submit the **final homework notebook** for grading in order to receive the Python Camp Certificate of Completion. The grading is done automatically on GitHub Classroom, and you will have an opportunity to ensure that your work is correct before submitting. Please see the instructions for submitting the graded notebook below.
- You must submit the [final homework notebook](https://gwu-libraries.github.io/python-camp/notebooks/homework/HW_Final_GR.html) for grading in order to receive the Python Camp Certificate of Completion. The grading is done automatically on GitHub Classroom, and you will have an opportunity to ensure that your work is correct before submitting. Please see the instructions for submitting the graded notebook below.

## Submitting Graded Notebooks
## Submitting the Final Notebook

We're using GitHub Classroom to track submission of this notebook. Please read the following instructions carefully, and let us know if you have any questions.

Expand All @@ -26,10 +26,10 @@ We're using GitHub Classroom to track submission of this notebook. Please read t
:align: center
````
5. Depending on your computer setup, the downloaded notebook may be located in your `Downloads` folder, on your desktop, or elsewhere. It should have the name `HW_Final_GR.ipynb`. If you have downloaded this file before, the latest version may have a different name. In this case, you should delete the old file and **rename the newly downloaded file** so that it has the same name as the original.
5. In the Python Camp roster, copy the link in the column associated with this homework assignment and paste it into a new tab on your web browser.
6. If you don't have a GitHub account, you'll need to create one. (GitHub is a widely used platform for sharing and collaborating on code.) You don't need to use the same email address on your GitHub account as you are using for Python Camp, so if you already have a GitHub account under a different email address, feel free to use that one.
7. Once you've logged into GitHub, and if this is your first time submitting an assignment, you'll be asked to select your email address from the GitHub Classroom roster. **Please make sure you select the correct email address**. This will link your GitHub account to that email address in our GitHub Classroom instance.
8. At this point, you should see a screen asking you to `Accept the assignment` in GitHub Classroom. Accepting the assignment will create a new GitHub repository under your GitHub account; that repository is where you'll submit your completed notebook for grading.
6. From the list of [Python Camp links](https://docs.google.com/document/d/1KDtMCu0oG60kAgf9Q5EO7CDeXMPpwE4CB2ohbI2aGqI/edit?usp=sharing), follow the link to the Github Assignment under the section `Python Camp Final Homework.`
7. If you don't have a GitHub account, you'll need to create one. (GitHub is a widely used platform for sharing and collaborating on code.) You don't need to use the same email address on your GitHub account as you are using for Python Camp, so if you already have a GitHub account under a different email address, feel free to use that one.
8. Once you've logged into GitHub, and if this is your first time submitting an assignment, you'll be asked to select your email address from the GitHub Classroom roster. **Please make sure you select the correct email address**. This will link your GitHub account to that email address in our GitHub Classroom instance.
9. At this point, you should see a screen asking you to `Accept the assignment` in GitHub Classroom. Accepting the assignment will create a new GitHub repository under your GitHub account; that repository is where you'll submit your completed notebook for grading.
````{image} img/homework/accept-assignment.png
:alt: Screen showing a GitHub message with the assignment name and a green button to accept the assignment.
Expand Down
4 changes: 2 additions & 2 deletions textbook/notebooks/lessons/1_2_from_data_to_code.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
"\n",
"Over the next few days, we'll be working together on a dataset containing information about textbooks assigned by courses at GW for the Fall 2023 semester. \n",
"\n",
"Textbooks are linked from GW's [Schedule of Classes](https://my.gwu.edu/mod/pws/subjects.cfm?campId=1&termId=202303). (Note that we're using data for courses taught on the Foggy Bottom campus only.)\n",
"Textbooks are linked from GW's [Schedule of Classes](https://my.gwu.edu/mod/pws/subjects.cfm?campId=1&termId=202401). (Note that we're using data for courses taught on the Foggy Bottom campus only.)\n",
"\n",
"The `Find Books` link under each course entry (see image below) leads to a page on the website of the GW Campus Store which contains a listing of textbooks for the course, along with the price of each book (through the GW Campus Store).\n",
"\n",
Expand All @@ -184,7 +184,7 @@
"````{admonition} Try it out!\n",
":class: try-it-out\n",
"\n",
"1. Take a moment to look at the [Schedule of Classes](https://my.gwu.edu/mod/pws/subjects.cfm?campId=1&termId=202303) and the linked textbook data.\n",
"1. Take a moment to look at the [Schedule of Classes](https://my.gwu.edu/mod/pws/subjects.cfm?campId=1&termId=202401) and the linked textbook data.\n",
"\n",
"2. As a team, discuss possible uses for data about courses and textbooks. Who are the potential users, and what purposes might they have for these data? Make notes on your answers. (We call these scenarios _user stories_.)\n",
"\n",
Expand Down
2 changes: 2 additions & 0 deletions textbook/notebooks/lessons/2_1_describing_the_team.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@
"metadata": {},
"source": [
"````{admonition} Try it out!\n",
":class: try-it-out\n",
"\n",
"Try updating a few of the keys in a few of the dictionaries in your team list. The diagram below might help you conceptualize the syntax you need.\n",
"\n",
Expand Down Expand Up @@ -595,6 +596,7 @@
"metadata": {},
"source": [
"````{admonition} Try it out!\n",
":class: try-it-out\n",
"\n",
"To confirm, look at the {term}`JSON` file you just created in your browser. \n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,25 @@ <h2>Compose your code here</h2>

<div class="parsons-ps">
<div class="parsons-block" id="pb-1" draggable="true">
price_num = float(price_num) * 1.1
for price in book_prices:
</div>
</div>

<div class="parsons-ps">
<div class="parsons-block" id="pb-2" draggable="true">
print(price_num)
price_num = price[1:]
</div>
</div>

<div class="parsons-ps">
<div class="parsons-block" id="pb-3" draggable="true">
for price in book_prices:
price_num = float(price_num) * 1.1
</div>
</div>

<div class="parsons-ps">
<div class="parsons-block" id="pb-4" draggable="true">
price_num = price[1:]
print(price_num)
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,19 @@ <h2>Compose your code here</h2>

<div class="parsons-ps">
<div class="parsons-block" id="pb-1" draggable="true">
depts = []
for course in courses:
</div>
</div>

<div class="parsons-ps">
<div class="parsons-block" id="pb-2" draggable="true">
for course in courses:
depts.append(course_info[0])
</div>
</div>

<div class="parsons-ps">
<div class="parsons-block" id="pb-3" draggable="true">
depts.append(course_info[0])
depts = []
</div>
</div>

Expand Down
18 changes: 9 additions & 9 deletions textbook/parsons-assets/parsons-problems/html/homework-2-GR.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,25 @@ <h2>Compose your code here</h2>

<div class="parsons-ps">
<div class="parsons-block" id="pb-1" draggable="true">
course_dict['dept_code'] = course_info[0]
course_dict['course_num'] = course_info[1]
</div>
</div>

<div class="parsons-ps">
<div class="parsons-block" id="pb-2" draggable="true">
course_dict['course_num'] = course_info[1]
course_dict = {}
</div>
</div>

<div class="parsons-ps">
<div class="parsons-block" id="pb-3" draggable="true">
courses_db.append(course_dict)
course_info = course.split()
</div>
</div>

<div class="parsons-ps">
<div class="parsons-block" id="pb-4" draggable="true">
for course in courses:
courses_db = []
</div>
</div>

Expand All @@ -71,31 +71,31 @@ <h2>Compose your code here</h2>

<div class="parsons-ps">
<div class="parsons-block" id="pb-6" draggable="true">
course_dict = {}
course_dict['instructor'] = course_info[3]
</div>
</div>

<div class="parsons-ps">
<div class="parsons-block" id="pb-7" draggable="true">
print(courses_db)
course_dict['dept_code'] = course_info[0]
</div>
</div>

<div class="parsons-ps">
<div class="parsons-block" id="pb-8" draggable="true">
courses_db = []
courses_db.append(course_dict)
</div>
</div>

<div class="parsons-ps">
<div class="parsons-block" id="pb-9" draggable="true">
course_dict['instructor'] = course_info[3]
print(courses_db)
</div>
</div>

<div class="parsons-ps">
<div class="parsons-block" id="pb-10" draggable="true">
course_info = course.split()
for course in courses:
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@ <h2>Compose your code here</h2>

<div class="parsons-ps">
<div class="parsons-block" id="pb-1" draggable="true">
print(team)
for person in team:
</div>
</div>

<div class="parsons-ps">
<div class="parsons-block" id="pb-2" draggable="true">
for person in team:
person['programming_languages'] = ['Python']
</div>
</div>

<div class="parsons-ps">
<div class="parsons-block" id="pb-3" draggable="true">
person['programming_languages'] = ['Python']
print(team)
</div>
</div>

Expand Down

0 comments on commit 15f61b3

Please sign in to comment.