Is there a way to automatically execute a Python file when quitting Spyder (sort of like the opposite of startup)?

4 views
Skip to first unread message

Christian Galea

unread,
Aug 1, 2021, 9:54:01 PM8/1/21
to spyder
Spyder can execute code on startup; one can even run a whole .py file when Spyder is first launched. I was just wondering if there was something similar for when Spyder is closed? That is, automatically execute a .py file when you close/exit Spyder (so the file would be executed just before Spyder is closed)?
Reply all
Reply to author
Forward
0 new messages