Re: [sage-devel] No MathJax display in Sage 10.3.beta notebooks when offline

2024-02-14 Thread Kwankyu Lee


On Thursday, February 15, 2024 at 3:18:06 AM UTC+9 Eric Gourgoulhon wrote:

Le mercredi 14 février 2024 à 18:21:04 UTC+1, Matthias Koeppe a écrit :

You  may recall that we use jupyterlab_mathjax2 because of the discussion 
in https://github.com/sagemath/sage/pull/36129#issuecomment-1729218062


Thanks for reminding me about this. Then I guess the question is: why 
Jupyterlab in Sage 10.3.beta8 is using MathJax 2.7.7 (available only 
online) and not the system's MathJax (2.7.9) ? Again, there was no such 
issue with Sage 10.2. 


I checked again on mac. Yes, jupyterlab (and notebook 7 as well) of Sage 
10.3.beta8 fails in loading mathjax 2.7.7. (Before it worked because of the 
cache, I guess)

It seems that jupyterlab(notebook 7) only uses mathjax cdn. (As far as I 
know, jupyter never used system mathjax or sage mathjax). 

I guess that before notebook 7, jupyter vendored mathjax with it, but after 
notebook 7, jupyter only uses cdn.  Hence there is nothing to do on sage 
side. 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/6a427ab7-55f7-4d64-a185-bb0a36d7a6c6n%40googlegroups.com.


Re: [sage-devel] Incorrect result for `sum(1/factorial(n**2),n,1,oo)`

2024-02-14 Thread Dima Pasechnik
I've filed https://sourceforge.net/p/maxima/bugs/4262/

On Wed, Feb 14, 2024 at 7:14 PM Dima Pasechnik  wrote:

>
>
> On Wed, Feb 14, 2024 at 6:12 PM Oscar Benjamin 
> wrote:
>
>> Maxima's simplify_sum function produces something similar looking:
>>
>> (%i4) load("simplify_sum");
>> (%o4) "/usr/share/maxima/5.45.1/share/solve_rec/simplify_sum.mac"
>>
>> (%i5) sum(1/factorial(n^2), n, 1, inf), simpsum;
>> (%o5) 'sum(1/(n^2)!,n,1,inf)
>>
>> (%i6) simplify_sum(%);
>>
>
> Oh, I see - I missed an explicit call to simplify_sum.
>
> 1/'product(n^2+%,%,1,2*n+1) non-rational term ratio to nusum
>> 1/'product(n^2+%,%,1,2*n+1) non-rational term ratio to nusum
>> (%o6) %f[1,4]([1],[1-%i,%i+1,1-sqrt(2)*%i,sqrt(2)*%i+1],1)
>>
>
> It seems to be a bug in  simplify_sum() - nusum can't do it (
> "non-rational term ratio to nusum")
> indeed, it's obvious that the sum is not hypergeometric, as the consequent
> terms ratio is not of the right type,
> so it does try something more clever - but fails.
>
> Dima
>
>>
>> --
>> Oscar
>>
>> On Wed, 14 Feb 2024 at 17:52, Dima Pasechnik  wrote:
>> >
>> > It appears to come from Maxima, but I have trouble reproducing this in
>> Maxima.
>> > Perhaps it's a bug in the Maxima interface?
>> > Is there a direct way to see how Maxima is called in this instance?
>> >
>> > Dima
>> >
>> >
>> > On Mon, Feb 12, 2024 at 2:53 PM Georgi Guninski 
>> wrote:
>> >>
>> >> There is discussion about this on mathoverlow [1]:
>> >>
>> >> The closed form of `sum(1/factorial(n**2),n,1,oo)` doesn't appear
>> >> correct and it contradicts numerical computations, including
>> verification
>> >> with mpmath.
>> >>
>> >> Session:
>> >>
>> >> sage: import mpmath
>> >> sage: su4=sum(1/factorial(n**2),n,1,oo);su4
>> >> hypergeometric((1,), (-I + 1, I + 1, -I*sqrt(2) + 1, I*sqrt(2) + 1), 1)
>> >> sage: CC(su4)
>> >> 1.17227289255719 - 7.88860905221012e-31*I
>> >> sage: mpmath.hyper((1,), (-I + 1, I + 1, -I*sqrt(2) + 1, I*sqrt(2) +
>> 1), 1)
>> >> mpc(real='1.1722728925571919', imag='-6.9025329206838533e-31')
>> >> sage: su5=sum(1/factorial(i**2) for i in range(1,100))
>> >> sage: CC(su5)
>> >> 1.04166942239864
>> >>
>> >> sage: mpmath.nsum(lambda n:  1/mpmath.gamma(1+n**2),[1,mpmath.inf])
>> >> mpf('1.0416694223986369')
>> >>
>> >>
>> >> [1]:
>> https://mathoverflow.net/questions/463964/factorial-series-jd-sum-n-1-infty-frac1nd-and-hypergeometric-fu
>> >>
>> >> --
>> >> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/sage-devel/CAGUWgD8FTWhurhrHbs5d_7DE0FL4f4bb_MCE6d7B%3DKZdsmC4Ew%40mail.gmail.com
>> .
>> >
>> > --
>> > 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/sage-devel/CAAWYfq2hSxdzoiaNvOLPCur3_AB1-mpPjsMFhdurTcUrz31T9Q%40mail.gmail.com
>> .
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/sage-devel/CAHVvXxTJNfBgjtjFCZJcd6rjizPVDn9bc7rhjS0FoTwd5tJ46g%40mail.gmail.com
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAAWYfq1vvTY79M%3D49sh44rZw57ecDJ9GCxzvxDAnKSKP_0ko%2BA%40mail.gmail.com.


