[sage-devel] Re: Extra blank is inserted before the output in the Sage CLI

2017-01-10 Thread Kwankyu Lee
If you are sick of the extraneous blank line in multiline output, check out https://trac.sagemath.org/ticket/22158#comment:7 -- 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

[sage-devel] Re: Extra blank is inserted before the output in the Sage CLI

2017-01-09 Thread Kwankyu Lee
This is now https://trac.sagemath.org/ticket/22158 -- 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 post to this group,

[sage-devel] Re: Extra blank is inserted before the output in the Sage CLI

2017-01-08 Thread Kwankyu Lee
I put the following comment to the IPython issue: The method write_output_prompt in the class RichPromptDisplayHook sets the attribute prompt_end_newline to true when the output prompt ends explicitly with \n. In Sage, the output prompt is just empty string. I think that in this case too,

[sage-devel] Re: Extra blank is inserted before the output in the Sage CLI

2017-01-08 Thread Sho Takemori
An empty line is inserted before the multi-line output in the method write_format_data of IPython.core.displayhook.Displayhook. I guess self.prompt_end_newline should be True for the Sage CLI. But the method write_output_prompt of IPython.terminal.RichPromptDisplayHook sets this to False. I gue

[sage-devel] Re: Extra blank is inserted before the output in the Sage CLI

2017-01-08 Thread Travis Scrimshaw
On Saturday, January 7, 2017 at 9:30:21 PM UTC-6, Kwankyu Lee wrote: > > This was reported earlier in > > > https://groups.google.com/forum/#!msg/sage-support/F6rDRrU59W8/kVbLWAtZAAAJ;context-place=searchin/sage-support/extra$20$20line > > The presumed suspect was the recent update of the IPython

[sage-devel] Re: Extra blank is inserted before the output in the Sage CLI

2017-01-07 Thread Sho Takemori
Thank you for the information and opening the issue. I checked the output in IPython provided by Sage 7.3 and Sage 7.4. I also check the output in IPython 5.1.0 with the simple prompt. It seems that both outputs in IPython 4 and IPython 5 are same. And the behavior in IPython 5.1.0 with simple p

[sage-devel] Re: Extra blank is inserted before the output in the Sage CLI

2017-01-07 Thread Kwankyu Lee
I asked in IPython community: https://github.com/ipython/ipython/issues/10138 -- 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.

[sage-devel] Re: Extra blank is inserted before the output in the Sage CLI

2017-01-07 Thread Kwankyu Lee
I now see why that behavior was introduced in IPython. Just put your example directly in the ipython, using "sage -ipython" -- 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

[sage-devel] Re: Extra blank is inserted before the output in the Sage CLI

2017-01-07 Thread Kwankyu Lee
This was reported earlier in https://groups.google.com/forum/#!msg/sage-support/F6rDRrU59W8/kVbLWAtZAAAJ;context-place=searchin/sage-support/extra$20$20line The presumed suspect was the recent update of the IPython underlying the Sage command line. I am also annoyed by this. Your report seems to