global name 'sqrt' is not defined

Robert Kern robert.kern at
Thu Feb 5 20:01:14 EST 2009

On 2009-02-05 18:55, James Mills wrote:
> On Fri, Feb 6, 2009 at 10:48 AM, Nick Matzke<matzke at>  wrote:
>> (PS: Is there a way to force a complete reload of a module, without exiting
>> ipython?  Just doing the import command again doesn't seem to do it.)
> m = __import__("mymobile")
> reload(m)

Or more straightforwardly:

   import mymobile

If you have done

   from mymobile import *

anywhere, you will need to re-execute that line again.

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

More information about the Python-list mailing list