Skip to content

Commit 80b9229

Browse files
authoredDec 17, 2024
[FSTORE-1646] Tutorials Update (#293)
* Fixes for 4.x hopsworks[python]
1 parent 64d29dd commit 80b9229

37 files changed

+271
-678
lines changed
 

‎advanced_tutorials/air_quality/1_air_quality_feature_backfill.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
}
5050
],
5151
"source": [
52-
"!pip install -U hopsworks --quiet\n",
52+
"!pip install -U 'hopsworks[python]' --quiet\n",
5353
"!pip install geopy folium streamlit-folium --q"
5454
]
5555
},
@@ -1145,7 +1145,7 @@
11451145
"name": "python",
11461146
"nbconvert_exporter": "python",
11471147
"pygments_lexer": "ipython3",
1148-
"version": "3.8.18"
1148+
"version": "3.11.11"
11491149
}
11501150
},
11511151
"nbformat": 4,

‎advanced_tutorials/air_quality/2_air_quality_feature_pipeline.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,7 @@
12351235
],
12361236
"metadata": {
12371237
"kernelspec": {
1238-
"display_name": "Python 3",
1238+
"display_name": "Python 3 (ipykernel)",
12391239
"language": "python",
12401240
"name": "python3"
12411241
},
@@ -1249,7 +1249,7 @@
12491249
"name": "python",
12501250
"nbconvert_exporter": "python",
12511251
"pygments_lexer": "ipython3",
1252-
"version": "3.10.11"
1252+
"version": "3.11.11"
12531253
},
12541254
"vscode": {
12551255
"interpreter": {

‎advanced_tutorials/aml/1_aml_feature_pipeline.ipynb

+11-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@
2222
"First of all we will load the data and do some feature engineering on it."
2323
]
2424
},
25+
{
26+
"cell_type": "code",
27+
"execution_count": null,
28+
"id": "49d24791-2df7-4b2e-993c-ca02c642fb6f",
29+
"metadata": {},
30+
"outputs": [],
31+
"source": [
32+
"!pip install -U 'hopsworks[python]' --quiet"
33+
]
34+
},
2535
{
2636
"cell_type": "markdown",
2737
"id": "6a080c46",
@@ -693,7 +703,7 @@
693703
"name": "python",
694704
"nbconvert_exporter": "python",
695705
"pygments_lexer": "ipython3",
696-
"version": "3.10.13"
706+
"version": "3.11.11"
697707
}
698708
},
699709
"nbformat": 4,

‎advanced_tutorials/bitcoin/1_bitcoin_feature_backfill.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"metadata": {},
4141
"outputs": [],
4242
"source": [
43-
"!pip install -U hopsworks --quiet\n",
43+
"!pip install -U 'hopsworks[python]' --quiet\n",
4444
"\n",
4545
"!pip install -U unicorn-binance-rest-api --quiet\n",
4646
"!pip install -U python-dotenv --quiet\n",
@@ -414,7 +414,7 @@
414414
"name": "python",
415415
"nbconvert_exporter": "python",
416416
"pygments_lexer": "ipython3",
417-
"version": "3.9.18"
417+
"version": "3.11.11"
418418
}
419419
},
420420
"nbformat": 4,

‎advanced_tutorials/bitcoin/2_bitcoin_feature_pipeline.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"metadata": {},
3131
"outputs": [],
3232
"source": [
33-
"!pip install -U hopsworks --quiet\n",
33+
"!pip install -U 'hopsworks[python]' --quiet\n",
3434
"\n",
3535
"!pip install -U unicorn-binance-rest-api --quiet\n",
3636
"!pip install -U python-dotenv --quiet\n",
@@ -536,7 +536,7 @@
536536
"name": "python",
537537
"nbconvert_exporter": "python",
538538
"pygments_lexer": "ipython3",
539-
"version": "3.9.18"
539+
"version": "3.11.11"
540540
}
541541
},
542542
"nbformat": 4,

‎advanced_tutorials/bitcoin/3_bitcoin_training_pipeline.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"metadata": {},
4040
"outputs": [],
4141
"source": [
42-
"!pip install -U hopsworks --quiet"
42+
"!pip install -U 'hopsworks[python]' --quiet"
4343
]
4444
},
4545
{
@@ -996,7 +996,7 @@
996996
"name": "python",
997997
"nbconvert_exporter": "python",
998998
"pygments_lexer": "ipython3",
999-
"version": "3.12.5"
999+
"version": "3.11.11"
10001000
},
10011001
"vscode": {
10021002
"interpreter": {

‎advanced_tutorials/bitcoin/4_bitcoin_batch_inference.ipynb

+11-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@
1616
"3. Batch prediction using deployment."
1717
]
1818
},
19+
{
20+
"cell_type": "code",
21+
"execution_count": null,
22+
"id": "bc0e9321-c79f-4ddf-b8f8-783652e2d7a0",
23+
"metadata": {},
24+
"outputs": [],
25+
"source": [
26+
"!pip install -U 'hopsworks[python]' --quiet"
27+
]
28+
},
1929
{
2030
"cell_type": "markdown",
2131
"id": "8855ee1a",
@@ -314,7 +324,7 @@
314324
"name": "python",
315325
"nbconvert_exporter": "python",
316326
"pygments_lexer": "ipython3",
317-
"version": "3.9.12"
327+
"version": "3.11.11"
318328
}
319329
},
320330
"nbformat": 4,

