Opened 4 years ago
Closed 4 years ago
#26710 closed defect (fixed)
interact `text_control` should use HTMLMath not HTML
Reported by: | klee | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | sage-8.7 |
Component: | interact | Keywords: | |
Cc: | Merged in: | ||
Authors: | Kwankyu Lee | Reviewers: | Jeroen Demeyer |
Report Upstream: | N/A | Work issues: | |
Branch: | ca8ca9b (Commits, GitHub, GitLab) | Commit: | ca8ca9bf7f0fd4cde0fb70a54d2aba5843b17b41 |
Dependencies: | Stopgaps: |
Description
text_control
in the following does not typeset $A$
in text_control
.
@interact def _(a=text_control("Put a matrix $A$"), b=input_grid(2,2, default=[[1,2],[3,4]], label='')): m = matrix(b) print(m)
Sage in jupyter use HTML
widget to render text_control
. The widget HTML
does not typeset maths. We should switch to HTMLMath
.
By the way, the above example reveals abother defect. label
with empty string does not make the label of the input_grid
blank, unlike as expected.
Change History (8)
comment:1 Changed 4 years ago by
Authors: | → Kwankyu Lee |
---|---|
Branch: | → u/klee/26710 |
comment:2 Changed 4 years ago by
Commit: | → ca8ca9bf7f0fd4cde0fb70a54d2aba5843b17b41 |
---|
comment:3 Changed 4 years ago by
Status: | new → needs_review |
---|
comment:4 follow-up: 5 Changed 4 years ago by
Reviewers: | → Jeroen Demeyer |
---|---|
Status: | needs_review → positive_review |
"An HTML" sounds strange to me, but I'm not a native English speaker...
comment:5 Changed 4 years ago by
Replying to jdemeyer:
"An HTML" sounds strange to me, but I'm not a native English speaker...
Neither am I, but from StackExchange,
An html but a hyper text... Similarly, an MBA but a Masters of Business....
because "html" begins with a vowel, echh-tee-em-el.
Thanks!
comment:6 Changed 4 years ago by
OK, I thought that "H" was pronounced starting with an "h" sound (more like haitch) but apparently not...
comment:7 Changed 4 years ago by
Milestone: | sage-8.5 → sage-8.7 |
---|
comment:8 Changed 4 years ago by
Branch: | u/klee/26710 → ca8ca9bf7f0fd4cde0fb70a54d2aba5843b17b41 |
---|---|
Resolution: | → fixed |
Status: | positive_review → closed |
Branch pushed to git repo; I updated commit sha1. New commits:
Switch from HTML to HTMLMath in text_control