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)

enter image description here

then scroll down to:

enter image description here

desellect Enable UMR

Click on Apply (Anwenden) and restart Spyder.

The error should be gone now...

Share:
49,192

Related videos on Youtube

msg
Author by

msg

Updated on August 02, 2021

Comments

  • msg
    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
      Admin over 6 years
    • msg
      msg over 6 years
      Thank 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
      Admin over 6 years
      try tools->preferences->python interpreter
    • Admin
      Admin over 6 years
      Or try: import warnings and than warnings.filterwarnings("ignore", message="Reloaded modules: <module_name>")
    • msg
      msg over 6 years
      Thank you I'll give that a try and report back.
    • msg
      msg over 6 years
      I am sorry, this does not help to ignore the error. Might there be a difference between Python and IPython consoles?
    • Carlos Cordoba
      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
      msg over 6 years
      Thank 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
    Osama El-Ghonimy almost 3 years
    This is now found under Tools >> Preferences >>Python interpreter in Spyder 5