With PyCharm, you can save and clear contexts without associating them with specific tasks.
Procedures: