Mathematica > Systems Interfaces & Deployment > Mathematica Sessions > Session Customization >

$Epilog

$Epilog
is a symbol whose value, if any, is evaluated when a dialog or a Mathematica session is terminated.
  • For Mathematica sessions, $Epilog is conventionally defined to read in a file named end.m.
Evaluate $Epilog when the Mathematica Kernel session is terminated:
In[1]:=
Click for copyable input
New in 1
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team