[IPython-dev] Magics, aliases, namespaces
Ville Vainio
vivainio at kolumbus.fi
Tue Jun 29 10:38:23 EDT 2004
Fernando Perez wrote:
>> Shouldn't this be rather simple, or am I misunderstanding something?
>> Just implement only one function in Magic, e.g. magic_execute. Then
>> the "magic handler" would return the command to be executed as
>
>
> The problem is that in many places, the Magic functions access shell
> attributes directly (since it's a mixin). A boundary needs to be
> drawn between the two. Same for logger. This is easy, it just needs
> to be done carefully to make sure all codepaths are taken into account.
Ah. Perhaps the magic_execute could just pass the reference to shell
environment then...
> There's your first project. Send me a patch :)
Ok :).
> I saw that, thanks. But I (Fernando Perez) wrote ipython, not
> Francois Pinard (though he has sent me useful ideas and comments in
> the past). :)
Ouch. Two south-european names with same initials - you get the idea ;-)
More information about the IPython-dev
mailing list