Re: [sage-devel] Incorrect result for `sum(1/factorial(n**2),n,1,oo)`

2024-02-14 Thread Dima Pasechnik
On Wed, Feb 14, 2024 at 6:12 PM Oscar Benjamin 
wrote:

> Maxima's simplify_sum function produces something similar looking:
>
> (%i4) load("simplify_sum");
> (%o4) "/usr/share/maxima/5.45.1/share/solve_rec/simplify_sum.mac"
>
> (%i5) sum(1/factorial(n^2), n, 1, inf), simpsum;
> (%o5) 'sum(1/(n^2)!,n,1,inf)
>
> (%i6) simplify_sum(%);
>

Oh, I see - I missed an explicit call to simplify_sum.

1/'product(n^2+%,%,1,2*n+1) non-rational term ratio to nusum
> 1/'product(n^2+%,%,1,2*n+1) non-rational term ratio to nusum
> (%o6) %f[1,4]([1],[1-%i,%i+1,1-sqrt(2)*%i,sqrt(2)*%i+1],1)
>

It seems to be a bug in  simplify_sum() - nusum can't do it ( "non-rational
term ratio to nusum")
indeed, it's obvious that the sum is not hypergeometric, as the consequent
terms ratio is not of the right type,
so it does try something more clever - but fails.

Dima

>
> --
> Oscar
>
> On Wed, 14 Feb 2024 at 17:52, Dima Pasechnik  wrote:
> >
> > It appears to come from Maxima, but I have trouble reproducing this in
> Maxima.
> > Perhaps it's a bug in the Maxima interface?
> > Is there a direct way to see how Maxima is called in this instance?
> >
> > Dima
> >
> >
> > On Mon, Feb 12, 2024 at 2:53 PM Georgi Guninski 
> wrote:
> >>
> >> There is discussion about this on mathoverlow [1]:
> >>
> >> The closed form of `sum(1/factorial(n**2),n,1,oo)` doesn't appear
> >> correct and it contradicts numerical computations, including
> verification
> >> with mpmath.
> >>
> >> Session:
> >>
> >> sage: import mpmath
> >> sage: su4=sum(1/factorial(n**2),n,1,oo);su4
> >> hypergeometric((1,), (-I + 1, I + 1, -I*sqrt(2) + 1, I*sqrt(2) + 1), 1)
> >> sage: CC(su4)
> >> 1.17227289255719 - 7.88860905221012e-31*I
> >> sage: mpmath.hyper((1,), (-I + 1, I + 1, -I*sqrt(2) + 1, I*sqrt(2) +
> 1), 1)
> >> mpc(real='1.1722728925571919', imag='-6.9025329206838533e-31')
> >> sage: su5=sum(1/factorial(i**2) for i in range(1,100))
> >> sage: CC(su5)
> >> 1.04166942239864
> >>
> >> sage: mpmath.nsum(lambda n:  1/mpmath.gamma(1+n**2),[1,mpmath.inf])
> >> mpf('1.0416694223986369')
> >>
> >>
> >> [1]:
> https://mathoverflow.net/questions/463964/factorial-series-jd-sum-n-1-infty-frac1nd-and-hypergeometric-fu
> >>
> >> --
> >> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/CAGUWgD8FTWhurhrHbs5d_7DE0FL4f4bb_MCE6d7B%3DKZdsmC4Ew%40mail.gmail.com
> .
> >
> > --
> > 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/CAAWYfq2hSxdzoiaNvOLPCur3_AB1-mpPjsMFhdurTcUrz31T9Q%40mail.gmail.com
> .
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/CAHVvXxTJNfBgjtjFCZJcd6rjizPVDn9bc7rhjS0FoTwd5tJ46g%40mail.gmail.com
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAAWYfq1YYhcDbFw2pM%2BCBSqfXXZW5hE1WbPT0wyp9M38MEaJ7Q%40mail.gmail.com.


