[IPython-user] Changing context in iPython CLI

Ville Vainio vivainio at gmail.com
Fri Oct 7 01:39:32 CDT 2005


> Define a function to return what you want:
>
> def lower():return x.lower()

It should also be pretty doable to implement a magic/function to copy
all names from an object to functions in ipython global namespace, so
that you could do

# myobj.stuff()

# %makeglobals myobj

# stuff()   # calls "curried" version with self as first arg

--
Ville Vainio    http://tinyurl.com/2prnb




More information about the IPython-user mailing list