Skip to content

Commit bf4ae8e

Browse files
zxqfd555Manul from Pathway
authored andcommitted
fix non-runnable tutorial code (#9604)
GitOrigin-RevId: 14134c25aa62b1c44788d5aef7c4b2e4485112bf
1 parent 38f2617 commit bf4ae8e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/2.developers/4.user-guide/60.deployment/40.from-jupyter-to-deploy.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,12 @@ data = pw.demo.replay_csv(fname, schema=schema, input_rate=1000)
295295
# data
296296
```
297297

298+
Please note that the replay uses the same schema as initially deduced from the input. You therefore need to perform the date parsing again:
299+
300+
```python
301+
data = data.with_columns(t=data.t.dt.utc_from_timestamp(unit="ms"))
302+
```
303+
298304
Since your task here is to create a dashboard, you no longer need to display intermediate tables. Therefore, you can remove the empty `data` statement at the end of the data loading cell. Similarly, you can comment out or remove the data printing statements at the end of every other cells.
299305

300306
As promised, you can use the code designed for static data with streaming data.

0 commit comments

Comments
 (0)