Re: [sage-devel] No MathJax display in Sage 10.3.beta notebooks when offline

2024-02-14 Thread Eric Gourgoulhon
Le mercredi 14 février 2024 à 18:21:04 UTC+1, Matthias Koeppe a écrit :

You  may recall that we use jupyterlab_mathjax2 because of the discussion 
in https://github.com/sagemath/sage/pull/36129#issuecomment-1729218062


Thanks for reminding me about this. Then I guess the question is: why 
Jupyterlab in Sage 10.3.beta8 is using MathJax 2.7.7 (available only 
online) and not the system's MathJax (2.7.9) ? Again, there was no such 
issue with Sage 10.2. 
 
 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/5c672a08-3f82-4e55-a2f5-795558b386cbn%40googlegroups.com.


Re: [sage-devel] Incorrect result for `sum(1/factorial(n**2),n,1,oo)`

2024-02-14 Thread Oscar Benjamin
Maxima's simplify_sum function produces something similar looking:

(%i4) load("simplify_sum");
(%o4) "/usr/share/maxima/5.45.1/share/solve_rec/simplify_sum.mac"

(%i5) sum(1/factorial(n^2), n, 1, inf), simpsum;
(%o5) 'sum(1/(n^2)!,n,1,inf)

(%i6) simplify_sum(%);
1/'product(n^2+%,%,1,2*n+1) non-rational term ratio to nusum
1/'product(n^2+%,%,1,2*n+1) non-rational term ratio to nusum
(%o6) %f[1,4]([1],[1-%i,%i+1,1-sqrt(2)*%i,sqrt(2)*%i+1],1)

--
Oscar

On Wed, 14 Feb 2024 at 17:52, Dima Pasechnik  wrote:
>
> It appears to come from Maxima, but I have trouble reproducing this in Maxima.
> Perhaps it's a bug in the Maxima interface?
> Is there a direct way to see how Maxima is called in this instance?
>
> Dima
>
>
> On Mon, Feb 12, 2024 at 2:53 PM Georgi Guninski  wrote:
>>
>> There is discussion about this on mathoverlow [1]:
>>
>> The closed form of `sum(1/factorial(n**2),n,1,oo)` doesn't appear
>> correct and it contradicts numerical computations, including verification
>> with mpmath.
>>
>> Session:
>>
>> sage: import mpmath
>> sage: su4=sum(1/factorial(n**2),n,1,oo);su4
>> hypergeometric((1,), (-I + 1, I + 1, -I*sqrt(2) + 1, I*sqrt(2) + 1), 1)
>> sage: CC(su4)
>> 1.17227289255719 - 7.88860905221012e-31*I
>> sage: mpmath.hyper((1,), (-I + 1, I + 1, -I*sqrt(2) + 1, I*sqrt(2) + 1), 1)
>> mpc(real='1.1722728925571919', imag='-6.9025329206838533e-31')
>> sage: su5=sum(1/factorial(i**2) for i in range(1,100))
>> sage: CC(su5)
>> 1.04166942239864
>>
>> sage: mpmath.nsum(lambda n:  1/mpmath.gamma(1+n**2),[1,mpmath.inf])
>> mpf('1.0416694223986369')
>>
>>
>> [1]:  
>> https://mathoverflow.net/questions/463964/factorial-series-jd-sum-n-1-infty-frac1nd-and-hypergeometric-fu
>>
>> --
>> 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 view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-devel/CAGUWgD8FTWhurhrHbs5d_7DE0FL4f4bb_MCE6d7B%3DKZdsmC4Ew%40mail.gmail.com.
>
> --
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/CAAWYfq2hSxdzoiaNvOLPCur3_AB1-mpPjsMFhdurTcUrz31T9Q%40mail.gmail.com.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAHVvXxTJNfBgjtjFCZJcd6rjizPVDn9bc7rhjS0FoTwd5tJ46g%40mail.gmail.com.


