Re: [sage-support] Re: Where do I report that 1-1=2 :)

2022-06-06 Thread William Stein
On Mon, Jun 6, 2022 at 3:58 AM Kwankyu  wrote:
>
> It seems the bug is in jupyter. Try putting the following
>
> $\verb|-_-|$
>
> in a markdown cell.

I did some tests, and it also seems to me that this is a bug in
Jupyter classic and JupyterLab.

Incidentally, it's not a bug in my reimplementation of Jupyter in
CoCalc.   I've reported this upstream:

https://github.com/jupyterlab/jupyterlab/issues/12657

William

>
> On Monday, June 6, 2022 at 12:51:00 AM UTC+9 egourg...@gmail.com wrote:
>>
>> Indeed, in Jupyter or Jupyterlab, the underscore is rendered as a minus sign 
>> in %display latex mode.
>> For instance,
>>
>> %display latex
>> type(ZZ)
>>
>> returns
>>
>> <πšŒπš•πšŠπšœπšœ '𝚜𝚊𝚐𝚎.πš›πš’πš—πšπšœ.πš’πš—πšπšŽπšπšŽπš›βŽ―πš›πš’πš—πš.π™Έπš—πšπšŽπšπšŽπš›πšπš’πš—πšβŽ―πšŒπš•πšŠπšœπšœ'>
>>
>> while
>>
>> print(type(ZZ))
>>
>> gives
>>
>> 
>>
>> I don't know where the replacement of underscores by minus signs comes 
>> from...
>> Le dimanche 5 juin 2022 Γ  15:50:41 UTC+2, raymond@gmail.com a Γ©crit :
>>>
>>> show('1_1=',2)
>>> Works fine in console mode.
>>> In jupyter and jupyterlab:
>>>
>>> 1-1=2
>>>
>>> It seems to be auto-corrected; I see the correct output momentarily then
>>> it gets "corrected".
>>> Where should I report it?
>>>
>>> Sagemath 9.6
>>> Linux Mate
>>> Google chrome and Firefox
>>>
>>> rrogers
>>>
> --
> 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/e9f5d0d1-7097-46dd-83a0-64d0af35c699n%40googlegroups.com.



-- 
William (http://wstein.org)

-- 
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/CACLE5GBPeKURX2nxfiP5y2QcadMehs9KmLoWB95H99rozJj98A%40mail.gmail.com.


Re: [sage-support] Re: Where do I report that 1-1=2 :)

2022-06-06 Thread Ray Rogers
It's strange that I see the output is temporarily correct and then gets 
replaced; you have to pay attention,Β  it's fast.Β  Like there is a 
censor/autocorrect kicking in after a write has taken plane.
Can I put ..verb.. in a code cell?Β  I am trying to troubleshoot/track 
results.


On 6/6/22 06:58, Kwankyu wrote:


It seems the bug is in jupyter. Try putting the following

$\verb|-_-|$

in a markdown cell.

On Monday, June 6, 2022 at 12:51:00 AM UTC+9 egourg...@gmail.com wrote:

Indeed, in Jupyter or Jupyterlab, the underscore is rendered as a
minus sign in %display latex mode.
For instance,

%display latex
type(ZZ)

returns

<πšŒπš•πšŠπšœπšœ
'𝚜𝚊𝚐𝚎.πš›πš’πš—πšπšœ.πš’πš—πšπšŽπšπšŽπš›βŽ―πš›πš’πš—πš.π™Έπš—πšπšŽπšπšŽπš›πšπš’πš—πšβŽ―πšŒπš•πšŠπšœπšœ'>

while

print(type(ZZ))

gives



I don't know where the replacement of underscores by minus signs
comes from...
Le dimanche 5 juin 2022 Γ  15:50:41 UTC+2, raymond@gmail.com a
Γ©critΒ :

show('1_1=',2)
Works fine in console mode.
In jupyter and jupyterlab:

1-1=2

It seems to be auto-corrected; I see the correct output
momentarily then
it gets "corrected".
Where should I report it?

Sagemath 9.6
Linux Mate
Google chrome and Firefox

rrogers

--
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/e9f5d0d1-7097-46dd-83a0-64d0af35c699n%40googlegroups.com 
.


--
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/bd561db4-aaac-ac20-5a91-20bcc5d67ccd%40gmail.com.


[sage-support] Re: Where do I report that 1-1=2 :)

2022-06-06 Thread Kwankyu
It seems the bug is in jupyter. Try putting the following

