File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,6 +16,17 @@ kernelspec:
1616``` {include} _admonition/gpu.md
1717```
1818
19+ In addition to what's included in base Anaconda, we need to install the following packages
20+
21+ ``` {code-cell} ipython3
22+ :tags: [hide-output]
23+
24+ !pip install kaleido
25+ !conda install -y -c plotly plotly plotly-orca retrying
26+ ```
27+
28+ We also need to install JAX to run this lecture
29+
1930``` {code-cell} ipython3
2031:tags: [skip-execution]
2132
@@ -28,15 +39,6 @@ import jax
2839print(f"JAX backend: {jax.devices()[0].platform}")
2940```
3041
31- In addition to what's included in base Anaconda, we need to install the following packages
32-
33- ``` {code-cell} ipython3
34- :tags: [hide-output]
35-
36- !pip install kaleido
37- !conda install -y -c plotly plotly plotly-orca retrying
38- ```
39-
4042``` {note}
4143If you are running this on Google Colab the above cell will
4244present an error. This is because Google Colab doesn't use Anaconda to manage
Original file line number Diff line number Diff line change @@ -33,16 +33,16 @@ and the following package versions
3333!conda list
3434```
3535
36+ This lecture series has access to the following GPU
37+
38+ ``` {code-cell} ipython
39+ !nvidia-smi
40+ ```
41+
3642You can check the backend used by JAX using:
3743
3844``` {code-cell} ipython3
3945import jax
4046# Check if JAX is using GPU
4147print(f"JAX backend: {jax.devices()[0].platform}")
42- ```
43-
44- and this lecture series also has access to the following GPU
45-
46- ``` {code-cell} ipython
47- !nvidia-smi
4848```
You can’t perform that action at this time.
0 commit comments