Re: [sage-devel] Incorrect result for `sum(1/factorial(n**2),n,1,oo)`

2024-02-14 Thread Dima Pasechnik
It appears to come from Maxima, but I have trouble reproducing this in
Maxima.
Perhaps it's a bug in the Maxima interface?
Is there a direct way to see how Maxima is called in this instance?

Dima


On Mon, Feb 12, 2024 at 2:53 PM Georgi Guninski  wrote:

> There is discussion about this on mathoverlow [1]:
>
> The closed form of `sum(1/factorial(n**2),n,1,oo)` doesn't appear
> correct and it contradicts numerical computations, including verification
> with mpmath.
>
> Session:
>
> sage: import mpmath
> sage: su4=sum(1/factorial(n**2),n,1,oo);su4
> hypergeometric((1,), (-I + 1, I + 1, -I*sqrt(2) + 1, I*sqrt(2) + 1), 1)
> sage: CC(su4)
> 1.17227289255719 - 7.88860905221012e-31*I
> sage: mpmath.hyper((1,), (-I + 1, I + 1, -I*sqrt(2) + 1, I*sqrt(2) + 1), 1)
> mpc(real='1.1722728925571919', imag='-6.9025329206838533e-31')
> sage: su5=sum(1/factorial(i**2) for i in range(1,100))
> sage: CC(su5)
> 1.04166942239864
>
> sage: mpmath.nsum(lambda n:  1/mpmath.gamma(1+n**2),[1,mpmath.inf])
> mpf('1.0416694223986369')
>
>
> [1]:
> https://mathoverflow.net/questions/463964/factorial-series-jd-sum-n-1-infty-frac1nd-and-hypergeometric-fu
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/CAGUWgD8FTWhurhrHbs5d_7DE0FL4f4bb_MCE6d7B%3DKZdsmC4Ew%40mail.gmail.com
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAAWYfq2hSxdzoiaNvOLPCur3_AB1-mpPjsMFhdurTcUrz31T9Q%40mail.gmail.com.


Re: [sage-devel] No MathJax display in Sage 10.3.beta notebooks when offline

2024-02-14 Thread Matthias Koeppe
You  may recall that we use jupyterlab_mathjax2 because of the discussion 
in https://github.com/sagemath/sage/pull/36129#issuecomment-1729218062



On Wednesday, February 14, 2024 at 8:04:30 AM UTC-8 Eric Gourgoulhon wrote:

> Le mercredi 14 février 2024 à 15:09:27 UTC+1, Eric Gourgoulhon a écrit :
>
> The partial conclusion is thus: 
>
> - Sage 10.2 uses Ubuntu 22.04's MathJax (v2.7.9), so there is no issue 
> when the computer is offline.
> - for some reason, Sage 10.3.beta* refuses to use Ubuntu 22.04's MathJax 
> and the MathJax 3.2.0 shipped with Sage is not installed/used either. 
>   
>
>
> Sage's MathJax 3.2.0 is definitely installed in my Sage 10.3.beta8 root 
> tree for if I look at the locally generated reference manual (i.e. 
> local/share/doc/sage/html/en/reference/index.html), the math formulas there 
> are rendered by MathJax 3.2.0 (as one can see by right-clicking on them and 
> selecting "About MathJax"); this works even in the offline mode.
>
> So it appears that Sage's MathJax 3.2.0 is used for the documentation but 
> not for Jupyter/Jupyterlab notebooks.
>   
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/5d247114-3179-479a-b00c-a16057540524n%40googlegroups.com.


Re: [sage-devel] No MathJax display in Sage 10.3.beta notebooks when offline

2024-02-14 Thread Eric Gourgoulhon
Le mercredi 14 février 2024 à 15:09:27 UTC+1, Eric Gourgoulhon a écrit :

The partial conclusion is thus: 

- Sage 10.2 uses Ubuntu 22.04's MathJax (v2.7.9), so there is no issue when 
the computer is offline.
- for some reason, Sage 10.3.beta* refuses to use Ubuntu 22.04's MathJax 
and the MathJax 3.2.0 shipped with Sage is not installed/used either. 
  


Sage's MathJax 3.2.0 is definitely installed in my Sage 10.3.beta8 root 
tree for if I look at the locally generated reference manual (i.e. 
local/share/doc/sage/html/en/reference/index.html), the math formulas there 
are rendered by MathJax 3.2.0 (as one can see by right-clicking on them and 
selecting "About MathJax"); this works even in the offline mode.

