I was using Google Colab mounted with Google Drive to run some demos. But I got a problem that once that I modified the .py
files in my Google Drive, I use !google-drive-ocamlfuse -cc
to empty the cache to see the changes. Now I could see that the files in Google Colab machine are already changed, but the results coming out of the runtime just stick to the old versions. As shown below, the result is still 0 instead of 1.
Code before:
def a():
return 0
Code after:
def a():
return 1
Questions:
- How could I fix the problem to make my code effective?
- How could I see the changes corresponding to my code?