In case it helps…
When researching for an entirely different purpose, I came across examples of widget buttons used to start and stop. See links here and therein, plus my earlier post in that thread.
I don’t know if they work in JupyterLab. I suspect they should soon, if not already, as they are using basic python and widget abilities. JupyterLab 3 is still fairly new and that would be what you should be using if referencing JupyterLab as that is the focus of development now.
1 Like