From 400thecat at gmx.ch Tue Jul 25 00:35:02 2023 From: 400thecat at gmx.ch (Fourhundred Thecat) Date: Tue, 25 Jul 2023 06:35:02 +0200 Subject: [IPython-dev] package dependencies when trying to install ipython 8.5.0 Message-ID: <5767a5b8-fd19-48f3-762f-4565c1e8e267@gmx.ch> Hello, I have been using ipython 5.8.0 on Debian 10. Now I have upgraded to Debian 12 which has ipython 8.5.0 When I try to install python3-ipython, it wants to install graphical dependencies such as python3-matplotlib-inline: # apt-cache show python3-ipython | grep Depends Depends: python3-backcall, python3-decorator, python3-jedi (>= 0.16), python3-matplotlib-inline, python3-pexpect, python3-pickleshare, python3-prompt-toolkit (>= 2), python3-pygments, python3-stack-data, python3-traitlets, python3:any, python3-setuptools I would just like to install plain console (command line) version of ipython. Why does it want to install gui dependencies? Is this something Debian specific, or do these dependencies come from ipython upstream? thanks, From bussonniermatthias at gmail.com Tue Jul 25 02:05:58 2023 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Tue, 25 Jul 2023 08:05:58 +0200 Subject: [IPython-dev] package dependencies when trying to install ipython 8.5.0 In-Reply-To: <5767a5b8-fd19-48f3-762f-4565c1e8e267@gmx.ch> References: <5767a5b8-fd19-48f3-762f-4565c1e8e267@gmx.ch> Message-ID: matplotlib inline is not a gui dependency it's a minuscule pure python package, that hold common logic to help displaying inline figures. Some terminal emulator (kitty, iterm) do support inline figures. https://github.com/ipython/matplotlib-inline/ On Tue, Jul 25, 2023 at 06:35 Fourhundred Thecat <400thecat at gmx.ch> wrote: > Hello, > > I have been using ipython 5.8.0 on Debian 10. > > Now I have upgraded to Debian 12 which has ipython 8.5.0 > > When I try to install python3-ipython, it wants to install graphical > dependencies such as python3-matplotlib-inline: > > # apt-cache show python3-ipython | grep Depends > Depends: python3-backcall, python3-decorator, python3-jedi (>= 0.16), > python3-matplotlib-inline, python3-pexpect, python3-pickleshare, > python3-prompt-toolkit (>= 2), python3-pygments, python3-stack-data, > python3-traitlets, python3:any, python3-setuptools > > I would just like to install plain console (command line) version of > ipython. > > Why does it want to install gui dependencies? > > Is this something Debian specific, or do these dependencies come from > ipython upstream? > > 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: From 400thecat at gmx.ch Tue Jul 25 06:21:33 2023 From: 400thecat at gmx.ch (Fourhundred Thecat) Date: Tue, 25 Jul 2023 12:21:33 +0200 Subject: [IPython-dev] ~/.ipython/extensions is deprecated Message-ID: 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, From bussonniermatthias at gmail.com Tue Jul 25 10:47:22 2023 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Tue, 25 Jul 2023 16:47:22 +0200 Subject: [IPython-dev] ~/.ipython/extensions is deprecated In-Reply-To: References: Message-ID: 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: From 400thecat at gmx.ch Tue Jul 25 12:45:55 2023 From: 400thecat at gmx.ch (Fourhundred Thecat) Date: Tue, 25 Jul 2023 18:45:55 +0200 Subject: [IPython-dev] ~/.ipython/extensions is deprecated In-Reply-To: References: Message-ID: > On 2023-07-25 16:47, Matthias Bussonnier wrote: > 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. thank you! it is the ipython-physics extension, used for conversion of units: https://github.com/birkenfeld/ipython-physics From kennylee.gms at gmail.com Wed Jul 26 02:54:35 2023 From: kennylee.gms at gmail.com (Kenny Lee) Date: Wed, 26 Jul 2023 14:54:35 +0800 Subject: [IPython-dev] (no subject) Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Wed Jul 26 04:12:23 2023 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Wed, 26 Jul 2023 10:12:23 +0200 Subject: [IPython-dev] ~/.ipython/extensions is deprecated In-Reply-To: References: Message-ID: See this pull request then: https://github.com/birkenfeld/ipython-physics/pull/4 On Tue, 25 Jul 2023 at 18:46, Fourhundred Thecat <400thecat at gmx.ch> wrote: > > > On 2023-07-25 16:47, Matthias Bussonnier wrote: > > 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. > > thank you! > > it is the ipython-physics extension, used for conversion of units: > > https://github.com/birkenfeld/ipython-physics > > _______________________________________________ > IPython-dev mailing list > IPython-dev at python.org > https://mail.python.org/mailman/listinfo/ipython-dev From kennylee.gms at gmail.com Thu Jul 27 04:17:19 2023 From: kennylee.gms at gmail.com (Kenny Lee) Date: Thu, 27 Jul 2023 16:17:19 +0800 Subject: [IPython-dev] (no subject) Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: