Black Lives Matter. Please consider donating to Black Girls Code today.
Dash HoloViews is now available! Check out the docs.

Running an external program on button click

Hi,

I currently have a Dash app which graphs the sentiment of tweets from Twitter live as they are being streamed via a separate file I have written. At the moment I run the Dash and streaming files concurrently.

I was wondering if there was a way in which I could add two buttons (Start and Stop) to my Dash app so that when the user presses the ‘Start’ button the streaming file is run, and then when the user presses the ‘Stop’ button the steaming file stops running.

Any help?