Skip to content

Commit

Permalink
downgraded mkdocs-jupyter to preserve math rendering. headers day2
Browse files Browse the repository at this point in the history
  • Loading branch information
microlei committed Sep 11, 2024
1 parent 902eadc commit d5d89d3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions docs/resources/Workshops/Python/Python-Day2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Thinking algorithmically\n",
"## Thinking algorithmically\n",
"\n",
"Before we get started with learning about what a function in python is, how to define them, and how to control them, let's do some non-coding exercises to get in the mindset of thinking algorithmically. One of the major hurdles to writing your own functions or computer programs is changing the way you think to match the way a computer or coding language evaluates words. Much of the difficulty is ameliorated if we practice breaking down our problems into discrete chunks. Then, taking each chunk and putting it together.\n",
"\n",
Expand Down Expand Up @@ -97,7 +97,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Using boolean expressions and logical operators\n",
"### Using boolean expressions and logical operators\n",
"\n",
"A relational operator is some operator that evaluates to a truth value. For example, checking of two things are equal or identical, or checking if some item is contained in a list/grouping. These conditional expressions can then be combined with logical operators such as `and`, `or`, and `not`. They mostly work like you'd expect from natural language. However, just like with arithmetic, there's an order of operations. In python, relational operators are evaluated first, then `not`, then `and`, and finally `or`.\n",
"\n",
Expand Down Expand Up @@ -134,7 +134,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Navigating a maze\n",
"### Navigating a maze\n",
"\n",
"Imagine you are programming a robot to navigate a maze. You know that this maze can be navigated by following the \"right hand rule\", which is to always keep your right hand on the wall. The robot can move or look in four directions: up, down, left, and right. How would you give the robot instructions to navigate the maze?"
]
Expand Down Expand Up @@ -168,7 +168,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Basic function syntax & variable scope\n",
"## Basic function syntax & variable scope\n",
"\n",
"Python has a variety of [built-in functions](https://docs.python.org/3/library/functions.html), but for everything else you might want to do, you will need to write your own. \n",
"\n",
Expand Down Expand Up @@ -377,14 +377,14 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Control flow"
"## Control flow"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## If/else statements"
"### If/else statements"
]
},
{
Expand Down Expand Up @@ -686,7 +686,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## For loops"
"### For loops"
]
},
{
Expand Down Expand Up @@ -980,7 +980,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## While loops\n",
"### While loops\n",
"\n",
"A while loop is kind of like a generalized form of a for loop. It's used to repeat code until a condition is met. Think of it as a continuous if statement where \"if condition is true, do this code and then check the condition again\". While loops are helpful for when you don't know exactly how many iterations you will need to go through, but do have a definite end condition for the loop. Here's the syntax of a while loop:\n",
"\n",
Expand Down Expand Up @@ -1222,7 +1222,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Controlling behavior with break and continue"
"### Controlling behavior with break and continue"
]
},
{
Expand Down Expand Up @@ -2127,7 +2127,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# General tips for writing functions"
"## General tips for writing functions"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mkdocs-material==9.4.*
mkdocs-table-reader-plugin==2.0.*
mkdocs-jupyter==0.24.*
mkdocs-jupyter==0.24.7

0 comments on commit d5d89d3

Please sign in to comment.