The Notebooks feature has an "Auto-Save" capability. This was built to address the common issue of users "losing" their query when they happen to navigate away from ...
Were there any error messages in the UI, Output panel, or Developer Tools console? I have "interpreters.showSessions": true and noticed that upon closing the notebook ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results