Can't get the IPYthon ipapi object working

beetlecube SiteContactUs at gmail.com
Wed Feb 18 16:49:36 EST 2009


Hi , I found out from a random google search that I could use IPython
to automatically import modules so that I could test Django views.

I downloaded it (WIN XP), installed it.  I'm able to import it, but I
just can't seem to get the object working.

The code:
-----------------------------------
try:
    import IPython.ipapi
    ip = IPython.ipapi.get()
    a = ip.options
    ip.ex('import os')

except Exception,msg:
    print "Message: ", msg
-------------------------------------------

I get: ' Message:  'NoneType' object has no attribute 'options' '

If I remove the ip.options statement, it will say the same thing about
attribute 'ex'

Does anyone know if there are configuration options necessary?

 I read the docs, and it described a profile module, but I just need
to run this, for this single purpose ( at least, now, later I can see
its usefulness definitely,)

Steve














More information about the Python-list mailing list