Thanks for the report. This is now fixed in
https://trac.sagemath.org/ticket/33996 On Wednesday, June 15, 2022 at 4:58:46 AM UTC+9 usapan...@gmail.com wrote: > The above error can be fixed by setting > > sage: sage.typeset.ascii_art.AsciiArt._terminal_width = lambda x: 80 > > (80 or any other width you want) > On Monday, June 13, 2022 at 6:13:23 PM UTC-4 Jianping Pan wrote: > >> 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! >> >> -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/4212afde-80bc-480e-b81b-79bbab134c35n%40googlegroups.com.