Skip to content

Commit

Permalink
Daily Pathway examples refresh
Browse files Browse the repository at this point in the history
Co-authored-by: Manul from Pathway <[email protected]>
GitOrigin-RevId: a0dce9311d6f2e234d19458605857824062b1706
  • Loading branch information
Pathway-Dev and Manul from Pathway committed Sep 12, 2024
1 parent c752bba commit c4447fb
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 82 deletions.
110 changes: 55 additions & 55 deletions examples/notebooks/tutorials/asynctransformer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@
"output_type": "stream",
"text": [
" | value | ret | __time__ | __diff__\n",
"^Z3QWT29... | 2 | 3 | 1725942849926 | 1\n",
"^3CZ78B4... | 2 | 3 | 1725942850126 | 1\n",
"^YYY4HAB... | 6 | 7 | 1725942850126 | 1\n",
"^3HN31E1... | 6 | 7 | 1725942850526 | 1\n",
"^X1MXHYY... | 12 | 13 | 1725942850526 | 1\n"
"^Z3QWT29... | 2 | 3 | 1726115668154 | 1\n",
"^3CZ78B4... | 2 | 3 | 1726115668356 | 1\n",
"^YYY4HAB... | 6 | 7 | 1726115668356 | 1\n",
"^3HN31E1... | 6 | 7 | 1726115668756 | 1\n",
"^X1MXHYY... | 12 | 13 | 1726115668756 | 1\n"
]
}
],
Expand Down Expand Up @@ -410,12 +410,12 @@
"output_type": "stream",
"text": [
" | group | value | ret | __time__ | __diff__\n",
"^Z3QWT29... | 2 | 1 | 2 | 1725942854042 | 1\n",
"^Z3QWT29... | 2 | 1 | 2 | 1725942854142 | -1\n",
"^Z3QWT29... | 2 | 3 | 4 | 1725942854142 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725942854342 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725942854544 | -1\n",
"^YYY4HAB... | 1 | 2 | 3 | 1725942854544 | 1\n"
"^Z3QWT29... | 2 | 1 | 2 | 1726115672102 | 1\n",
"^Z3QWT29... | 2 | 1 | 2 | 1726115672202 | -1\n",
"^Z3QWT29... | 2 | 3 | 4 | 1726115672202 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1726115672404 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1726115672604 | -1\n",
"^YYY4HAB... | 1 | 2 | 3 | 1726115672604 | 1\n"
]
}
],
Expand Down Expand Up @@ -537,18 +537,18 @@
"output_type": "stream",
"text": [
" | group | value | ret | __time__ | __diff__\n",
"^Z3QWT29... | 2 | 1 | 2 | 1725942854822 | 1\n",
"^3HN31E1... | 4 | 3 | 4 | 1725942854822 | 1\n",
"^Z3QWT29... | 2 | 1 | 2 | 1725942855122 | -1\n",
"^3HN31E1... | 4 | 3 | 4 | 1725942855122 | -1\n",
"^Z3QWT29... | 2 | 4 | 5 | 1725942855122 | 1\n",
"^3HN31E1... | 4 | 2 | 3 | 1725942855122 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725942855224 | 1\n",
"^3CZ78B4... | 3 | 1 | 2 | 1725942855224 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725942855322 | -1\n",
"^3CZ78B4... | 3 | 1 | 2 | 1725942855322 | -1\n",
"^YYY4HAB... | 1 | 2 | 3 | 1725942855322 | 1\n",
"^3CZ78B4... | 3 | 2 | 3 | 1725942855322 | 1\n"
"^Z3QWT29... | 2 | 1 | 2 | 1726115672848 | 1\n",
"^3HN31E1... | 4 | 3 | 4 | 1726115672848 | 1\n",
"^Z3QWT29... | 2 | 1 | 2 | 1726115673150 | -1\n",
"^3HN31E1... | 4 | 3 | 4 | 1726115673150 | -1\n",
"^Z3QWT29... | 2 | 4 | 5 | 1726115673150 | 1\n",
"^3HN31E1... | 4 | 2 | 3 | 1726115673150 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1726115673248 | 1\n",
"^3CZ78B4... | 3 | 1 | 2 | 1726115673248 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1726115673350 | -1\n",
"^3CZ78B4... | 3 | 1 | 2 | 1726115673350 | -1\n",
"^YYY4HAB... | 1 | 2 | 3 | 1726115673350 | 1\n",
"^3CZ78B4... | 3 | 2 | 3 | 1726115673350 | 1\n"
]
}
],
Expand Down Expand Up @@ -581,16 +581,16 @@
"output_type": "stream",
"text": [
" | group | value | ret | __time__ | __diff__\n",
"^Z3QWT29... | 2 | 1 | 2 | 1725942855458 | 1\n",
"^3CZ78B4... | 3 | 2 | 3 | 1725942855558 | 1\n",
"^3HN31E1... | 4 | 3 | 4 | 1725942855658 | 1\n",
"^Z3QWT29... | 2 | 1 | 2 | 1725942855758 | -1\n",
"^3HN31E1... | 4 | 3 | 4 | 1725942855758 | -1\n",
"^Z3QWT29... | 2 | 4 | 5 | 1725942855758 | 1\n",
"^3HN31E1... | 4 | 2 | 3 | 1725942855758 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725942855858 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725942855958 | -1\n",
"^YYY4HAB... | 1 | 2 | 3 | 1725942855958 | 1\n"
"^Z3QWT29... | 2 | 1 | 2 | 1726115673476 | 1\n",
"^3CZ78B4... | 3 | 2 | 3 | 1726115673576 | 1\n",
"^3HN31E1... | 4 | 3 | 4 | 1726115673676 | 1\n",
"^Z3QWT29... | 2 | 1 | 2 | 1726115673778 | -1\n",
"^3HN31E1... | 4 | 3 | 4 | 1726115673778 | -1\n",
"^Z3QWT29... | 2 | 4 | 5 | 1726115673778 | 1\n",
"^3HN31E1... | 4 | 2 | 3 | 1726115673778 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1726115673876 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1726115673976 | -1\n",
"^YYY4HAB... | 1 | 2 | 3 | 1726115673976 | 1\n"
]
}
],
Expand Down Expand Up @@ -633,18 +633,18 @@
"output_type": "stream",
"text": [
" | group | value | ret | __time__ | __diff__\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725942856078 | 1\n",
"^Z3QWT29... | 2 | 1 | 2 | 1725942856078 | 1\n",
"^3CZ78B4... | 3 | 1 | 2 | 1725942856078 | 1\n",
"^3HN31E1... | 4 | 3 | 4 | 1725942856078 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725942856578 | -1\n",
"^Z3QWT29... | 2 | 1 | 2 | 1725942856578 | -1\n",
"^3CZ78B4... | 3 | 1 | 2 | 1725942856578 | -1\n",
"^3HN31E1... | 4 | 3 | 4 | 1725942856578 | -1\n",
"^YYY4HAB... | 1 | 2 | 3 | 1725942856578 | 1\n",
"^Z3QWT29... | 2 | 4 | 5 | 1725942856578 | 1\n",
"^3CZ78B4... | 3 | 2 | 3 | 1725942856578 | 1\n",
"^3HN31E1... | 4 | 2 | 3 | 1725942856578 | 1\n"
"^YYY4HAB... | 1 | 5 | 6 | 1726115674102 | 1\n",
"^Z3QWT29... | 2 | 1 | 2 | 1726115674102 | 1\n",
"^3CZ78B4... | 3 | 1 | 2 | 1726115674102 | 1\n",
"^3HN31E1... | 4 | 3 | 4 | 1726115674102 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1726115674604 | -1\n",
"^Z3QWT29... | 2 | 1 | 2 | 1726115674604 | -1\n",
"^3CZ78B4... | 3 | 1 | 2 | 1726115674604 | -1\n",
"^3HN31E1... | 4 | 3 | 4 | 1726115674604 | -1\n",
"^YYY4HAB... | 1 | 2 | 3 | 1726115674604 | 1\n",
"^Z3QWT29... | 2 | 4 | 5 | 1726115674604 | 1\n",
"^3CZ78B4... | 3 | 2 | 3 | 1726115674604 | 1\n",
"^3HN31E1... | 4 | 2 | 3 | 1726115674604 | 1\n"
]
}
],
Expand Down Expand Up @@ -688,16 +688,16 @@
"output_type": "stream",
"text": [
" | group | value | ret | __time__ | __diff__\n",
"^Z3QWT29... | 2 | 1 | 2 | 1725942856710 | 1\n",
"^3HN31E1... | 4 | 3 | 4 | 1725942856710 | 1\n",
"^Z3QWT29... | 2 | 1 | 2 | 1725942857010 | -1\n",
"^3HN31E1... | 4 | 3 | 4 | 1725942857010 | -1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725942857110 | 1\n",
"^3CZ78B4... | 3 | 1 | 2 | 1725942857110 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725942857210 | -1\n",
"^3CZ78B4... | 3 | 1 | 2 | 1725942857210 | -1\n",
"^YYY4HAB... | 1 | 2 | 3 | 1725942857210 | 1\n",
"^3CZ78B4... | 3 | 2 | 3 | 1725942857210 | 1\n"
"^Z3QWT29... | 2 | 1 | 2 | 1726115674724 | 1\n",
"^3HN31E1... | 4 | 3 | 4 | 1726115674724 | 1\n",
"^Z3QWT29... | 2 | 1 | 2 | 1726115675024 | -1\n",
"^3HN31E1... | 4 | 3 | 4 | 1726115675024 | -1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1726115675124 | 1\n",
"^3CZ78B4... | 3 | 1 | 2 | 1726115675124 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1726115675224 | -1\n",
"^3CZ78B4... | 3 | 1 | 2 | 1726115675224 | -1\n",
"^YYY4HAB... | 1 | 2 | 3 | 1726115675224 | 1\n",
"^3CZ78B4... | 3 | 2 | 3 | 1726115675224 | 1\n"
]
}
],
Expand Down
46 changes: 23 additions & 23 deletions examples/notebooks/tutorials/fs_connector.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@
"name": "stdout",
"output_type": "stream",
"text": [
"{\"data\":\"test1\",\"diff\":1,\"time\":1725942833112}\r\n",
"{\"data\":\"data2\",\"diff\":1,\"time\":1725942833112}\r\n",
"{\"data\":\"data1\",\"diff\":1,\"time\":1725942833112}\r\n",
"{\"data\":\"test2\",\"diff\":1,\"time\":1725942833112}\r\n"
"{\"data\":\"test1\",\"diff\":1,\"time\":1726115651094}\r\n",
"{\"data\":\"data2\",\"diff\":1,\"time\":1726115651094}\r\n",
"{\"data\":\"data1\",\"diff\":1,\"time\":1726115651094}\r\n",
"{\"data\":\"test2\",\"diff\":1,\"time\":1726115651094}\r\n"
]
},
{
Expand All @@ -161,8 +161,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"{\"data\":\"test1\",\"diff\":1,\"time\":1725942833112}\r\n",
"{\"data\":\"data1\",\"diff\":1,\"time\":1725942833112}\r\n"
"{\"data\":\"test1\",\"diff\":1,\"time\":1726115651094}\r\n",
"{\"data\":\"data1\",\"diff\":1,\"time\":1726115651094}\r\n"
]
}
],
Expand Down Expand Up @@ -218,8 +218,8 @@
"output_type": "stream",
"text": [
"out3:\r\n",
"{\"data\":\"data2\",\"diff\":1,\"time\":1725942833806}\r\n",
"{\"data\":\"test2\",\"diff\":1,\"time\":1725942833806}\r\n"
"{\"data\":\"data2\",\"diff\":1,\"time\":1726115651792}\r\n",
"{\"data\":\"test2\",\"diff\":1,\"time\":1726115651792}\r\n"
]
}
],
Expand Down Expand Up @@ -333,10 +333,10 @@
"output_type": "stream",
"text": [
"header1,header2,time,diff\r\n",
"\"data7\",\"data8\",1725942835374,1\r\n",
"\"data1\",\"data2\",1725942835374,1\r\n",
"\"data3\",\"data4\",1725942835374,1\r\n",
"\"data5\",\"data6\",1725942835374,1\r\n"
"\"data7\",\"data8\",1726115653356,1\r\n",
"\"data1\",\"data2\",1726115653356,1\r\n",
"\"data3\",\"data4\",1726115653356,1\r\n",
"\"data5\",\"data6\",1726115653356,1\r\n"
]
}
],
Expand Down Expand Up @@ -450,9 +450,9 @@
"name": "stdout",
"output_type": "stream",
"text": [
"{\"header1\":\"data7\",\"header2\":\"data8\",\"diff\":1,\"time\":1725942836800}\r\n",
"{\"header1\":\"data3\",\"header2\":\"data4\",\"diff\":1,\"time\":1725942836800}\r\n",
"{\"header1\":\"data5\",\"header2\":\"data6\",\"diff\":1,\"time\":1725942836800}\r\n"
"{\"header1\":\"data7\",\"header2\":\"data8\",\"diff\":1,\"time\":1726115654786}\r\n",
"{\"header1\":\"data3\",\"header2\":\"data4\",\"diff\":1,\"time\":1726115654786}\r\n",
"{\"header1\":\"data5\",\"header2\":\"data6\",\"diff\":1,\"time\":1726115654786}\r\n"
]
}
],
Expand Down Expand Up @@ -521,10 +521,10 @@
"output_type": "stream",
"text": [
"data,time,diff\r\n",
"\"test1\",1725942837238,1\r\n",
"\"data2\",1725942837238,1\r\n",
"\"data1\",1725942837238,1\r\n",
"\"test2\",1725942837238,1\r\n"
"\"test1\",1726115655190,1\r\n",
"\"data2\",1726115655190,1\r\n",
"\"data1\",1726115655190,1\r\n",
"\"test2\",1726115655190,1\r\n"
]
},
{
Expand All @@ -539,8 +539,8 @@
"output_type": "stream",
"text": [
"data,time,diff\r\n",
"\"test2\\ndata2\",1725942837238,1\r\n",
"\"test1\\ndata1\",1725942837238,1\r\n"
"\"test2\\ndata2\",1726115655190,1\r\n",
"\"test1\\ndata1\",1726115655190,1\r\n"
]
},
{
Expand All @@ -555,8 +555,8 @@
"output_type": "stream",
"text": [
"data,time,diff\r\n",
"[116, 101, 115, 116, 50, 10, 100, 97, 116, 97, 50, 10],1725942837238,1\r\n",
"[116, 101, 115, 116, 49, 10, 100, 97, 116, 97, 49, 10],1725942837238,1\r\n"
"[116, 101, 115, 116, 50, 10, 100, 97, 116, 97, 50, 10],1726115655190,1\r\n",
"[116, 101, 115, 116, 49, 10, 100, 97, 116, 97, 49, 10],1726115655190,1\r\n"
]
}
],
Expand Down
4 changes: 2 additions & 2 deletions examples/notebooks/tutorials/indexes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -835,8 +835,8 @@
"lines_to_next_cell": 0
},
"source": [
"A similar approach was taken in our [alerting example](/developers/templates/llm-alert-pathway/).\n",
"It is an LLM app that can send you alerts on slack when the response to your query has changed significantly."
"A similar approach was taken in our [alerting example](https://github.com/pathwaycom/llm-app/tree/main/examples/pipelines/drive_alert).\n",
"It is an LLM app that can send you alerts on slack when the response to your query has changed significantly."
]
},
{
Expand Down
3 changes: 1 addition & 2 deletions examples/notebooks/tutorials/option-greeks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -685,8 +685,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
" | ts_recv | raw_symbol | expiration | instrument_class | strike_price | underlying | instrument_id | option_midprice",
"\n",
" | ts_recv | raw_symbol | expiration | instrument_class | strike_price | underlying | instrument_id | option_midprice\n",
"^6ZHYYVZ... | 1712275200000000000 | ESM4 C3950 | 1718976600000000000 | C | 3950.0 | ESM4 | 4162742 | 1255.875\n",
"^W64CERT... | 1712275200000000000 | ESM4 C4000 | 1718976600000000000 | C | 4000.0 | ESM4 | 574893 | 1206.25\n",
"^WGHCM9D... | 1712275200000000000 | ESM4 C4050 | 1718976600000000000 | C | 4050.0 | ESM4 | 4162333 | 1156.75\n",
Expand Down

0 comments on commit c4447fb

Please sign in to comment.