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

2024-02-15 Thread Nils Bruin
On Thursday 15 February 2024 at 17:02:14 UTC-8 Dima Pasechnik wrote: but that's sphinx (Python), not jupyter. I see. The page I linked to is from Jupyter{book} which is, despite the similarity in name, not the jupyter notebook server. -- You received this message because you are subscribed

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

2024-02-15 Thread Dima Pasechnik
On Thu, Feb 15, 2024 at 11:56 PM Nils Bruin wrote: > On Thursday 15 February 2024 at 13:19:47 UTC-8 Michael Orlitzky wrote: > > > The notebook release process minifies all of its javascript code. The > bit that sets the MathJax options is in there somewhere but good luck > finding it. > > Well,

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

2024-02-15 Thread Nils Bruin
On Thursday 15 February 2024 at 13:19:47 UTC-8 Michael Orlitzky wrote: The notebook release process minifies all of its javascript code. The bit that sets the MathJax options is in there somewhere but good luck finding it. Well, the text in the tip looks more like config file content than

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

2024-02-15 Thread Dima Pasechnik
https://discourse.jupyter.org/t/notebook-with-mathjax-without-internet-connection/23958 On Thursday, February 15, 2024 at 5:37:31 PM UTC Matthias Koeppe wrote: > I would suggest to raise the question what the best practices for offline > deployment are with the Jupyter project. > > On Thursday,

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

2024-02-15 Thread Michael Orlitzky
On Thu, 2024-02-15 at 13:13 -0800, Nils Bruin wrote: > According to the jupyter notebook documentation: > > https://jupyterbook.org/en/stable/content/math.html > > it should be possible to switch jupyter from using mathjax 2 to mathjax 3 > by some configuration option (no clue where those

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

2024-02-15 Thread Nils Bruin
According to the jupyter notebook documentation: https://jupyterbook.org/en/stable/content/math.html it should be possible to switch jupyter from using mathjax 2 to mathjax 3 by some configuration option (no clue where those configuration options would go, and no indication is given in the tip

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

2024-02-15 Thread Matthias Koeppe
I would suggest to raise the question what the best practices for offline deployment are with the Jupyter project. On Thursday, February 15, 2024 at 9:30:10 AM UTC-8 Eric Gourgoulhon wrote: > Le jeudi 15 février 2024 à 13:36:46 UTC+1, Dima Pasechnik a écrit : > > A possible solution does not

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

2024-02-15 Thread Eric Gourgoulhon
Le jeudi 15 février 2024 à 13:36:46 UTC+1, Dima Pasechnik a écrit : A possible solution does not involve changing Sage/Jupyter config. It's by capturing http requests to CDN and replacing them with the local resources. Thank you Dima! Could you indicate how to do this? (looks quite technical

[sage-devel] A guide on choosing an exception for sage developers

2024-02-15 Thread Kwankyu Lee
We are about to ship https://github.com/sagemath/sage/pull/37311 which adds a guide on choosing exceptions in sage context. Please come and review. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop

Re: [sage-devel] Unify error for trying to invert non-invertible elements

2024-02-15 Thread Kwankyu Lee
We are about to ship https://github.com/sagemath/sage/pull/37311 which adds a guide on choosing exceptions in sage context. Please come and review. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop

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

2024-02-15 Thread Dima Pasechnik
A possible solution does not involve changing Sage/Jupyter config. It's by capturing http requests to CDN and replacing them with the local resources. See e.g. https://discourse.jupyter.org/t/running-voila-without-internet/13823/3 where this is proposed for another MathJax-dependent project.

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

2024-02-15 Thread Eric Gourgoulhon
Le jeudi 15 février 2024 à 11:20:40 UTC+1, Kwankyu Lee a écrit : With the previous version of Jupyterlab shipped with Sage 10.2, the system's MathJax was used. Can't we tweak the new Jupyterlab shipped with Sage 10.3 to use the system's MathJax as well? We don't do that. Perhaps tweaking is

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

2024-02-15 Thread Dima Pasechnik
On 15 February 2024 10:20:39 GMT, Kwankyu Lee wrote: > > >With the previous version of Jupyterlab shipped with Sage 10.2, the >system's MathJax was used. > >Can't we tweak the new Jupyterlab shipped with Sage 10.3 to use the >system's MathJax as well? > > >We don't do that. Perhaps tweaking

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

2024-02-15 Thread Kwankyu Lee
I guess that before notebook 7, jupyter vendored mathjax with it, but after notebook 7, jupyter only uses cdn. This sounds a strange policy from Jupyter, since it prevents people from using notebooks offline. Are you sure about this? No. I would be happy if it is configurable as Dima

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

2024-02-15 Thread Kwankyu Lee
With the previous version of Jupyterlab shipped with Sage 10.2, the system's MathJax was used. Can't we tweak the new Jupyterlab shipped with Sage 10.3 to use the system's MathJax as well? We don't do that. Perhaps tweaking is more severe sin than sage vendoring jupyter, from Dima's

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

2024-02-15 Thread Dima Pasechnik
On 15 February 2024 09:18:06 GMT, Eric Gourgoulhon wrote: >Le jeudi 15 février 2024 à 04:54:42 UTC+1, Kwankyu Lee a écrit : > > >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

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

2024-02-15 Thread Eric Gourgoulhon
Le jeudi 15 février 2024 à 04:54:42 UTC+1, Kwankyu Lee a écrit : 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) OK, thanks for the feedback! Hence this is not a