Efficient environment for machine or deep learning in Python
Try Kaggle, they have kernels with GPUs (free but limited 9 hours runtime I think)

Google cloud is currently beta testing jupyter notebooks on their infrastructure. You do not need to spawn your own compute instance, or even start a Docker: you have your jupyter kernel in your browser in a matter of minutes (https://cloud.google.com/ai-platform-notebooks/). There runtime is illimited but if your connection is glitchy the notebook might disconnect and you can loose your data.

But as a rule of thumb if your runtime is several hours, it might be better to prototype on a subset in notebook and then train on your full dataset in command line.