Skip to content

Commit

Permalink
Revert \!pip -> %pip change, as it is not backward compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
Zach Etienne committed Sep 8, 2022
1 parent 5c87510 commit 32c9058
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Tutorial-ADM_Initial_Data-ScalarField.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@
},
"outputs": [],
"source": [
"%pip install scipy >/dev/null"
"!pip install scipy >/dev/null"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion Tutorial-Finite_Difference_Derivatives-FDtable_soln.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
],
"source": [
"print(\"Installing astropy, needed for creating the output table. Please wait a few seconds...\")\n",
"%pip install -U pip astropy > /dev/null\n",
"!pip install -U pip astropy > /dev/null\n",
"print(\"astropy installed.\")\n",
"# Step 0: Import needed modules\n",
"import numpy as np\n",
Expand Down
4 changes: 2 additions & 2 deletions Tutorial-LaTeX_Interface_Example-BSSN_Cartesian.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@
}
],
"source": [
"%pip install nrpylatex==1.0.8 > /dev/null\n",
"%pip freeze | grep nrpylatex\n",
"!pip install nrpylatex==1.0.8 > /dev/null\n",
"!pip freeze | grep nrpylatex\n",
"%load_ext nrpylatex.extension"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install scipy > /dev/null"
"!pip install scipy > /dev/null"
]
},
{
Expand Down Expand Up @@ -1534,7 +1534,7 @@
],
"source": [
"print(\"Ignore any warnings or errors from the following command:\")\n",
"%pip install scipy > /dev/null\n",
"!pip install scipy > /dev/null\n",
"\n",
"check_for_ffmpeg = !which ffmpeg >/dev/null && echo $?\n",
"if check_for_ffmpeg != ['0']:\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@
},
"outputs": [],
"source": [
"%pip install scipy numpy > /dev/null"
"!pip install scipy numpy > /dev/null"
]
},
{
Expand Down Expand Up @@ -1352,7 +1352,7 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install scipy > /dev/null\n",
"!pip install scipy > /dev/null\n",
"\n",
"check_for_ffmpeg = !which ffmpeg >/dev/null && echo $?\n",
"if check_for_ffmpeg != ['0']:\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@
],
"source": [
"# First install scipy if it's not yet installed. This will have no effect if it's already installed.\n",
"%pip install scipy"
"!pip install scipy"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
},
"outputs": [],
"source": [
"%pip install scipy > /dev/null"
"!pip install scipy > /dev/null"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
},
"outputs": [],
"source": [
"%pip install scipy > /dev/null"
"!pip install scipy > /dev/null"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@
},
"outputs": [],
"source": [
"%pip install scipy > /dev/null\n",
"!pip install scipy > /dev/null\n",
"\n",
"check_for_ffmpeg = !which ffmpeg >/dev/null && echo $?\n",
"if check_for_ffmpeg != ['0']:\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1325,7 +1325,7 @@
},
"outputs": [],
"source": [
"%pip install scipy > /dev/null\n",
"!pip install scipy > /dev/null\n",
"\n",
"check_for_ffmpeg = !which ffmpeg >/dev/null && echo $?\n",
"if check_for_ffmpeg != ['0']:\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1324,7 +1324,7 @@
},
"outputs": [],
"source": [
"%pip install scipy > /dev/null\n",
"!pip install scipy > /dev/null\n",
"\n",
"check_for_ffmpeg = !which ffmpeg >/dev/null && echo $?\n",
"if check_for_ffmpeg != ['0']:\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@
},
"outputs": [],
"source": [
"%pip install scipy > /dev/null\n",
"!pip install scipy > /dev/null\n",
"\n",
"check_for_ffmpeg = !which ffmpeg >/dev/null && echo $?\n",
"if check_for_ffmpeg != ['0']:\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1435,7 +1435,7 @@
}
],
"source": [
"%pip install scipy > /dev/null\n",
"!pip install scipy > /dev/null\n",
"\n",
"check_for_ffmpeg = !which ffmpeg >/dev/null && echo $?\n",
"if check_for_ffmpeg != ['0']:\n",
Expand Down
4 changes: 2 additions & 2 deletions Tutorial-SymPy_LaTeX_Interface.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@
],
"source": [
"import sympy as sp\n",
"%pip install nrpylatex~=1.2 > /dev/null\n",
"%pip freeze | grep nrpylatex\n",
"!pip install nrpylatex~=1.2 > /dev/null\n",
"!pip freeze | grep nrpylatex\n",
"from nrpylatex import *"
]
},
Expand Down

0 comments on commit 32c9058

Please sign in to comment.