[IPython-dev] Request: IPython.ext namespace

Takafumi Arakaki aka.tkf at gmail.com
Fri Oct 26 04:40:12 EDT 2012

My main point was that you can't use external modules on pypi in your
extension if you are using %install_ext.  To do that, you need to turn
your extension into a package.  So I wanted to put in some organized
namespace.  But it won't work as Jake pointed out, so I guess
extension author must put in "global" namespace on pypi.


On Fri, Oct 26, 2012 at 12:37 AM, Thomas Kluyver <takowl at gmail.com> wrote:
> 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
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev

More information about the IPython-dev mailing list