Is there a way to automatically execute a Python file when quitting Spyder (sort of like the opposite of startup)?
9 views
Skip to first unread message
Christian Galea
unread,
Aug 1, 2021, 9:54:01 PM8/1/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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)?