I use a somename.py file in google drive to simulate the environment. Then I import it to the Colab and the run the code. Then, I modified that somename.py file in google drive the run the experiment again. However, the Colab always uses the original version. Even if I delete that somename.py file in google drive, Colab is still able to import it. Please help me.
do you sovle it ? I meet same questions,can you tell me some solutions?
I meet same questions,can you tell me some solutions?
I have solved this problem byruntime -> restart runtimes or Ctrl+M.
Hope that can could be helpful! :-)
I'm having the same issue. Restarting the runtime does not change it.
Nor does resetting.
I think "restart runtime" helps, but it does not always work.
I have found "reset all runtimes" seems to be a good backup to make it refresh.
However for me doing a reset is a real pain because environment setup takes time, plus you have to go through the Google Drive permissions granting process again.
I'm having this as well. Doing this helped refresh python modules-
import importlib
importlib.reload(mymodule)
but even this doesnt work sometimes
+1
Most helpful comment
+1