Autoreload of modules and opening a dedicated console sometimes fails when I have a program that imports modules from a subfolder in the same directory. I enabled "execute in a dedicated console" and UMR in the preferences. I also did a complete reinstall of Anaconda and Spyder.
from foo_folder import foo
if __name__ == '__main__':
print(foo.bar())
def bar():
return 'Hello World'
The first output was "Hello World" as expected. I changed the string to "Goodbye World", it showed in the console that it reloaded the "foo.py" and gave the correct output. But when I changed it a third time, it still printed "Goodbye World" and did not reload the module or open a new dedicated console.
Is this somehow expected behaviour? Because I don't see the consistency here.
Also, this never happened when I imported modules from the same directory.
no traceback or other errors
Versions:
Windows 10 Pro v 1803
Python 3.7.3
Spyder 3.3.6
IPython 7.6.1
@dalthviz, are you able to reproduce this one?
@ccordoba12 I was able to reproduce this:
Great, thank you.