fixed jupyterbook error for indented pip install

This commit is contained in:
N_T 2025-02-17 13:53:49 +08:00
parent deaf4c5066
commit 3907a75d1a

@ -69,7 +69,7 @@
"source": [ "source": [
"try:\n", "try:\n",
" import google.colab # only to ensure that we are inside colab\n", " import google.colab # only to ensure that we are inside colab\n",
" !pip install diffrax jax jaxlib scipy optax dm-haiku\n", " %pip install diffrax jax jaxlib scipy optax dm-haiku\n",
"except ImportError:\n", "except ImportError:\n",
" print(\"This notebook is running locally, please make sure the packages above are installed\")\n", " print(\"This notebook is running locally, please make sure the packages above are installed\")\n",
" pass" " pass"