New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extraneous line for multiline output in Sage command line #22158
Comments
comment:1
The related upstream discussion is in ipython/ipython#10138 |
comment:3
Thank you. I will try to make a patch this weekend. |
comment:4
Replying to @sagetrac-stakemori:
Did you see the comment posted in the upstream discussion? We may think that the bug is in IPython than in Sage. So we need a patch for IPython. You may submit a pull request of the patch to IPython Github repo. |
comment:5
Fixed upstream in ipython/ipython#10146 |
Changed upstream from Reported upstream. No feedback yet. to Fixed upstream, but not in a stable release. |
comment:6
Replying to @kwankyu: I saw the pull request. This has been fixed in IPython. But I think this can be fixed immediately in Sage (how long will it take before the fix will be merged into Sage?). Right now I have a fever, so I avoid coding. |
comment:7
It will take some time for the fix in the upstream eventually to get into a release of Sage. For the impatient, copy and paste the following to replace the code for
|
comment:8
The method |
comment:9
We can just patch Sage's IPython in the meantime. This is the fastest fix, as we have to wait for the next version of IPython with the PR included. I doubt Volker will let this ticket get into the 7.5 release though. :/ |
comment:10
Replying to @tscrim:
That would be a pity for such an important major bug like this one ;-) |
comment:11
I made a patch for this problem. I think the attribute |
comment:12
Your patch will be redundant once the next release of IPython is incorporated to Sage. Note that the upstream patch was back ported to the current release, which means, I guess, that the fixed IPython would be available in Sage sooner than usual. Your patch can be used as an (alternative) temporary measure to fix the issue, but should not be merged to Sage. |
comment:13
As Sage's IPython was updated to version 5.5, this issue is now fixed. Nice! |
Reviewer: Travis Scrimshaw |
comment:14
Indeed! |
comment:15
closing positively reviewed duplicates |
To reproduce it, run Sage in the terminal and evaluate the following code. Extra blank lines are printed before outputs as below:
This was first discussed in https://groups.google.com/forum/#!topic/sage-devel/AYYaUb_9kjw
Upstream: Fixed upstream, but not in a stable release.
CC: @sagetrac-stakemori @tscrim
Component: user interface
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/22158
The text was updated successfully, but these errors were encountered: