[IPython-user] Changing context in iPython CLI

Damien DEGOIS 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 :)

++
Damien

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
>>
>># myobj.stuff()
>>
>># %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 
>personal preference).
>
>Cheers,
>
>f
>
>_______________________________________________
>IPython-user mailing list
>IPython-user at scipy.net
>http://scipy.net/mailman/listinfo/ipython-user
>
>  
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/ipython-user/attachments/20051007/69a3721e/attachment.html 


More information about the IPython-user mailing list