$\verb|-_-|$

in a markdown cell.

On Monday, June 6, 2022 at 12:51:00 AM UTC+9 egourg...@gmail.com wrote:

> Indeed, in Jupyter or Jupyterlab, the underscore is rendered as a minus 
> sign in %display latex mode.
> For instance, 
>
> %display latex
> type(ZZ)
>
> returns
>
> <πšŒπš•πšŠπšœπšœ 
> '𝚜𝚊𝚐𝚎.πš›πš’πš—πšπšœ.πš’πš—πšπšŽπšπšŽπš›βŽ―πš›πš’πš—πš.π™Έπš—πšπšŽπšπšŽπš›πšπš’πš—πšβŽ―πšŒπš•πšŠπšœπšœ'>
>
> while 
>
> print(type(ZZ))
>
> gives
>
> 
>
> I don't know where the replacement of underscores by minus signs comes 
> from...
> Le dimanche 5 juin 2022 Γ  15:50:41 UTC+2, raymond@gmail.com a Γ©crit :
>
>> show('1_1=',2) 
>> Works fine in console mode. 
>> In jupyter and jupyterlab: 
>>
>> 1-1=2 
>>
>> It seems to be auto-corrected; I see the correct output momentarily then 
>> it gets "corrected". 
>> Where should I report it? 
>>
>> Sagemath 9.6 
>> Linux Mate 
>> Google chrome and Firefox 
>>
>> rrogers 
>>
>>

-- 
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/e9f5d0d1-7097-46dd-83a0-64d0af35c699n%40googlegroups.com.


Re: [sage-support] Re: Where do I report that 1-1=2 :)

2022-06-05 Thread Ray Rogers

Thanks for the pointer:
%display plain
Clears it up, I justΒ  have to (remember to) switch back and forth.

On 6/5/22 11:51, Eric Gourgoulhon wrote:
Indeed, in Jupyter or Jupyterlab, the underscore is rendered as a 
minus sign in %display latex mode.

For instance,

%display latex
type(ZZ)

returns

<πšŒπš•πšŠπšœπšœ 
'𝚜𝚊𝚐𝚎.πš›πš’πš—πšπšœ.πš’πš—πšπšŽπšπšŽπš›βŽ―πš›πš’πš—πš.π™Έπš—πšπšŽπšπšŽπš›πšπš’πš—πšβŽ―πšŒπš•πšŠπšœπšœ'>


while

print(type(ZZ))

gives



I don't know where the replacement of underscores by minus signs comes 
from...

Le dimanche 5 juin 2022 Γ  15:50:41 UTC+2, raymond@gmail.com a Γ©critΒ :

show('1_1=',2)
Works fine in console mode.
In jupyter and jupyterlab:

1-1=2

It seems to be auto-corrected; I see the correct output
momentarily then
it gets "corrected".
Where should I report it?

Sagemath 9.6
Linux Mate
Google chrome and Firefox

rrogers

--
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/eed42bec-6f61-4280-8ccf-b244b6eb77een%40googlegroups.com 
.


--
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/158c918d-6b28-a313-1b76-33bae1a84551%40gmail.com.


[sage-support] Re: Where do I report that 1-1=2 :)

2022-06-05 Thread Eric Gourgoulhon
Indeed, in Jupyter or Jupyterlab, the underscore is rendered as a minus 
sign in %display latex mode.
For instance, 

%display latex
type(ZZ)

returns

<πšŒπš•πšŠπšœπšœ 
'𝚜𝚊𝚐𝚎.πš›πš’πš—πšπšœ.πš’πš—πšπšŽπšπšŽπš›βŽ―πš›πš’πš—πš.π™Έπš—πšπšŽπšπšŽπš›πšπš’πš—πšβŽ―πšŒπš•πšŠπšœπšœ'>

while 

print(type(ZZ))

gives



I don't know where the replacement of underscores by minus signs comes 
from...
Le dimanche 5 juin 2022 Γ  15:50:41 UTC+2, raymond@gmail.com a Γ©crit :

> show('1_1=',2)
> Works fine in console mode.
> In jupyter and jupyterlab:
>
> 1-1=2
>
> It seems to be auto-corrected; I see the correct output momentarily then
> it gets "corrected".
> Where should I report it?
>
> Sagemath 9.6
> Linux Mate
> Google chrome and Firefox
>
> rrogers
>
>

-- 
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/eed42bec-6f61-4280-8ccf-b244b6eb77een%40googlegroups.com.