I’m running a subprocess with its stdout piped, reading it using an interval timer, and displaying the output. I’d like to turn off the timer when the subprocess completes.
I tried creating a callback with Output(interval_id, ‘interval’) that detects if the subprocess has exited, and returns a value to reset the interval timer to something that effectively turns it off. I’ve tried values of 0, -1, and None but the timer keeps on ticking. How do I disable it? Do I have to remove it from the Div?