I imported two modules in colab, using cp.
!cp /content/drive/MyDrive/ML/mymodule.py /content/mymodule.py
import mymodule
!cp /content/drive/MyDrive/ML/innerplot.py /content/innerplot.py
import innerplot
Where mymodule must contain ['mini', 'test'], and innerplot must contain ['plot'].
But print(dir(mymodule))
returns...
['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'np', 'plot', 'plt', 'torch']
Which is same from a print(dir(innerplot))
. How can I fix this problem?
I tried to restart the colab and even changed the import order, but innerplot always overwrited mymodule.