Skip to content

Commit 59e6903

Browse files
committed
updates
1 parent 9d3df75 commit 59e6903

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

lectures/back_prop.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ In addition to what's included in base Anaconda, we need to install the followin
3333
```{code-cell} ipython3
3434
:tags: [hide-output]
3535
36-
import os
37-
os.system("pip install kaleido");
38-
os.system("conda install -y -c plotly plotly plotly-orca retrying");
36+
import subprocess
37+
print(subprocess.run(["pip", "install", "kaleido"],
38+
capture_output=True, text=True).stdout)
39+
print(subprocess.run(["conda", "install", "-y", "-c", "plotly", "plotly", "plotly-orca", "retrying"], capture_output=True, text=True).stdout)
3940
```
4041

4142
```{note}

lectures/status.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ print(f"JAX backend: {jax.devices()[0].platform}")
4747
and this lecture series also has access to the following GPU
4848

4949
```{code-cell} ipython3
50-
import os
51-
os.system("nvidia-smi");
50+
import subprocess
51+
print(subprocess.run(['nvidia-smi'], capture_output=True, text=True).stdout)
5252
```

0 commit comments

Comments
 (0)