Open nlpneurobot opened 8 months ago
Thanks for the bug report - we'll get back to you shortly with a resolution.
I think I found this problem.
In part 1, the data are loaded and the t column is converted to date time format :
data = data.with_columns(t=data.t.dt.utc_from_timestamp(unit="ms"))
It's not present in part 2 after loading shown in "Switching to streaming data" section.
With conversion in datetime format, minute_20_stats
and minute_1_stats
appear to be correctly calculated.
Looking at your charts, the t column is indeed INT on your side. Unfortunately it doesn't work on my side. Applying conversion to datetime format, it's good for me.
I would like to share my experience on this part 2. You should send a message to the installation page of the panel module because it requires the pyviz_comms module ( https://panel.holoviz.org/getting_started/installation.html )
After the stupid and nasty execution of the cells that you propose, the output of pn.Row(...) leaves the static mode. I first need to recalculate minute_20_stats and minute_1_stats then re-execute the cell which calculates joint_stats (present in part 1 and not mentioned in part 2) to obtain streaming mode.
Then I can execute the pn.Row(...) command that you suggest for a nice display ready for streaming and finally the pw.run() command to start streaming.
When streaming, I have this warning which appears but which you must surely already be working on or have even corrected:
~/miniconda3/envs/mixtral_ollama/lib/python3.11/site-packages/pathway/stdlib/viz/table_viz.py:140:
FutureWarning: DataFrame.applymap has been deprecated. Use DataFrame.map instead.
df = df.applymap(_format_types) # type: ignore
Steps to reproduce
I try to reproduce your tutorial : https://pathway.com/developers/user-guide/exploring-pathway/from-jupyter-to-deploy/#part-2-from-static-data-exploration-to-interactive-dashboard-prototyping
I use only copy/paste your code and I obtain an error of input type when I execute the cell bellow "Please add the behavior argument to window definition as in the code snippet below."
python version : 3.11.8 pathway version : 0.8.2
Relevant log output
What did you expect to happen?
A tutorial up to date ;)
Version
0.8.2
Docker Versions (if used)
No response
OS
MacOS
On which CPU architecture did you run Pathway?
x86-64