1. You have a long running process
It's common to have long-running processes, and you want to do something else while this finishes. However, once it ends, it might take you more than 15 minutes to notice, and all your work is deleted from memory.
Click next to figure out how to stop this behavior.
2. Click on Environment, under Projects in your right sidebar
3. Click on Options
4. Click on 15 minutes of inactivity to access other options
5. Click on 1 hour of inactivity
You can switch between 15 minutes up to 24 hours of inactivity. After your selected period, the notebook is going to turn off. And just like that, you have changed the inactivity setting!