So it appears that Sage's MathJax 3.2.0 is used for the documentation but 
not for Jupyter/Jupyterlab notebooks.
  

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/e22cc827-23ea-4446-a297-5738caf59dd5n%40googlegroups.com.


Re: [sage-devel] No MathJax display in Sage 10.3.beta notebooks when offline

2024-02-14 Thread Eric Gourgoulhon
Le mercredi 14 février 2024 à 15:39:05 UTC+1, Kwankyu Lee a écrit :

On Wednesday, February 14, 2024 at 10:55:41 PM UTC+9 Eric Gourgoulhon wrote:

Le mercredi 14 février 2024 à 14:51:01 UTC+1, Eric Gourgoulhon a écrit :

What is puzzling is that MathJax 3.2.0 seems to have been successfully 
installed in the Sage tree during the install of Sage 10.3.beta*, cf. the 
attached log (SAGE_ROOT/logs/pkgs/mathjax-3.2.0.log), 


Well, maybe not: the log contains:

Package 'mathjax' is currently not installed
No legacy uninstaller found for 'mathjax'; nothing to do


The log below this says mathjax 3.2.0 was installed. 


Indeed, but the indicated CPU time looks very short.
FWIW, here is the output of 
find . -name "*mathjax*"
in my Sage 10.3.beta8 root tree:

./build/pkgs/mathjax
./build/pkgs/jupyterlab_mathjax2
./src/doc/en/reference/spkg/mathjax.rst
./src/doc/en/reference/spkg/jupyterlab_mathjax2.rst
./logs/pkgs/jupyterlab_mathjax2-4.0.0.log
./logs/pkgs/mathjax-3.2.0.log
./upstream/mathjax-3.2.0.tar.gz
./upstream/jupyterlab_mathjax2-4.0.0-py3-none-any.whl
./local/var/lib/sage/venv-python3.10/var/lib/sage/installed/jupyterlab_mathjax2-4.0.0
./local/var/lib/sage/venv-python3.10/var/lib/sage/wheels/jupyterlab_mathjax2-4.0.0-py3-none-any.whl
./local/var/lib/sage/venv-python3.10/var/lib/sage/scripts/jupyterlab_mathjax2
./local/var/lib/sage/venv-python3.10/share/jupyter/lab/schemas/@jupyterlab/mathjax-extension
./local/var/lib/sage/venv-python3.10/share/jupyter/nbconvert/templates/base/mathjax.html.j2
./local/var/lib/sage/venv-python3.10/share/jupyter/labextensions/@jupyterlab/mathjax2-extension
./local/var/lib/sage/venv-python3.10/lib/python3.10/site-packages/jupyterlab/schemas/@jupyterlab/mathjax-extension
./local/var/lib/sage/venv-python3.10/lib/python3.10/site-packages/jupyterlab_mathjax2-4.0.0.dist-info
./local/var/lib/sage/venv-python3.10/lib/python3.10/site-packages/jupyterlab_mathjax2
./local/var/lib/sage/venv-python3.10/lib/python3.10/site-packages/sphinx/ext/__pycache__/mathjax.cpython-310.pyc
./local/var/lib/sage/venv-python3.10/lib/python3.10/site-packages/sphinx/ext/mathjax.py
./local/var/lib/sage/installed/mathjax-3.2.0
./local/share/mathjax
./local/share/mathjax/mathjax
./local/share/giac/doc/mathjax.sty
./local/share/doc/sage/doctrees/en/reference/spkg/jupyterlab_mathjax2.doctree
./local/share/doc/sage/doctrees/en/reference/spkg/mathjax.doctree
./local/share/doc/sage/html/en/reference/spkg/_sources/mathjax.rst.txt
./local/share/doc/sage/html/en/reference/spkg/_sources/jupyterlab_mathjax2.rst.txt
./local/share/doc/sage/html/en/reference/spkg/jupyterlab_mathjax2.html
./local/share/doc/sage/html/en/reference/spkg/mathjax.html

and that of find . -name "*mathjax-3*" :

./logs/pkgs/mathjax-3.2.0.log
./upstream/mathjax-3.2.0.tar.gz
./local/var/lib/sage/installed/mathjax-3.2.0

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/0645f7e5-9f09-49ee-a53a-6c7249a9b396n%40googlegroups.com.


Re: [sage-devel] No MathJax display in Sage 10.3.beta notebooks when offline