‎advanced_tutorials/citibike/1_citibike_feature_backfill.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"metadata": {},
3939
"outputs": [],
4040
"source": [
41-
"!pip install -U hopsworks --quiet\n",
41+
"!pip install -U 'hopsworks[python]' --quiet\n",
4242
"!pip install python-dotenv"
4343
]
4444
},
@@ -620,7 +620,7 @@
620620
"provenance": []
621621
},
622622
"kernelspec": {
623-
"display_name": "Python 3",
623+
"display_name": "Python 3 (ipykernel)",
624624
"language": "python",
625625
"name": "python3"
626626
},
@@ -634,7 +634,7 @@
634634
"name": "python",
635635
"nbconvert_exporter": "python",
636636
"pygments_lexer": "ipython3",
637-
"version": "3.10.11"
637+
"version": "3.11.11"
638638
}
639639
},
640640
"nbformat": 4,

‎advanced_tutorials/credit_scores/1_credit_scores_feature_backfill.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"metadata": {},
3434
"outputs": [],
3535
"source": [
36-
"!pip install -U hopsworks --quiet"
36+
"!pip install -U 'hopsworks[python]' --quiet"
3737
]
3838
},
3939
{
@@ -873,7 +873,7 @@
873873
],
874874
"metadata": {
875875
"kernelspec": {
876-
"display_name": "Python 3",
876+
"display_name": "Python 3 (ipykernel)",
877877
"language": "python",
878878
"name": "python3"
879879
},
@@ -887,7 +887,7 @@
887887
"name": "python",
888888
"nbconvert_exporter": "python",
889889
"pygments_lexer": "ipython3",
890-
"version": "3.10.11"
890+
"version": "3.11.11"
891891
}
892892
},
893893
"nbformat": 4,

‎advanced_tutorials/electricity/1_electricity_feature_backfill.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"metadata": {},
3939
"outputs": [],
4040
"source": [
41-
"!pip install -U hopsworks --quiet"
41+
"!pip install -U 'hopsworks[python]' --quiet"
4242
]
4343
},
4444
{
@@ -373,7 +373,7 @@
373373
"name": "python",
374374
"nbconvert_exporter": "python",
375375
"pygments_lexer": "ipython3",
376-
"version": "3.9.18"
376+
"version": "3.11.11"
377377
}
378378
},
379379
"nbformat": 4,

‎advanced_tutorials/fraud_cheque_detection/requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ word2number==1.1
88
bitsandbytes==0.42.0
99
accelerate==0.27.2
1010
langchain==0.1.16
11+
hopsworks[python]

‎advanced_tutorials/hospital_wait_time/1_feature_pipeline.ipynb

+12-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@
88
"## <span style='color:#ff5f27'> 📝 Imports </span>"
99
]
1010
},
11+
{
12+
"cell_type": "code",
13+
"execution_count": null,
14+
"id": "1b04190c-ffca-4a5b-b93c-3b03cdedd17a",
15+
"metadata": {},
16+
"outputs": [],
17+
"source": [
18+
"!pip install -U 'hopsworks[python]' --quiet"
19+
]
20+
},
1121
{
1222
"cell_type": "code",
1323
"execution_count": null,
@@ -575,7 +585,7 @@
575585
],
576586
"metadata": {
577587
"kernelspec": {
578-
"display_name": "Python 3",
588+
"display_name": "Python 3 (ipykernel)",
579589
"language": "python",
580590
"name": "python3"
581591
},
@@ -589,7 +599,7 @@
589599
"name": "python",
590600
"nbconvert_exporter": "python",
591601
"pygments_lexer": "ipython3",
592-
"version": "3.1.-1"
602+
"version": "3.11.11"
593603
}
594604
},
595605
"nbformat": 4,

‎advanced_tutorials/llm_pdfs/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ openai==1.9.0
1919
getpass4==0.0.14.1
2020
json_repair==0.6.1
2121
protobuf==3.20.0
22-
hopsworks
22+
hopsworks[python]

