Good question! You could take a look at my newer article How to Build a Stock Tracker with Plotly and Flask where the callback function simple reads the value of each input and then constructs a response.

The article is here:

https://projectcodeed.blogspot.com/2021/07/how-to-build-stock-tracker-with-plotly.html

The code is on this page https://alanjones2.github.io/Flask-Plotly/

A more generic solution would be to have a list in input ids which the callback function would loop through getting each value and construction a response from them - the list could be constructed directly in JS on the client side or in Python on the server and transferred to the template when the page is loaded

--

--

--

Technology, data science and programming

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alan Jones

Alan Jones

Technology, data science and programming

More from Medium

Data Mesh: what is it, and is it for you?

Method of the Month — Pyrosequencing

In-Memory Computing and Stream Processing : Hazelcast

Data Resilience: Openness