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
notebook -- spurious u0027's output #3154
Comments
Attachment: trac_3154-spurious-u0027-output.patch.gz Uses base64.b64en/decode instead. |
Author: Tim Dumol |
comment:2
I think using %r to handle escaping quotes would be cleaner than using intermediate base64. I'm attaching a new patch that does this. |
Attachment: 3154_escaping_quotes.patch.gz |
comment:3
Can we also use
? |
comment:4
The second patch causes two SageNB doctest failures: File "/home/tmp/sagenb-0.5/src/sagenb/sagenb/notebook/worksheet.py", line 3695:
sage: W.check_for_system_switching(c1.cleaned_input_text(), c1)
Expected:
(True, u"print _support_.syseval(gap, ur'''SymmetricGroup(5)''', '...')")
Got:
(True, u"print _support_.syseval(gap, u'SymmetricGroup(5)', '/home/.sage/temp/chopin/5101/dir_2.sagenb/home/sage/0/cells/1')")
**********************************************************************
File "/home/tmp/sagenb-0.5/src/sagenb/sagenb/notebook/worksheet.py", line 3721:
sage: W.check_for_system_switching(c1.cleaned_input_text(), c1)
Expected:
(True, u"print _support_.syseval(gap, ur'''SymmetricGroup(5)''', '...')")
Got:
(True, "print _support_.syseval(gap, u'SymmetricGroup(5)', '/home/.sage/temp/chopin/5101/dir_2.sagenb/home/sage/0/cells/1')") Does the latter reveal a [minor] problem with #7249? |
comment:5
Replying to @qed777:
I believe so. I'd rather that be put in a new ticket though. The attached patch should solve the mentioned doctest problems. Can't see how they're related to #7249 though. |
comment:6
Sorry, I forgot to attach the actual patch. |
Fixes a few doctests and a unicode encoding issue. |
Attachment: 3154_escaping_quotes.2.patch.gz Rebase for minor "hunk" failure. Replaces previous. |
Reviewer: Mitesh Patel |
Changed author from Tim Dumol to Willem Jan Palenstijn, Tim Dumol |
comment:7
Attachment: 3154_escaping_quotes.3.patch.gz Nice work! V3 is just a rebase of V2. |
Merged: sagenb-0.6 |
Rebased vs. SageNB 0.7.4. Replaces previous. |
comment:9
Attachment: 3154_escaping_quotes.4.patch.gz |
Work Issues: Rebase and fix tests |
Changed merged from sagenb-0.6 to none |
comment:10
V4 is rebased against SageNB 0.7.4 (cf. #8051), but now several doctests fail, at least one of which I can't investigate lucidly right now. I'll return to this soon. |
Doctest fixes. Replaces all previous. |
comment:12
Attachment: 3154_escaping_quotes.5.patch.gz V5 is rebased for SageNB 0.7.4 and it includes several new doctest fixes. Can someone review my changes? |
Changed work issues from Rebase and fix tests to none |
comment:13
Doctests pass, no regressions noted. |
Changed reviewer from Mitesh Patel to Mitesh Patel, Tim Dumol |
Merged: sagenb-0.8 |
In the notebook we have this, caused by _eval_cmd in worksheet.py:
Component: notebook
Author: Willem Jan Palenstijn, Tim Dumol
Reviewer: Mitesh Patel, Tim Dumol
Merged: sagenb-0.8
Issue created by migration from https://trac.sagemath.org/ticket/3154
The text was updated successfully, but these errors were encountered: