With deleting the variable space, do you mean checking the option (Spyder 3.3.6):
Spyder-menu/Tools/PreferenceRun/General settings/Remove all variable before execution
This is also discussed with a screenshot in the following post
Do you reuse the python console rather than spawning new ones? In the latter case consoles may stick around in memory, but I haven’t looked into that explicitly.
If the above does not resolve the issue you may also try to delete some Nazca arrays explicitly in your code and rely on Python’s garbage collection.
import nazca as nd nd.clear_layout() nd.clear_layers() nd.clear_xsections()