‎advanced_tutorials/nyc_taxi_fares/1_nyc_taxi_fares_feature_backfill.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"metadata": {},
3333
"outputs": [],
3434
"source": [
35-
"!pip install -U hopsworks --quiet"
35+
"!pip install -U 'hopsworks[python]' --quiet"
3636
]
3737
},
3838
{
@@ -224,7 +224,7 @@
224224
],
225225
"metadata": {
226226
"kernelspec": {
227-
"display_name": "Python 3",
227+
"display_name": "Python 3 (ipykernel)",
228228
"language": "python",
229229
"name": "python3"
230230
},
@@ -238,7 +238,7 @@
238238
"name": "python",
239239
"nbconvert_exporter": "python",
240240
"pygments_lexer": "ipython3",
241-
"version": "3.10.11"
241+
"version": "3.11.11"
242242
}
243243
},
244244
"nbformat": 4,

‎advanced_tutorials/on_demand_feature/notebooks/1_backfill_h_feature_groups.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"metadata": {},
2121
"outputs": [],
2222
"source": [
23-
"!pip install -U hopsworks --quiet\n",
23+
"!pip install -U 'hopsworks[python]' --quiet\n",
2424
"!pip install -U 'git+https://github.com/logicalclocks/hopsworks-tutorials@master#egg=on_demand_feature&subdirectory=advanced_tutorials/on_demand_feature/on_demand_feature'"
2525
]
2626
},
@@ -129,7 +129,7 @@
129129
"name": "python",
130130
"nbconvert_exporter": "python",
131131
"pygments_lexer": "ipython3",
132-
"version": "3.8.16"
132+
"version": "3.11.11"
133133
}
134134
},
135135
"nbformat": 4,

‎advanced_tutorials/on_demand_feature/notebooks/2_feature_pipeline.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"metadata": {},
2121
"outputs": [],
2222
"source": [
23-
"!pip install -U hopsworks --quiet\n",
23+
"!pip install -U 'hopsworks[python]' --quiet\n",
2424
"!pip install -U 'git+https://github.com/logicalclocks/hopsworks-tutorials@master#egg=on_demand_feature&subdirectory=advanced_tutorials/on_demand_feature/on_demand_feature'"
2525
]
2626
},
@@ -139,7 +139,7 @@
139139
"name": "python",
140140
"nbconvert_exporter": "python",
141141
"pygments_lexer": "ipython3",
142-
"version": "3.8.16"
142+
"version": "3.11.11"
143143
}
144144
},
145145
"nbformat": 4,

‎advanced_tutorials/on_demand_feature/notebooks/3_feature_view_td_modelling.ipynb

+10-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@
1414
"[![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)"
1515
]
1616
},
17+
{
18+
"cell_type": "code",
19+
"execution_count": null,
20+
"metadata": {},
21+
"outputs": [],
22+
"source": [
23+
"!pip install -U 'hopsworks[python]' --quiet"
24+
]
25+
},
1726
{
1827
"cell_type": "code",
1928
"execution_count": null,
@@ -358,7 +367,7 @@
358367
"name": "python",
359368
"nbconvert_exporter": "python",
360369
"pygments_lexer": "ipython3",
361-
"version": "3.8.16"
370+
"version": "3.11.11"
362371
}
363372
},
364373
"nbformat": 4,

‎advanced_tutorials/recommender-system/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ tensorflow==2.13
33
tensorflow-recommenders-0.7.2
44
catboost==1.1.1
55
opensearch-py==1.1.0
6-
hopsworks
76
streamlit==1.28.2
7+
hopsworks[python]

‎advanced_tutorials/tiktok_recsys/python/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ mimesis==15.1.0
22
tensorflow==2.13
33
tensorflow-recommenders==0.7.2
44
catboost==1.1.1
5-
hopsworks==3.7.6
65
mimesis==15.1.0
6+
hopsworks[python]

‎advanced_tutorials/timeseries/1_feature_backfill.ipynb

+12-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@
88
"## <span style=\"color:#ff5f27\">📝 Imports </span>"
99
]
1010
},
11+
{
12+
"cell_type": "code",
13+
"execution_count": null,
14+
"id": "c84411ee-d103-4458-8ff9-50bb782b4a9a",
15+
"metadata": {},
16+
"outputs": [],
17+
"source": [
18+
"!pip install -U 'hopsworks[python]' --quiet"
19+
]
20+
},
1121
{
1222
"cell_type": "code",
1323
"execution_count": null,
@@ -418,7 +428,7 @@
418428
],
419429
"metadata": {
420430
"kernelspec": {
421-
"display_name": "Python 3",
431+
"display_name": "Python 3 (ipykernel)",
422432
"language": "python",
423433
"name": "python3"
424434
},
@@ -432,7 +442,7 @@
432442
"name": "python",
433443
"nbconvert_exporter": "python",
434444
"pygments_lexer": "ipython3",
435-
"version": "3.10.11"
445+
"version": "3.11.11"
436446
}
437447
},
438448
"nbformat": 4,

0 commit comments

Comments
 (0)
Failed to load comments.