Hello. Maybe someone has come across and can tell you how to get detailed view about the callback (Dash Dev Tools | Dash for Python Documentation | Plotly)? Use python code
Thanks for any help
Hello. Maybe someone has come across and can tell you how to get detailed view about the callback (Dash Dev Tools | Dash for Python Documentation | Plotly)? Use python code
hi @AlesiaSel
I’m not sure I fully understand. You can get the callback details in the callback graph when you set your Dash app to debug=True
.
Are you asking how we can see the same information solely by using Python code?
Yep. Not in browser. can I get the same information using a code and, for example, print it?
I want to compare time of first loading graph(for example) and after reloading page
The callback graph is front end only. I don’t think there is an easy way to get it’s data.
do you know or can you suggest a way to get it in other ways? I print timing, which is added to death.callback_context.record_timing, as well as dash.callback_context.timing_information, I also use timeit.timeit, but I get different values for each case. and there is no matching callback graph
is it possible to get timing using a request to _dash-update-component?
Has anyone been able to turn on Dash dev tools on py.cafe?
hi @giselle
Welcome to the community.
I have tried playing around with it as well, but there doesn’t seem to be a way to do that.
Hello @AlesiaSel,
What exactly are you looking for? Timing on the callback when ran in production?
You can see the outputs and inputs designated to a callback by looking at the payload and outputs / inputs.
If you wanted to, you could also listen directly to the fetch request of the browser by overriding the defualt window.fetch request.
When using something in a production environment, you cannot use things like the dev tools because you technically never give the command to be in debug mode because you are instead passing the flask server to something like gunicorn.