Skip to content

Commit 72925c4

Browse files
authored
MAINT: Standardise plot size and remove custom matplotlib requests (#52)
1 parent f559857 commit 72925c4

File tree

5 files changed

+3
-9
lines changed

5 files changed

+3
-9
lines changed

lectures/_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ latex:
3636
sphinx:
3737
extra_extensions: [sphinx_multitoc_numbering, sphinxext.rediraffe, sphinxcontrib.youtube, sphinx.ext.todo, sphinx_exercise, sphinx_togglebutton, sphinx_tojupyter]
3838
config:
39+
# myst-nb config
40+
nb_render_image_options:
41+
width: 80%
3942
nb_mime_priority_overrides: [
4043
['html', 'application/vnd.jupyter.widget-view+json', 10],
4144
['html', 'application/javascript', 20],

lectures/inventory_dynamics.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ This lecture explores JAX implementations of the exercises in the lecture on [in
4747
We will use the following imports:
4848

4949
```{code-cell} ipython3
50-
%matplotlib inline
5150
import matplotlib.pyplot as plt
52-
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
5351
import numpy as np
5452
import jax
5553
import jax.numpy as jnp

lectures/kesten_processes.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ This lecture focuses on implementing the same computations in JAX.
6464
Let's start with some imports:
6565

6666
```{code-cell} ipython3
67-
%matplotlib inline
6867
import matplotlib.pyplot as plt
69-
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
7068
import quantecon as qe
7169
import jax
7270
import jax.numpy as jnp

lectures/troubleshooting.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ If your local environment is still not working you can do two things.
5454
First, you can use a remote machine instead, by clicking on the Launch Notebook icon available for each lecture
5555

5656
```{image} _static/lecture_specific/troubleshooting/launch.png
57-
5857
```
5958

6059
Second, you can report an issue, so we can try to fix your local set up.

lectures/wealth_dynamics.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,17 @@ We will use the following imports.
3232

3333
```{code-cell} ipython3
3434
import matplotlib.pyplot as plt
35-
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
3635
import jax
3736
import jax.numpy as jnp
3837
from collections import namedtuple
39-
%matplotlib inline
4038
```
4139

42-
4340
Let's check the hardware we are running on:
4441

4542
```{code-cell} ipython3
4643
!nvidia-smi
4744
```
4845

49-
5046
## Lorenz Curves and the Gini Coefficient
5147

5248
Before we investigate wealth dynamics, we briefly review some measures of

0 commit comments

Comments
 (0)