Skip to content

Commit 011d6c9

Browse files
authored
centralize admonitions (#58)
1 parent 93b329a commit 011d6c9

File tree

11 files changed

+19
-80
lines changed

11 files changed

+19
-80
lines changed

lectures/_admonition/gpu.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
```{admonition} GPU
2+
:class: warning
3+
4+
This lecture is accelerated via [hardware](status:machine-details) that has access to a GPU and JAX for GPU programming.
5+
6+
Free GPUs are available on Google Colab. To use this option, please click on the play icon top right, select Colab, and set the runtime environment to include a GPU.
7+
8+
Alternatively, if you have your own GPU, you can follow the [instructions](https://github.com/google/jax) for installing JAX with GPU support. If you would like to install JAX running on the `cpu` only you can use `pip install jax[cpu]`
9+
```

lectures/aiyagari_jax.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,7 @@ kernelspec:
1313

1414
# The Aiyagari Model
1515

16-
```{admonition} GPU
17-
:class: warning
18-
19-
This lecture is accelerated via [hardware](status:machine-details) that has access to a GPU and JAX for GPU programming.
20-
21-
Free GPUs are available on Google Colab. To use this option, please click on the play icon top right, select Colab, and set the runtime environment to include a GPU.
22-
23-
Alternatively, if you have your own GPU, you can follow the [instructions](https://github.com/google/jax) for installing JAX with GPU support. If you would like to install JAX running on the `cpu` only you can use `pip install jax[cpu]`
16+
```{include} _admonition/gpu.md
2417
```
2518

2619
## Overview

lectures/arellano.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,7 @@ kernelspec:
1313

1414
# Default Risk and Income Fluctuations
1515

16-
```{admonition} GPU
17-
:class: warning
18-
19-
This lecture is accelerated via [hardware](status:machine-details) that has access to a GPU and JAX for GPU programming.
20-
21-
Free GPUs are available on Google Colab. To use this option, please click on the play icon top right, select Colab, and set the runtime environment to include a GPU.
22-
23-
Alternatively, if you have your own GPU, you can follow the [instructions](https://github.com/google/jax) for installing JAX with GPU support. If you would like to install JAX running on the `cpu` only you can use `pip install jax[cpu]`
16+
```{include} _admonition/gpu.md
2417
```
2518

2619
In addition to what's in Anaconda, this lecture will need the following libraries:

lectures/inventory_dynamics.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,7 @@ kernelspec:
2323

2424
# Inventory Dynamics
2525

26-
```{admonition} GPU
27-
:class: warning
28-
29-
This lecture is accelerated via [hardware](status:machine-details) that has access to a GPU and JAX for GPU programming.
30-
31-
Free GPUs are available on Google Colab. To use this option, please click on the play icon top right, select Colab, and set the runtime environment to include a GPU.
32-
33-
Alternatively, if you have your own GPU, you can follow the [instructions](https://github.com/google/jax) for installing JAX with GPU support. If you would like to install JAX running on the `cpu` only you can use `pip install jax[cpu]`
26+
```{include} _admonition/gpu.md
3427
```
3528

3629
```{index} single: Markov process, inventory

lectures/jax_intro.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,7 @@ kernelspec:
1414
# An Introduction to JAX
1515

1616

17-
```{admonition} GPU
18-
:class: warning
19-
20-
This lecture is accelerated via [hardware](status:machine-details) that has access to a GPU and JAX for GPU programming.
21-
22-
Free GPUs are available on Google Colab. To use this option, please click on the play icon top right, select Colab, and set the runtime environment to include a GPU.
23-
24-
Alternatively, if you have your own GPU, you can follow the [instructions](https://github.com/google/jax) for installing JAX with GPU support. If you would like to install JAX running on the `cpu` only you can use `pip install jax[cpu]`
17+
```{include} _admonition/gpu.md
2518
```
2619

2720
This lecture provides a short introduction to [Google JAX](https://github.com/google/jax).

lectures/kesten_processes.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,7 @@ kernelspec:
2929
:depth: 2
3030
```
3131

32-
```{admonition} GPU
33-
:class: warning
34-
35-
This lecture is accelerated via [hardware](status:machine-details) that has access to a GPU and JAX for GPU programming.
36-
37-
Free GPUs are available on Google Colab. To use this option, please click on the play icon top right, select Colab, and set the runtime environment to include a GPU.
38-
39-
Alternatively, if you have your own GPU, you can follow the [instructions](https://github.com/google/jax) for installing JAX with GPU support. If you would like to install JAX running on the `cpu` only you can use `pip install jax[cpu]`
32+
```{include} _admonition/gpu.md
4033
```
4134

4235
In addition to what's in Anaconda, this lecture will need the following libraries:

lectures/newtons_method.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,7 @@ kernelspec:
1414

1515
# Newton’s Method via JAX
1616

17-
```{admonition} GPU
18-
:class: warning
19-
20-
This lecture is accelerated via [hardware](status:machine-details) that has access to a GPU and JAX for GPU programming.
21-
22-
Free GPUs are available on Google Colab. To use this option, please click on the play icon top right, select Colab, and set the runtime environment to include a GPU.
23-
24-
Alternatively, if you have your own GPU, you can follow the [instructions](https://github.com/google/jax) for installing JAX with GPU support. If you would like to install JAX running on the `cpu` only you can use `pip install jax[cpu]`
17+
```{include} _admonition/gpu.md
2518
```
2619

2720
## Overview

lectures/opt_invest.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,7 @@ kernelspec:
1414

1515
# Optimal Investment
1616

17-
```{admonition} GPU
18-
:class: warning
19-
20-
This lecture is accelerated via [hardware](status:machine-details) that has access to a GPU and JAX for GPU programming.
21-
22-
Free GPUs are available on Google Colab. To use this option, please click on the play icon top right, select Colab, and set the runtime environment to include a GPU.
23-
24-
Alternatively, if you have your own GPU, you can follow the [instructions](https://github.com/google/jax) for installing JAX with GPU support. If you would like to install JAX running on the `cpu` only you can use `pip install jax[cpu]`
17+
```{include} _admonition/gpu.md
2518
```
2619

2720
We require the following library to be installed.

lectures/opt_savings.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,7 @@ kernelspec:
1313

1414
# Optimal Savings
1515

16-
```{admonition} GPU
17-
:class: warning
18-
19-
This lecture is accelerated via [hardware](status:machine-details) that has access to a GPU and JAX for GPU programming.
20-
21-
Free GPUs are available on Google Colab. To use this option, please click on the play icon top right, select Colab, and set the runtime environment to include a GPU.
22-
23-
Alternatively, if you have your own GPU, you can follow the [instructions](https://github.com/google/jax) for installing JAX with GPU support. If you would like to install JAX running on the `cpu` only you can use `pip install jax[cpu]`
16+
```{include} _admonition/gpu.md
2417
```
2518

2619
In addition to what’s in Anaconda, this lecture will need the following libraries:

lectures/short_path.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,7 @@ kernelspec:
1515

1616
# Shortest Paths
1717

18-
```{admonition} GPU
19-
:class: warning
20-
21-
This lecture is accelerated via [hardware](status:machine-details) that has access to a GPU and JAX for GPU programming.
22-
23-
Free GPUs are available on Google Colab. To use this option, please click on the play icon top right, select Colab, and set the runtime environment to include a GPU.
24-
25-
Alternatively, if you have your own GPU, you can follow the [instructions](https://github.com/google/jax) for installing JAX with GPU support. If you would like to install JAX running on the `cpu` only you can use `pip install jax[cpu]`
18+
```{include} _admonition/gpu.md
2619
```
2720

2821
## Overview

0 commit comments

Comments
 (0)