From aeaf282d3ed1b70a0413e1619a29b8608d5c1ff1 Mon Sep 17 00:00:00 2001 From: changyonglik Date: Fri, 13 Jan 2023 10:28:22 +0800 Subject: [PATCH 1/2] Changed !pip to %pip --- docs/samples/nyc_taxi_demo.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/samples/nyc_taxi_demo.ipynb b/docs/samples/nyc_taxi_demo.ipynb index bda920e22..832b50a31 100644 --- a/docs/samples/nyc_taxi_demo.ipynb +++ b/docs/samples/nyc_taxi_demo.ipynb @@ -73,10 +73,10 @@ "outputs": [], "source": [ "# To install feathr from the latest codes in the repo:\n", - "# !pip install \"git+https://github.com/feathr-ai/feathr.git#subdirectory=feathr_project&egg=feathr[notebook]\" \n", + "# %pip install \"git+https://github.com/feathr-ai/feathr.git#subdirectory=feathr_project&egg=feathr[notebook]\" \n", "\n", "# To install the latest release:\n", - "# !pip install feathr[notebook] " + "# %pip install feathr[notebook] " ] }, { From 81a63d1fdbe26ac759984892c9b125595ebf63ab Mon Sep 17 00:00:00 2001 From: changyonglik Date: Sat, 14 Jan 2023 23:04:57 +0800 Subject: [PATCH 2/2] Changed !pip to %pip for all notebooks --- .../azure_synapse/product_recommendation_demo.ipynb | 2 +- .../databricks/databricks_quickstart_nyc_taxi_demo.ipynb | 2 +- ..._intelligence_with_azure_cognitive_search_skills.ipynb | 8 ++++---- docs/samples/feature_embedding.ipynb | 4 ++-- docs/samples/fraud_detection_demo.ipynb | 8 ++++---- docs/samples/product_recommendation_demo_advanced.ipynb | 4 ++-- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/samples/azure_synapse/product_recommendation_demo.ipynb b/docs/samples/azure_synapse/product_recommendation_demo.ipynb index 60376830b..dc1f30eeb 100644 --- a/docs/samples/azure_synapse/product_recommendation_demo.ipynb +++ b/docs/samples/azure_synapse/product_recommendation_demo.ipynb @@ -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]\"" ] }, { diff --git a/docs/samples/databricks/databricks_quickstart_nyc_taxi_demo.ipynb b/docs/samples/databricks/databricks_quickstart_nyc_taxi_demo.ipynb index 6f5f9bfff..f71c30b3a 100644 --- a/docs/samples/databricks/databricks_quickstart_nyc_taxi_demo.ipynb +++ b/docs/samples/databricks/databricks_quickstart_nyc_taxi_demo.ipynb @@ -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]\"" ] }, { diff --git a/docs/samples/document_intelligence_with_azure_cognitive_search_skills.ipynb b/docs/samples/document_intelligence_with_azure_cognitive_search_skills.ipynb index 55d55d97c..c078960a6 100644 --- a/docs/samples/document_intelligence_with_azure_cognitive_search_skills.ipynb +++ b/docs/samples/document_intelligence_with_azure_cognitive_search_skills.ipynb @@ -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" ] }, { @@ -1222,7 +1222,7 @@ ], "metadata": { "kernelspec": { - "display_name": "feathr", + "display_name": "Python 3", "language": "python", "name": "python3" }, @@ -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" } } }, diff --git a/docs/samples/feature_embedding.ipynb b/docs/samples/feature_embedding.ipynb index af34475ec..1b8f831b0 100755 --- a/docs/samples/feature_embedding.ipynb +++ b/docs/samples/feature_embedding.ipynb @@ -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]\"" ] }, { @@ -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": { diff --git a/docs/samples/fraud_detection_demo.ipynb b/docs/samples/fraud_detection_demo.ipynb index 390e90a8a..d8ac79288 100644 --- a/docs/samples/fraud_detection_demo.ipynb +++ b/docs/samples/fraud_detection_demo.ipynb @@ -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]\" " ] }, { @@ -1265,7 +1265,7 @@ "widgets": {} }, "kernelspec": { - "display_name": "feathr", + "display_name": "Python 3", "language": "python", "name": "python3" }, @@ -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" } } }, diff --git a/docs/samples/product_recommendation_demo_advanced.ipynb b/docs/samples/product_recommendation_demo_advanced.ipynb index 8afffffc8..bb753acdb 100644 --- a/docs/samples/product_recommendation_demo_advanced.ipynb +++ b/docs/samples/product_recommendation_demo_advanced.ipynb @@ -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]\" " ] }, { @@ -119,7 +119,7 @@ "outputs": [], "source": [ "# We also install InterpretML package for model explainability\n", - "!pip install interpret" + "%pip install interpret" ] }, {