How closing a csv file in Spyder after an error?

18 views
Skip to first unread message

Jean-Louis Subra

unread,
Jun 16, 2020, 6:13:03 PM6/16/20
to spyder
Hi,

When I execute in Spyder console a program where a csv file is opened, if the program stops after an error and before closing the csv file, the csv file is not closed, which is normal. But if I correct the program and launch it again, the file is not closed. If I use Windows explorer file, I can't delete, move or rename the file, it's locked and I get a message with Python is locking the file.

Previously, when I used Python console, the file was closed if I launched again a "good" program.

Then I have to exit Spyder to release the file.

Is it normal? Is there a solution to close the file without having to exit the program?

Thank you.
Jean-Louis
Reply all
Reply to author
Forward
0 new messages