Skip to content

Commit

Permalink
[FSTORE-1646] Tutorials Update (#293)
Browse files Browse the repository at this point in the history
* Fixes for 4.x hopsworks[python]
  • Loading branch information
Maxxx-zh authored Dec 17, 2024
1 parent 64d29dd commit 80b9229
Show file tree
Hide file tree
Showing 37 changed files with 271 additions and 678 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
}
],
"source": [
"!pip install -U hopsworks --quiet\n",
"!pip install -U 'hopsworks[python]' --quiet\n",
"!pip install geopy folium streamlit-folium --q"
]
},
Expand Down Expand Up @@ -1145,7 +1145,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.18"
"version": "3.11.11"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -1249,7 +1249,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.11"
"version": "3.11.11"
},
"vscode": {
"interpreter": {
Expand Down
12 changes: 11 additions & 1 deletion advanced_tutorials/aml/1_aml_feature_pipeline.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@
"First of all we will load the data and do some feature engineering on it."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "49d24791-2df7-4b2e-993c-ca02c642fb6f",
"metadata": {},
"outputs": [],
"source": [
"!pip install -U 'hopsworks[python]' --quiet"
]
},
{
"cell_type": "markdown",
"id": "6a080c46",
Expand Down Expand Up @@ -693,7 +703,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.13"
"version": "3.11.11"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions advanced_tutorials/bitcoin/1_bitcoin_feature_backfill.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install -U hopsworks --quiet\n",
"!pip install -U 'hopsworks[python]' --quiet\n",
"\n",
"!pip install -U unicorn-binance-rest-api --quiet\n",
"!pip install -U python-dotenv --quiet\n",
Expand Down Expand Up @@ -414,7 +414,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
"version": "3.11.11"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions advanced_tutorials/bitcoin/2_bitcoin_feature_pipeline.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install -U hopsworks --quiet\n",
"!pip install -U 'hopsworks[python]' --quiet\n",
"\n",
"!pip install -U unicorn-binance-rest-api --quiet\n",
"!pip install -U python-dotenv --quiet\n",
Expand Down Expand Up @@ -536,7 +536,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
"version": "3.11.11"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions advanced_tutorials/bitcoin/3_bitcoin_training_pipeline.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install -U hopsworks --quiet"
"!pip install -U 'hopsworks[python]' --quiet"
]
},
{
Expand Down Expand Up @@ -996,7 +996,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.5"
"version": "3.11.11"
},
"vscode": {
"interpreter": {
Expand Down
12 changes: 11 additions & 1 deletion advanced_tutorials/bitcoin/4_bitcoin_batch_inference.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@
"3. Batch prediction using deployment."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "bc0e9321-c79f-4ddf-b8f8-783652e2d7a0",
"metadata": {},
"outputs": [],
"source": [
"!pip install -U 'hopsworks[python]' --quiet"
]
},
{
"cell_type": "markdown",
"id": "8855ee1a",
Expand Down Expand Up @@ -314,7 +324,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.12"
"version": "3.11.11"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions advanced_tutorials/citibike/1_citibike_feature_backfill.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install -U hopsworks --quiet\n",
"!pip install -U 'hopsworks[python]' --quiet\n",
"!pip install python-dotenv"
]
},
Expand Down Expand Up @@ -620,7 +620,7 @@
"provenance": []
},
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -634,7 +634,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.11"
"version": "3.11.11"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install -U hopsworks --quiet"
"!pip install -U 'hopsworks[python]' --quiet"
]
},
{
Expand Down Expand Up @@ -873,7 +873,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -887,7 +887,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.11"
"version": "3.11.11"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install -U hopsworks --quiet"
"!pip install -U 'hopsworks[python]' --quiet"
]
},
{
Expand Down Expand Up @@ -373,7 +373,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
"version": "3.11.11"
}
},
"nbformat": 4,
Expand Down
1 change: 1 addition & 0 deletions advanced_tutorials/fraud_cheque_detection/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ word2number==1.1
bitsandbytes==0.42.0
accelerate==0.27.2
langchain==0.1.16
hopsworks[python]
14 changes: 12 additions & 2 deletions advanced_tutorials/hospital_wait_time/1_feature_pipeline.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@
"## <span style='color:#ff5f27'> 📝 Imports </span>"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "1b04190c-ffca-4a5b-b93c-3b03cdedd17a",
"metadata": {},
"outputs": [],
"source": [
"!pip install -U 'hopsworks[python]' --quiet"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -575,7 +585,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -589,7 +599,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.1.-1"
"version": "3.11.11"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion advanced_tutorials/llm_pdfs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ openai==1.9.0
getpass4==0.0.14.1
json_repair==0.6.1
protobuf==3.20.0
hopsworks
hopsworks[python]
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install -U hopsworks --quiet"
"!pip install -U 'hopsworks[python]' --quiet"
]
},
{
Expand Down Expand Up @@ -224,7 +224,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -238,7 +238,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.11"
"version": "3.11.11"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install -U hopsworks --quiet\n",
"!pip install -U 'hopsworks[python]' --quiet\n",
"!pip install -U 'git+https://github.com/logicalclocks/hopsworks-tutorials@master#egg=on_demand_feature&subdirectory=advanced_tutorials/on_demand_feature/on_demand_feature'"
]
},
Expand Down Expand Up @@ -129,7 +129,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.16"
"version": "3.11.11"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install -U hopsworks --quiet\n",
"!pip install -U 'hopsworks[python]' --quiet\n",
"!pip install -U 'git+https://github.com/logicalclocks/hopsworks-tutorials@master#egg=on_demand_feature&subdirectory=advanced_tutorials/on_demand_feature/on_demand_feature'"
]
},
Expand Down Expand Up @@ -139,7 +139,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.16"
"version": "3.11.11"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/logicalclocks/hopsworks-tutorials/blob/master/advanced_tutorials/on_demand_feature/notebooks/3_feature_view_td_modelling.ipynb)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!pip install -U 'hopsworks[python]' --quiet"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -358,7 +367,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.16"
"version": "3.11.11"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion advanced_tutorials/recommender-system/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ tensorflow==2.13
tensorflow-recommenders-0.7.2
catboost==1.1.1
opensearch-py==1.1.0
hopsworks
streamlit==1.28.2
hopsworks[python]
2 changes: 1 addition & 1 deletion advanced_tutorials/tiktok_recsys/python/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ mimesis==15.1.0
tensorflow==2.13
tensorflow-recommenders==0.7.2
catboost==1.1.1
hopsworks==3.7.6
mimesis==15.1.0
hopsworks[python]
14 changes: 12 additions & 2 deletions advanced_tutorials/timeseries/1_feature_backfill.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@
"## <span style=\"color:#ff5f27\">📝 Imports </span>"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "c84411ee-d103-4458-8ff9-50bb782b4a9a",
"metadata": {},
"outputs": [],
"source": [
"!pip install -U 'hopsworks[python]' --quiet"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -418,7 +428,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -432,7 +442,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.11"
"version": "3.11.11"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 80b9229

Please sign in to comment.