Skip to content

Commit

Permalink
replace pip install -U matplotlib sympy jupyter scipy nrpylatex insta…
Browse files Browse the repository at this point in the history
…ll [blah] with %pip install [blah], per iPython's suggestion.
  • Loading branch information
Zach Etienne committed Sep 8, 2022
1 parent 3bf3e8e commit 5c87510
Show file tree
Hide file tree
Showing 14 changed files with 154 additions and 152 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
Loading

0 comments on commit 5c87510

Please sign in to comment.