Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9003931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:47:02+00:00 2026-06-16T00:47:02+00:00

I have been fooling around for about a month with python now and something

  • 0

I have been fooling around for about a month with python now and something is bothering me.
I use the python(x,y) toolkit, which comes with the neat Spyder IDE.
My question concerns the UMD (User module deleter) of Spyder.

I found this graphics module on the internet, which helps one to do some simple graphic stuff in a python script (as far as I understand).

It is not like i’m stuck, but when I execute the folowing code:

import pylab as p
import graphics as g

window = g.GraphWin("tryout", 600, 600)
window.close()
print p.sqrt(4)

The output is:

>>>runfile(r'C:\some\folders\tryout.py', wdir=r'C:\some\folders')
>>>UMD has deleted: graphics
>>>2.0

line 1 is obviously o.k. and so is line 3, but I don’t get line 2.
Also, the provoked window flashes in and out of the screen, as it should.
Line 2 doesn’t seem to do any harm, and i can perfectly rerun the file as many times as I wan’t, but I want to know where it is comming from.

AFAIK UMD forces the interpreter to reload a module everytime a script is run.
Does the displayed message mean that ‘it’ has deleted the references to the module, because it isn’t used anymore, or is it something else? Or does it mean something is wrong, and will it ‘hurt’ my code should I add more afterwards?

Note: first question, so please comment the crap out of it to help me improve my asking skills.

EDIT: i tried shifting around the test line print p.sqrt(4), and found out that it doesn’t matter where I put it. If its the first line after importing the modules, it still raisses the message before showing sqrt(4)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T00:47:03+00:00Added an answer on June 16, 2026 at 12:47 am

    Short Answer:

    Perhaps deleted is not the best word in the message you mention. It should be reloaded, which is what UMD is really doing and because is way less confusing. I’ll fill an issue for this in our issue tracker.

    Long answer:

    UMD reloads not only your script but also all the local modules it depends on. By local I mean modules outside your Python installation and over which you have writing permissions.

    The idea is that next to your script, perhaps you have developed a library of auxiliary functions to go with it. So you most probably want to reload that library too, so that any changes to it are reflected at run time.

    I know this is not your case, so if you want to remove that message, you can go to:

    Tools > Preferences > Console > Advanced settings > User Module Deleter

    and deactivate the option

    Show reloaded modules list

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have been fooling around with Pygame and have run into a problem
I'm just starting to teach myself Objective C and have been fooling around with
Have been wondering about this for days now: I have a basic wxpython program
I had been fooling around with rails, and somehow had ruby version 1.9 something
Have been reading about async and tasks and been attempting to convert the CopyFileEx
have been able to output images from BLOB, however I am now wanting to
Have been reading around on IErrorHandler and want to go the config route. so,
Hey all I've just been fooling around with the HTML5 Database API and I'm
I've just been fooling around with a ListBox control that I want to style
have been trying to look around the web for a good wcf publish/subscribe framework

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.