[IPython-dev] How to handle extensions

Brian Granger ellisonbg.net@gmail....
Thu Oct 15 18:05:42 CDT 2009


> > * It is listed in the extensions list of the config file.
> > * The user calls %load_ext to load it.
> >
> > The only case that is different is in the case of something like isympy,
> > which is a custom version of ipython that loads various things needed
> > by sympy.  But in that case, it is a *different program* that is being
> run.
>
> * Or it's activated by a profile.
>
>
With the new config system, profile==config file is True, so this is
covered.  All you have
to do is list the extension in c.Global.extensions in ipython_config.py or
your profile
and you are set.

Cheers,

Brian



> I guess that amounts to calling %load_ext, but I think it's worth breaking
> out
> as its own item.
>
> --
> Robert Kern
>
> "I have come to believe that the whole world is an enigma, a harmless
> enigma
>  that is made terrible by our own mad attempt to interpret it as though it
> had
>  an underlying truth."
>   -- Umberto Eco
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20091015/aa5792ef/attachment.html 


More information about the IPython-dev mailing list