2024-02-14 Thread Dima Pasechnik
That's why we should just stop shipping jupyterlab, and instead use one offered 
by the OS or some other standard Jupyter way. 

Here we are trying to solve already solved problems, what's the point of it?


On 14 February 2024 14:39:05 GMT, Kwankyu Lee  wrote:
>
>
>On Wednesday, February 14, 2024 at 10:55:41 PM UTC+9 Eric Gourgoulhon wrote:
>
>Le mercredi 14 février 2024 à 14:51:01 UTC+1, Eric Gourgoulhon a écrit :
>
>What is puzzling is that MathJax 3.2.0 seems to have been successfully 
>installed in the Sage tree during the install of Sage 10.3.beta*, cf. the 
>attached log (SAGE_ROOT/logs/pkgs/mathjax-3.2.0.log), 
>
>
>Well, maybe not: the log contains:
>
>Package 'mathjax' is currently not installed
>No legacy uninstaller found for 'mathjax'; nothing to do
>
>
>The log below this says mathjax 3.2.0 was installed. 
>
>-- 
>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 view this discussion on the web visit 
>https://groups.google.com/d/msgid/sage-devel/5b52e3ee-c409-4721-9689-424c27648dadn%40googlegroups.com.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/DA72C742-5F42-4366-80DB-0ECC38F3188B%40gmail.com.


Re: [sage-devel] No MathJax display in Sage 10.3.beta notebooks when offline

2024-02-14 Thread Kwankyu Lee


On Wednesday, February 14, 2024 at 10:55:41 PM UTC+9 Eric Gourgoulhon wrote:

Le mercredi 14 février 2024 à 14:51:01 UTC+1, Eric Gourgoulhon a écrit :

What is puzzling is that MathJax 3.2.0 seems to have been successfully 
installed in the Sage tree during the install of Sage 10.3.beta*, cf. the 
attached log (SAGE_ROOT/logs/pkgs/mathjax-3.2.0.log), 


Well, maybe not: the log contains:

Package 'mathjax' is currently not installed
No legacy uninstaller found for 'mathjax'; nothing to do


The log below this says mathjax 3.2.0 was installed. 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/5b52e3ee-c409-4721-9689-424c27648dadn%40googlegroups.com.


Re: [sage-devel] No MathJax display in Sage 10.3.beta notebooks when offline

2024-02-14 Thread Eric Gourgoulhon
Le mercredi 14 février 2024 à 14:51:01 UTC+1, Eric Gourgoulhon a écrit :


More precisely, the Ubuntu 22.04's libjs-mathjax is version 2.7.9. 
When the computer is online and I right-click on "About MathJax" in a 
displayed cell, I get "MathJax v2.7.7", which is not the system version...


If I do the same thing when the computer is offline with Sage 10.2, I get 
"MathJax v2.7.9", which is the system version. 
The partial conclusion is thus: 

- Sage 10.2 uses Ubuntu 22.04's MathJax (v2.7.9), so there is no issue when 
the computer is offline.
- for some reason, Sage 10.3.beta* refuses to use Ubuntu 22.04's MathJax 
and the MathJax 3.2.0 shipped with Sage is not installed/used either. 
   

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/8a163bfb-0b2c-483a-a5da-faf8b62361a4n%40googlegroups.com.


Re: [sage-devel] No MathJax display in Sage 10.3.beta notebooks when offline

2024-02-14 Thread Eric Gourgoulhon


Le mercredi 14 février 2024 à 14:51:01 UTC+1, Eric Gourgoulhon a écrit :

What is puzzling is that MathJax 3.2.0 seems to have been successfully 
installed in the Sage tree during the install of Sage 10.3.beta*, cf. the 
attached log (SAGE_ROOT/logs/pkgs/mathjax-3.2.0.log), 


Well, maybe not: the log contains:

Package 'mathjax' is currently not installed
No legacy uninstaller found for 'mathjax'; nothing to do


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/6e4b03e6-1d4f-4287-8668-81f5b46046ebn%40googlegroups.com.


Re: [sage-devel] No MathJax display in Sage 10.3.beta notebooks when offline

2024-02-14 Thread Eric Gourgoulhon


Le mercredi 14 février 2024 à 14:18:20 UTC+1, Eric Gourgoulhon a écrit :

Le mercredi 14 février 2024 à 14:13:04 UTC+1, Dima Pasechnik a écrit :

For off the grid working with MathJax, you need it locally installed. It 
might be that by default it doesn't happen, and MathJax is dynamically 
loaded from the net.


