Closing laptop while training a model

If I’m training a model in Jupyter (Cloud IDE) and close my Macbook, should I expect my model to continue training? If not, is there anything I can do to keep it running? I just tried this and the training seemed to stop.