+ 2

How to see which files Python is reading or editing?

How to see which files Python is reading/editing, knowing only its PID? (on a Jupyter web server running Ubuntu)

30th Jan 2020, 9:31 AM
Gwlanbzh
Gwlanbzh - avatar
1 Antwort
+ 1
You can find many useful answers here: https://stackoverflow.com/questions/2023608/check-what-files-are-open-in-JUMP_LINK__&&__python__&&__JUMP_LINK/7142094 In any case it is always a good practice to close file handlers when you are done with them.
1st Feb 2020, 1:37 AM
Tibor Santa
Tibor Santa - avatar