The Ubuntu packages libjs-mathjax and fonts-mathjax are installed on my 
system. 


More precisely, the Ubuntu 22.04's libjs-mathjax is version 2.7.9. 
When the computer is online and I right-click on "About MathJax" in a 
displayed cell, I get "MathJax v2.7.7", which is not the system version...
What is puzzling is that MathJax 3.2.0 seems to have been successfully 
installed in the Sage tree during the install of Sage 10.3.beta*, cf. the 
attached log (SAGE_ROOT/logs/pkgs/mathjax-3.2.0.log), but apparently it is 
not used in the notebook. 


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/5d5e1a02-edf2-4efa-9bec-be674e851f4fn%40googlegroups.com.
Using cached file /home/eric/sage/10.3/upstream/mathjax-3.2.0.tar.gz
mathjax-3.2.0

Setting up build directory for mathjax-3.2.0
Finished extraction
No patch files found in ../patches

Host system:
Linux tensor 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

C compiler: gcc
C compiler version:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.4.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-gcn/usr --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04) 

Package 'mathjax' is currently not installed
No legacy uninstaller found for 'mathjax'; nothing to do
src/mathjax -> /home/eric/sage/10.3/local/var/tmp/sage/build/mathjax-3.2.0/inst/home/eric/sage/10.3/local/share/mathjax

real	0m0.053s
user	0m0.009s
sys	0m0.041s
Moving package files from temporary location /home/eric/sage/10.3/local/var/tmp/sage/build/mathjax-3.2.0/inst to /home/eric/sage/10.3/local
Successfully installed mathjax-3.2.0
Deleting temporary build directory
/home/eric/sage/10.3/local/var/tmp/sage/build/mathjax-3.2.0
Finished installing mathjax-3.2.0


Re: [sage-devel] No MathJax display in Sage 10.3.beta notebooks when offline

2024-02-14 Thread Eric Gourgoulhon


Le mercredi 14 février 2024 à 14:13:04 UTC+1, Dima Pasechnik a écrit :

For off the grid working with MathJax, you need it locally installed. It 
might be that by default it doesn't happen, and MathJax is dynamically 
loaded from the net.


The Ubuntu packages libjs-mathjax and fonts-mathjax are installed on my 
system. Moreover, on the same computer, MathJax display works well when 
offline with Sage 10.2. 


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/8ef574c7-7156-4f67-849a-c0dfb4b3bd10n%40googlegroups.com.


Re: [sage-devel] No MathJax display in Sage 10.3.beta notebooks when offline

2024-02-14 Thread Dima Pasechnik
For off the grid working with MathJax, you need it locally installed. It might 
be that by default it doesn't happen, and MathJax is dynamically loaded from 
the net.



On 14 February 2024 12:47:52 GMT, Eric Gourgoulhon  
wrote:
>Hi,
>
>While working on a Sage 10.3.beta  notebook in a train without any internet 
>connection, I've noticed that there is no LaTeX rendering via MathJax, 
>neither in the markdown cells nor in the output cells within the scope of  
>%display latex. There is no such issue with Sage 10.2 and I've opened 
>https://github.com/sagemath/sage/issues/36914
>for this. 
>
>Apparently, the problem arises with Ubuntu 22.04, but not with macOS. It 
>would be nice to have more tests, possibly on various OS, to identify the 
>issue. Thanks for your feedback!
>
>Eric. 
>
>-- 
>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 view this discussion on the web visit 
>https://groups.google.com/d/msgid/sage-devel/4ab5d581-0ba9-4e30-9ad1-06250d66053an%40googlegroups.com.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/7451009B-032F-4B5C-AB33-6F4E7E8C1B9F%40gmail.com.


[sage-devel] Re: One year of Sage development on GitHub

2024-02-14 Thread 'Martin R' via sage-devel
The "math" activity might be useful, but the "documentation" label is 
currently also used for issues that have nothing to do with math.  So 
either relabel those or exclude "documentation".

On Tuesday 13 February 2024 at 08:34:32 UTC+1 Kwankyu Lee wrote:

On Monday, February 12, 2024 at 3:42:55 PM UTC+9 Matthias Koeppe wrote:

On Thursday, February 8, 2024 at 10:16:58 AM UTC-8 Matthias Koeppe wrote:

*2. Is our community aware of the sagemath/sage GitHub wiki?* 
https://github.com/sagemath/sage/wiki
- Are the contents of the wiki front page useful?


