Hi Eric,

You can install ipympl by running `%pip install ipympl` at a sage prompt.
It will do a "--user" install in your .local directory.

(Ubuntu 24.04 does not allow --user installs, but the AppImage does.)

Nominally an AppImage is read-only, but that is not strictly true.  You can
unpack an AppImage, meaning that the internal squashfs filesystem gets
written out as a normal directory in the filesystem containing the
AppImage.  That can be modified and repacked using appimagetool.  However,
there is no need for such shenanigans.  Just use `%pip`.

I was able to run your test_display notebook after installing ipympl that
way.  Cell 22 worked.   It did produce a deprecation warning which looked
like it would be easy to fix.

- Marc


On Mon, Aug 25, 2025 at 8:16 AM Eric Gourgoulhon <egourgoul...@gmail.com>
wrote:

> I gave it a try on a Ubuntu 24.04 computer: it works like a charm!
> In particular, I've run this test notebook:
>
> https://nbviewer.org/github/egourgoulhon/SageMathTest/blob/master/Notebooks/test_display.ipynb
> and everything was OK, except for the %matplotlib widget magic in cell 22.
> But the latter requires the ipympl package:
> https://matplotlib.org/ipympl/
> Usually, this is fixed by a
> pip install ipympl
> but maybe it is technically not possible to install packages by pip within
> an AppImage?
>
> I've advertised the AppImage on the SageManifolds mailing list
> <https://sympa.obspm.fr/wws/arc/sagemanifolds.list/2025-08/msg00000.html>,
> as well as on these pages:
> https://sagemanifolds.obspm.fr/download.html
> https://sagemanifolds.obspm.fr/install_ubuntu.html
>
> Thanks again for having developed this AppImage! It is certainly very
> useful to newcomers to Sage!
>
> Eric.
> Le vendredi 15 août 2025 à 16:34:29 UTC+2, marc....@gmail.com a écrit :
>
>> The 3-manifolds project is now distributing a beta version of
>> SageMath-x86_64.AppImage
>> <https://github.com/3-manifolds/sage_appimage/releases> .
>> This means that SageMath 10.7 can be installed and run on any version of
>> linux which is compatible with manylinux2014 by downloading one file and
>> marking it as executable.  The compatible linux systems include Ubuntu
>> 24.04, Debian 12 and the default ubuntu image for Windows 11 WSL2, none of
>> which are currently providing any sagemath packages.
>>
>> This continues our effort to make sage accessible to the large group of
>> users which includes most students and most of their professors and which
>> consists of people who are not interested in, or not capable of, learning
>> how to compile sage or maintain 3rd party package managers -- people who
>> expect to be able to just download a program and run it.  While, as a
>> reader of this email list, you probably do not belong to that group, we are
>> hoping that you do have an interest in increasing access to sage and that
>> you might be interested in testing the AppImage and reporting any issues
>> you encounter.
>>
>> For those who are not familiar with the AppImage format, it is simply an
>> ELF binary executable file containing a very small program with an
>> arbitrarily large squashfs filesystem appended.  The small program does a
>> fuse mount of the squashfs filesystem and then execs a main program located
>> at the root of the filesystem.  The squashfs should contain all library
>> dependencies of the main program, and all dynamic libraries should be
>> loaded from an rpath pointing into the squashfs.  That way the AppImage has
>> no external dependencies.
>>
>> - Marc
>>
>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "sage-devel" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sage-devel/mbuGsrmkhpE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> sage-devel+unsubscr...@googlegroups.com.
> To view this discussion visit
> https://groups.google.com/d/msgid/sage-devel/7b050a3d-f974-4f37-997c-d35109f43e9dn%40googlegroups.com
> <https://groups.google.com/d/msgid/sage-devel/7b050a3d-f974-4f37-997c-d35109f43e9dn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/sage-devel/CALcZXRFyd3hC0v3KsfG5zEdAE68oVbCe38ETc5f7mPt_ie8kCQ%40mail.gmail.com.

Reply via email to