[IPython-dev] ~/.ipython/extensions is deprecated

Matthias Bussonnier bussonniermatthias at gmail.com
Tue Jul 25 10:47:22 EDT 2023


You need to package it, not just copy it over. for a sigle file I would
suggest using something like flit.

Is physics.py by any chance something you can share ? I can show you how to
package it.

On Tue, Jul 25, 2023 at 12:21 Fourhundred Thecat <400thecat at gmx.ch> wrote:

> Hello,
>
> so, I have installed ipython 8.5.0
>
> (I have existing profile directory, which I used previously on version
> 5.8.0)
>
> when I start, I get:
>
> Loading extensions from ~/.ipython/extensions is deprecated. We
> recommend managing extensions like any other Python packages, in
> site-packages.
>
> In version 5.8.0, I had my extension as:
>
> ~/.ipython/extensions/physics.py
>
> Now I tried copying it to
>
>    /usr/lib/python3/dist-packages/IPython/extensions/
>
> but when i start ipython, it cannot find the extension.
>
> so where should i put my extension file, if not  ~/.ipython/extensions ?
>
>
> thanks,
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at python.org
> https://mail.python.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/ipython-dev/attachments/20230725/435a8d78/attachment.html>


More information about the IPython-dev mailing list