Meanwhile I have edited it a bit to offer "suggested activities".
(This is based on a version of the Trac wiki front page just before the 
transition to GitHub.


The content of the added section does not give new info and seems just 
visual noise to me...



 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/668fb402-4faa-4925-92b7-da8b3b8e0ad4n%40googlegroups.com.


[sage-devel] No MathJax display in Sage 10.3.beta notebooks when offline

2024-02-14 Thread Eric Gourgoulhon
Hi,

While working on a Sage 10.3.beta  notebook in a train without any internet 
connection, I've noticed that there is no LaTeX rendering via MathJax, 
neither in the markdown cells nor in the output cells within the scope of  
%display latex. There is no such issue with Sage 10.2 and I've opened 
https://github.com/sagemath/sage/issues/36914
for this. 

Apparently, the problem arises with Ubuntu 22.04, but not with macOS. It 
would be nice to have more tests, possibly on various OS, to identify the 
issue. Thanks for your feedback!

Eric. 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/4ab5d581-0ba9-4e30-9ad1-06250d66053an%40googlegroups.com.


[sage-devel] Re: feedback on construction functor for symmetric functions

2024-02-14 Thread 'Martin R' via sage-devel
Thank you!  To get a working prototype for the functional equations solver, 
the coercion issue with tensors is the most interesting issue.

I am already quite happy that it works with symmetric functions in one 
variable!

Apart from technicalities, it might then be interesting to explore whether 
we can improve on the set of equations we want to solve.  Interestingly, 
the example I had (line 912 in lazy_series_ring.py of the pull request) 
currently fails in an unexpected way }:-)

Liebe Grüße aus Bonn,

Martin
On Monday 12 February 2024 at 00:13:58 UTC+1 Travis Scrimshaw wrote:

> Hi Martin,
>I plan to look closely at this this week. Unfortunately I cannot offer 
> anything quick now.
>
> Best,
> Travis
>
>
> On Monday, February 12, 2024 at 2:42:52 AM UTC+9 Martin R wrote:
>
>> Apart from that, I think the last bit I need to do is to make the 
>> TensorProductFunctor inherit from MultivariateConstructionFunctor, to make 
>> coercion work for things like
>>
>> sage: h = SymmetricFunctions(ZZ).h()
>> sage: T = tensor([h, h])
>> sage: T.base_ring()
>> Integer Ring
>> sage: 1/2*T.an_element()
>>
>> (which currently raises TypeError: unsupported operand parent(s) for *: 
>> 'Rational Field' and 'Symmetric Functions over Integer Ring in the 
>> homogeneous basis # Symmetric Functions over Integer Ring in the 
>> homogeneous basis')
>>
>> Am I on the right track?
>>
>> Martin
>> On Sunday 11 February 2024 at 12:34:44 UTC+1 Martin R wrote:
>>
>>> At https://github.com/sagemath/sage/pull/37220, I implemented a (simple 
>>> minded) construction functor for symmetric functions.
>>>
>>> The only major user visible change should be that
>>>
>>> sage: sZ = SymmetricFunctions(ZZ).s()
>>> sage: sQ = SymmetricFunctions(QQ).s()
>>> sage: sZ[1,1] + sQ[2]
>>> s[1,1] + s[2]
>>>
>>> now works.  This, and a little bit more, is what I need for my lazy 
>>> symmetric functions project.
>>>
>>> Under the hood, the pull request replaces `corresponding_basis_over` 
>>> with a proper construction functor which, however, follows the same spirit: 
>>> every basis of symmetric functions has to provide a description on how to 
>>> create it, by storing the appropriate method names.
>>>
>>> There is a todo note by Darij Grinberg from 2013 that this is an ugly 
>>> hack, and I agree, but nobody came up with anything better in the last 11 
>>> years, so we might as well go with the idea which is working, at least for 
>>> the moment.
>>>
>>> There is one more uglyness I have to mention: I describe the functor as 
>>> a functor on the category of commutative rings, which is not true in 
>>> general.  For example, for Macdonald polynomials, the functor really is 
>>> from the category of commutative rings with two distinguished elements.  I 
>>> am guessing that creating a category RingsWithDistinguishedElements is a 
>>> bit much, and I wouldn't know how to do it.
>>>
>>> Comments (and, of course, also a review) would be greatly appreciated!
>>>
>>> Martin
>>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/d16f20e9-bf7a-46d8-984a-a5ffd3820081n%40googlegroups.com.