I am trying to call a plotly-dash callback without the Input and the method won't fire.
This is a dashboard I am trying to build using dash. In the past when I use a callback with both the Input and Output everything works fine but when I tried using only output the result is not displayed on the dashboard.
html.Div(
[
html.P(
"Tweet Count",
className="twelve columns indicator_text"
),
html.P(
id = 'tweet_value',
className="indicator_value"
),
],
className="four columns indicator",
)
@app.callback(
Output("tweet_value","children")
)
def total_tweet_callback():
return 100
total_tweet_callback()to run only once on load, simply putchildren=total_tweet_callback()for the P element.