I found a hack to do the above but I am sure there is more elegant way to go about it…
From within a /lab
interface (and with the /dash
endpoint open in another tab),
-
I simply updated my
app.py
file with the code aboveand saved it (without committing any changes)
-
I open a terminal and looked up the
PID
of thepython
process running the dash app using
ps -fC python
and then killed it (a new process gets automatically spawned)
- I refreshed the
/dash
tab and my app updated in a running session !