[Bug]: Dynamic Block does not call the on_timer function
aniteicristi opened this issue · comments
Is there an existing issue for this?
- I have searched for similar issues and discussions
Bug Description
1. I downloaded datapane and all the relevant dependencies
2. I copy and pasted the code from this example: https://github.com/datapane/examples/blob/main/apps/stock-dashboard/app.py
3. I ran the app
4. The screen was blank
5. Nothing happened even after data was refreshed
I fought with this issue for about an hour. It comes down to the on_timer function in the Dynamic block not being called, or at least I suppose that's the problem.
System Information
- Datapane version:0.16.2
- Python version: 3.10.10
- Operating System:Linux Manjaro
- Using Jupyter: No
- Pip or Conda: Pip
- Dependencies:
Anything else?
Example tested: https://github.com/datapane/examples/blob/main/apps/stock-dashboard/app.py
Ok, so after looking through some code, I found that the version of the library I downloaded with pip is not the up-to-date version, as it is missing the changes made 2 weeks ago in this commit
It is strange that I just installed the library today. Perhaps the version on pip is behind the latest changes? How should I get the latest version with pip?
Hi @aniteicristi,
Sorry yes the fix was pushed to master
but hasn't been released to pypi
yet - we will push it out early next week.
In the meantime, there is a dev wheel of the library automatically built using the latest version on master
that you can try using the following,
$ pip3 install https://datapane-cdn.com/python-client/dev/datapane--py3-none-any.whl
Hope that helps in the meantime!
Thank you for the fast reply and the help! I'm looking forward to use datapane in my bachelor's degree license project!
Cheers!
Great - let us know if you have any other issues!
Closing for now - will do a pypi release next week.