Wolfram Function Repository (Under Development)
Instant-use add-on functions for the Wolfram Language
Close all other open notebooks
ResourceFunction["CloseOtherNotebooks"][] close all but the current notebook. |
|
ResourceFunction["CloseOtherNotebooks"][notebooks] close all notebooks except for those specified by notebooks. |
Close all but the current notebook:
In[1]:= | ![]() |
Out[2]= | ![]() |
In[3]:= | ![]() |
Out[3]= | ![]() |
Only the current notebook and the messages window remain open:
In[4]:= | ![]() |
Out[4]= | ![]() |
Provide a list notebooks that should be kept open:
In[5]:= | ![]() |
Out[3]= | ![]() |
In[6]:= | ![]() |
Out[6]= | ![]() |
In[7]:= | ![]() |
Out[7]= | ![]() |
Use a pattern to choose which notebooks to keep open:
In[8]:= | ![]() |
Out[3]= | ![]() |
In[9]:= | ![]() |
Out[9]= | ![]() |
In[10]:= | ![]() |
Out[10]= | ![]() |
By default, notebooks that have been modified in memory will not be closed:
In[11]:= |
![]() |
Out[9]= |
![]() |
In[12]:= |
![]() |
Out[12]= |
![]() |
Using "Modified"True will close these notebooks without saving changes:
In[13]:= |
![]() |
Out[13]= |
![]() |
In[14]:= |
![]() |
Out[14]= |
![]() |