What is the behavior of python execution when browser is closed/non-responsive?

I have a fairly basic high-level question on Jupyter notebook kernel connection and long running code.

Let’s say I have a python code that is long running (say, 30 minutes).

Let’s say I execute this code. Then I close the browser. Or I put my computer to sleep. Or any similar action.

Does the code execution continue?

What exactly is the behavior?

Hi James,

When a browser tab is closed (or some variation thereof), cell execution continues. However, obtaining the output of that “background” execution has proven to be a challenge (and a well-known issue).

Here are some references: https://github.com/jupyter/notebook/issues/1647 and https://github.com/jupyter/notebook/issues/2446 to name a couple.