[IPython-user] Changing context in iPython CLI
ddegois at gmail.com
Fri Oct 7 16:33:34 CDT 2005
By the way, cmd module is great ... IMHO, i use it for command line
remote control ..
It's easy to use ...
In case of :)
Fernando Perez a écrit :
>Ville Vainio wrote:
>>>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
>># %makeglobals myobj
>># stuff() # calls "curried" version with self as first arg
>Yup, that's another approach that can also work (I think I prefer the %prepend
>one, simply because I'm picky about namespace clashes, but that's really a
>IPython-user mailing list
>IPython-user at scipy.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-user