view command

125 views
Skip to first unread message

Anne Schilling

unread,
Sep 28, 2024, 2:45:58 AM9/28/24
to sage-devel
Dear All,

I see that there were some problems recently with the view command which seem to have been fixed. However, compared to older versions of SageMath, there still seems to be some odd behaviors. For example, the commands

sage: B = crystals.Tableaux(['A',2],shape=[1])
sage: view(B)

produce the pdf file which is cut off at the top and does not show the full graph. This did not happen in older versions of SageMath.

Best wishes,

Anne


sage.pdf

Emmanuel Charpentier

unread,
Sep 28, 2024, 9:28:07 AM9/28/24
to sage-devel
WorksForMe(TM) on 10.5.beta5 compiiled from source running under Debian testing on core i7 + 16 GB RAM.

Your problem may be specific to your setup (hardware, OS, type of installation, installed software). Can you describe it ? Especially what you use to generate and view PDFs...

HTH,

Michael Orlitzky

unread,
Sep 28, 2024, 7:47:04 PM9/28/24
to sage-...@googlegroups.com
On 2024-09-27 23:45:58, Anne Schilling wrote:
> Dear All,
>
> I see that there were some problems recently with the view command which
> seem to have been fixed. However, compared to older versions of SageMath,
> there still seems to be some odd behaviors. For example, the commands...

If you are on macOS, I would guess that your problem is fixed by

https://github.com/sagemath/sage/pull/38339

which (among other things) adds the "-W" flag to the "open" command to
prevent a race condition on macOS.

Anne Schilling

unread,
Sep 29, 2024, 2:34:14 AM9/29/24
to sage-devel
Thank you, Michael and Emanuel, for your responses.

My operating system is MacOS 15.0 with sage installed from source.

I have already applied ticket 38339 since otherwise an error occurs saying
The document “sage.pdf” could not be opened. The file doesn’t exist.

Another user had reported this problem also in https://groups.google.com/g/sage-support/c/C53biOTdiFk

I am using Preview to view pdf files.

The same problem occurs for me on MacOS 10.15.7 with sage installed via conda. On this same Mac running an old version of sage (9.7.rc0, Release Date: 2022-08-30), I do not have this problem of the pdf being cutoff. So it must have something to do with how the newest version of sage interacts with latex, creates pdf files and preview.

Best wishes,

Anne

Dima Pasechnik

unread,
Sep 29, 2024, 3:14:44 AM9/29/24
to sage-...@googlegroups.com
how about opening a github issue to deal with the cutoff pdf picture?

Anne Schilling

unread,
Sep 29, 2024, 8:51:40 PM9/29/24
to sage-devel
Thank you, Dima. This is now https://github.com/sagemath/sage/issues/38745.
Reply all
Reply to author
Forward
0 new messages