When working with large expressions I sometimes mistakenly ask Mathematica to show some output which causes the front end to hang. Sometimes it just needs to format notebook contents but sometimes, it seems like it hangs forever. In both scenarios it would be handy if I could either
- just save the notebook and restart the kernel, or
- recover the data that is relevant and restart the kernel.
Is there any way to achieve this when the front end hangs?
I don't expect there to be a solution that always works (since the kernel might hang as well) but something in the form of opening a new notebook and starting a sub-session to recover some definitions would already be great.