Avoid 'Reloaded modules: <module_name>' message in Python
49,192
Solution 1
Go to Tools -> Preferences -> Python Interpreter and you will find User Module Reloader. Just deselect the checkbox with text as Show reloaded module list.
Solution 2
In spyder 2.3 you need to do the following:
Go to Tools -> Preferences -> Console -> Advanced settings
or Tools -> Preferences -> Python interpreter in Spyder 5
(added thanks to @Osama El-Ghonimy)
then scroll down to:
desellect Enable UMR
Click on Apply
(Anwenden) and restart Spyder.
The error should be gone now...
Related videos on Youtube
Author by
msg
Updated on August 02, 2021Comments
-
msg almost 3 years
I am getting the above mentioned error:
'Reloaded modules: <module_name>'
Since I want to keep my code as it is, i'd like to disable this warning. How can this be done? I am using Spyder 3.2.3.
-
Admin over 6 yearsHave a look here: github.com/spyder-ide/spyder/issues/2325
-
msg over 6 yearsThank you I already found this. Quoting: "Have a look in the Console section of the preferences, in the Advanced tab. You can either disable the message or the UMR completely". But I neither find a Console section nor an option to disable UMR or the messages I wound like to disable.
-
Admin over 6 yearstry tools->preferences->python interpreter
-
Admin over 6 yearsOr try:
import warnings
and thanwarnings.filterwarnings("ignore", message="Reloaded modules: <module_name>")
-
msg over 6 yearsThank you I'll give that a try and report back.
-
msg over 6 yearsI am sorry, this does not help to ignore the error. Might there be a difference between Python and IPython consoles?
-
Carlos Cordoba over 6 years@msg, this is just a warning, and it's only generated when you run code inside Spyder. As @andi mentioned, you can deactivate our UMR by going to
Tools > Preferences > Python interpreter
. -
msg over 6 yearsThank you Carlos! That did the trick. I simply did not find this option since I did not know what to look for.
-
-
Osama El-Ghonimy almost 3 yearsThis is now found under Tools >> Preferences >>Python interpreter in Spyder 5