[IPython-dev] Extension loading

Thomas Kluyver takowl at gmail.com
Sat Sep 29 16:19:35 EDT 2012

On 29 September 2012 18:47, Jason Grout <jason-sage at creativetrax.com> wrote:
> In the preliminary Sage extension, we do things like add a pre_run_code
> hook and run a startup file.  If we register a hook twice, I suppose it
> runs twice?

I should also add: if the extension does anything that shouldn't be
done twice, it should be reversed, if possible, by the
unload_ipython_extension function. We'll fix reload_extension up to
call unload_.. first.


More information about the IPython-dev mailing list