SageMath version 9.7.beta1, Release Date: 2022-05-26
Operating system: macOS Monterey 12.4
When running sage in Jupyter notebook, I get the following problem.
sage: ascii_art(list(Partitions(5)))
<repr(<sage.typeset.ascii_art.AsciiArt at 0x7f8f358aa250>) failed: OSError: [Errno 25] Inappropriate ioctl for device>
The exact same code works when I run my sage in the terminal. My guess is the "_terminal_width()" private method does not work with Jupiter. In the terminal, the following command gives
sage: ascii_art(list(Partitions(5)))._terminal_width()
80
While in Jupiter notebook I get
OSError: [Errno 25] Inappropriate ioctl for device
This was not an issue before I recently upgraded my sage.
Thanks!