Skip to content

Commit

Permalink
Changed !pip to %pip for all notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
ahlag committed Jan 14, 2023
1 parent aeaf282 commit 81a63d1
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install \"git+https://github.com/feathr-ai/feathr.git#subdirectory=feathr_project&egg=feathr[notebook]\""
"%pip install \"git+https://github.com/feathr-ai/feathr.git#subdirectory=feathr_project&egg=feathr[notebook]\""
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"outputs": [],
"source": [
"# Install feathr from the latest codes in the repo. You may use `pip install feathr[notebook]` as well.\n",
"!pip install \"git+https://github.com/feathr-ai/feathr.git#subdirectory=feathr_project&egg=feathr[notebook]\""
"%pip install \"git+https://github.com/feathr-ai/feathr.git#subdirectory=feathr_project&egg=feathr[notebook]\""
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install -U transformers torch --extra-index-url https://download.pytorch.org/whl/cu116"
"%pip install -U transformers torch --extra-index-url https://download.pytorch.org/whl/cu116"
]
},
{
Expand Down Expand Up @@ -1222,7 +1222,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "feathr",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -1236,11 +1236,11 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.15"
"version": "3.10.9 (main, Dec 15 2022, 18:18:30) [Clang 14.0.0 (clang-1400.0.29.202)]"
},
"vscode": {
"interpreter": {
"hash": "e34a1a57d2e174682770a82d94a178aa36d3ccfaa21227c5d2308e319b7ae532"
"hash": "aee8b7b246df8f9039afb4144a1f6fd8d2ca17a180786b69acc140d282b71a49"
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions docs/samples/feature_embedding.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"outputs": [],
"source": [
"# Install feathr from the latest codes in the repo. You may use `pip install feathr[notebook]` as well.\n",
"# !pip install \"git+https://github.com/feathr-ai/feathr.git#subdirectory=feathr_project&egg=feathr[notebook]\""
"# %pip install \"git+https://github.com/feathr-ai/feathr.git#subdirectory=feathr_project&egg=feathr[notebook]\""
]
},
{
Expand Down Expand Up @@ -822,7 +822,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.5 (default, Jan 27 2021, 15:41:15) \n[GCC 9.3.0]"
"version": "3.9.6 (default, Oct 18 2022, 12:41:40) \n[Clang 14.0.0 (clang-1400.0.29.202)]"
},
"vscode": {
"interpreter": {
Expand Down
8 changes: 4 additions & 4 deletions docs/samples/fraud_detection_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"outputs": [],
"source": [
"# Install feathr from the latest codes in the repo. You may use `pip install feathr[notebook]` as well.\n",
"# !pip install \"git+https://github.com/feathr-ai/feathr.git#subdirectory=feathr_project&egg=feathr[notebook]\" "
"# %pip install \"git+https://github.com/feathr-ai/feathr.git#subdirectory=feathr_project&egg=feathr[notebook]\" "
]
},
{
Expand Down Expand Up @@ -1265,7 +1265,7 @@
"widgets": {}
},
"kernelspec": {
"display_name": "feathr",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -1279,11 +1279,11 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.0 (default, Nov 6 2019, 21:49:08) \n[GCC 7.3.0]"
"version": "3.10.9 (main, Dec 15 2022, 18:18:30) [Clang 14.0.0 (clang-1400.0.29.202)]"
},
"vscode": {
"interpreter": {
"hash": "ddb0e38f168d5afaa0b8ab4851ddd8c14364f1d087c15de6ff2ee5a559aec1f2"
"hash": "aee8b7b246df8f9039afb4144a1f6fd8d2ca17a180786b69acc140d282b71a49"
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions docs/samples/product_recommendation_demo_advanced.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"outputs": [],
"source": [
"# Uncomment and run this cell to install feathr from the latest codes in the repo. You may use `pip install feathr[notebook]` as well.\n",
"# !pip install \"git+https://github.com/feathr-ai/feathr.git#subdirectory=feathr_project&egg=feathr[notebook]\" "
"# %pip install \"git+https://github.com/feathr-ai/feathr.git#subdirectory=feathr_project&egg=feathr[notebook]\" "
]
},
{
Expand All @@ -119,7 +119,7 @@
"outputs": [],
"source": [
"# We also install InterpretML package for model explainability\n",
"!pip install interpret"
"%pip install interpret"
]
},
{
Expand Down

0 comments on commit 81a63d1

Please sign in to comment.