Skip to content

Commit 05e1c48

Browse files
committed
misc
1 parent 38bf614 commit 05e1c48

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

lectures/intro_supply_demand.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Key infrastructure concepts that we'll encounter in this lecture are
3030

3131
We will use the following imports.
3232

33-
```python
33+
```{code-cell} ipython3
3434
import numpy as np
3535
import matplotlib.pyplot as plt
3636
```
@@ -142,7 +142,7 @@ In addition
142142
143143
+++
144144
145-
```python
145+
```{code-cell} ipython3
146146
class SingleGoodMarket:
147147
148148
def __init__(self,
@@ -168,7 +168,7 @@ class SingleGoodMarket:
168168
return self.s_0 + self.s_1 * q
169169
```
170170
171-
```python
171+
```{code-cell} ipython3
172172
def plot_supply_demand(market):
173173
174174
# Unpack
@@ -210,14 +210,11 @@ def plot_supply_demand(market):
210210
plt.show()
211211
```
212212
213-
```python
213+
```{code-cell} ipython3
214214
market = SingleGoodMarket()
215215
```
216216
217-
```python
217+
```{code-cell} ipython3
218218
plot_supply_demand(market)
219219
```
220220
221-
```python
222-
223-
```

0 commit comments

Comments
 (0)