Is it possible to configure voila to shutdown when the tab is closed?

339 views Asked by At

Context

I try to execute voila dashboards in a nox isolated environment to facilitate development iterations and sharing. the problem is once the nox session is launching voila, it never finishes as voila is not closing itself when I close the tab.

Question

How to make the voila command close when the browser tab is closed?
or (as its equivalent)
How to make the voila command close when the kernel is shut down

How to reproduce

  1. create a test.ipynb file with a simple print("hello world") cell
  2. start voila by running voila test.ipynb
  3. close the tab
  4. The terminal will catch the "[Voila] Kernel shutdown: xxxxx" by remain active
  5. only way to stop it is to run ctrl+c
0

There are 0 answers