[IPython-dev] Request: IPython.ext namespace

Thomas Kluyver takowl at gmail.com
Thu Oct 25 18:37:15 EDT 2012


On 25 October 2012 22:04, Takafumi Arakaki <aka.tkf at gmail.com> wrote:
> I'd like to have some rule such as ipyext_ prefix though.  But as
> packages may have IPython extension as submodule like sympy does it
> won't be constant anyway.

I think in many cases it will make sense to ship an IPython extension
as part of some larger package like sympy.

In terms of installation, there's a per-user directory at
$IPYTHONDIR/extensions/ where %install_ext puts files. I think that's
preferable to a package under IPython, because if IPython is installed
systemwide, users wouldn't be able to install modules into it.

Also, in case there's confusion, I should point out that %install_ext
isn't limited to a single .py file - because Python can import a
package from a zip file, you could "%install_ext
http://example.com/myext.zip". I think all the extensions to date are
single modules, but the mechanism allows for more complex extensions
as well.

Thomas



More information about the IPython-dev mailing list