Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-02-02 Thread Matthias Koeppe
This looks like https://github.com/jupyter-widgets/ipywidgets/issues/1702 On Wednesday, February 2, 2022 at 8:33:18 PM UTC-8 Marc Culler wrote: > That sounds very mysterious. How can it create widgets if it cannot load > the javascript file that implements the widgets? Maybe the client finds

[sage-support] Re: Eigen spaces of algebraic matrices broken ?

2022-02-02 Thread Emmanuel Charpentier
Le mercredi 2 février 2022 à 22:15:00 UTC+1, Nils Bruin a écrit : On Monday, 31 January 2022 at 15:19:49 UTC-8 Emmanuel Charpentier wrote: > >> As advertised, an atempt at a minimal (non-)working example : >> >> # Reproducible minimal example >> with seed(0): M = matrix(AA, 3, 3, lambda u,v: AA.

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-02-02 Thread Marc Culler
That sounds very mysterious. How can it create widgets if it cannot load the javascript file that implements the widgets? Maybe the client finds the javascript file in some other path such as usr/local/jupyter and uses that file instead. Of course a self-contained app cannot rely on anything

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-02-02 Thread Matthias Koeppe
On my machine, macOS with Sage 9.5 compiled from source, I see the 404s too, but the widget from the notebook work anyway. On Wednesday, February 2, 2022 at 10:03:16 AM UTC-8 Marc Culler wrote: > I figured it out. > > * The root directory for the Tornado web application is > sage/venv/share/j

Re: [sage-support] init_printing from sympy is no longer working in SageCell

2022-02-02 Thread Andrey Novoseltsev
On Wednesday, 2 February 2022 at 14:35:35 UTC-7 dsfitz...@gmail.com wrote: > Thanks! I just discovered that there is a separate group for Sage Cell. > Oddly, the SageCell page links here for help! Apologies for not posting > there first. > This is on purpose - most questions people have are abou

Re: [sage-support] init_printing from sympy is no longer working in SageCell

2022-02-02 Thread Sean Fitzpatrick
Thanks! I just discovered that there is a separate group for Sage Cell. Oddly, the SageCell page links here for help! Apologies for not posting there first. On Wednesday, February 2, 2022 at 2:34:17 PM UTC-7 Andrey Novoseltsev wrote: > This is due to recent upgrade to Sage 9.5. I will try to hav

Re: [sage-support] init_printing from sympy is no longer working in SageCell

2022-02-02 Thread Andrey Novoseltsev
This is due to recent upgrade to Sage 9.5. I will try to have it fixed in a few hours or revert to 9.4 until I figure out the fix. On Wednesday, 2 February 2022 at 12:28:11 UTC-7 dsfitz...@gmail.com wrote: > Here is an example with Sage cells in context: > https://opentext.uleth.ca/Math3410/sec-

[sage-support] Re: Eigen spaces of algebraic matrices broken ?

2022-02-02 Thread Nils Bruin
On Monday, 31 January 2022 at 15:19:49 UTC-8 Emmanuel Charpentier wrote: > As advertised, an atempt at a minimal (non-)working example : > > # Reproducible minimal example > with seed(0): M = matrix(AA, 3, 3, lambda u,v: AA.random_element()) > # Working ring > WR = M.base_ring().algebraic_closure(

Re: [sage-support] init_printing from sympy is no longer working in SageCell

2022-02-02 Thread Sean Fitzpatrick
Here is an example with Sage cells in context: https://opentext.uleth.ca/Math3410/sec-kernel-image.html#p-283-part2 If I remove the init_printing() line, or change this to init_printing(use_latex=False), the code will run, but I lose the MathJax-formatted output. I can't tell if this is a bug i

Re: [sage-support] init_printing from sympy is no longer working in SageCell

2022-02-02 Thread Sean Fitzpatrick
This is in SageMathCell, rather than in a local installation of Sage. I don't think there's much I can do about what is running on here. [image: sagecell.png] On Wednesday, February 2, 2022 at 11:39:40 AM UTC-7 HG wrote: > I tried it in sage 9.2 nice printing. > > But in sage I use show(LatexEx

[sage-support] Re: Eigen spaces of algebraic matrices broken ?

2022-02-02 Thread 'Alan Stafford' via sage-support
Do you mean, V =vector(list(var("v0", n=2))+[SR(1)]) Also, what is E0? On Wednesday, February 2, 2022 at 6:08:20 PM UTC Emmanuel Charpentier wrote: > See lines #7-8 of the "Minimal example" : > > Le mercredi 2 février 2022 à 11:57:41 UTC+1, alan_thoma...@yahoo.co.uk a > écrit : > >> >> What is v0

Re: [sage-support] init_printing from sympy is no longer working in SageCell

2022-02-02 Thread Henri Girard
 I tried it in sage 9.2 nice printing. But in sage I use show(LatexExpr("r \mu \epsilon)) μϵ I am not sure that what you want (and naturaly first command in cell %display latex    in sage) One can even format text in a beautifull latex show(LatexExpr(r"This \ is \ \mu \ and \ \epsilon")

[sage-support] Re: init_printing from sympy is no longer working in SageCell

2022-02-02 Thread Emmanuel Charpentier
WorksForMe(TM) in Sage 9.5, in both Jupyter and Jupyterlab... HTH, Le mercredi 2 février 2022 à 18:42:48 UTC+1, dsfitz...@gmail.com a écrit : > I'm teaching a linear algebra course where we use the Sympy Python package > for a lot of the computations. This includes a PreTeXt textbook where there

[sage-support] Re: Eigen spaces of algebraic matrices broken ?

2022-02-02 Thread Emmanuel Charpentier
See lines #7-8 of the "Minimal example" : Le mercredi 2 février 2022 à 11:57:41 UTC+1, alan_thoma...@yahoo.co.uk a écrit : > > What is v0? When I run the above it isn't defined. > On Monday, January 31, 2022 at 11:19:49 PM UTC Emmanuel Charpentier wrote: > >> As advertised, an atempt at a minima

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-02-02 Thread Marc Culler
I figured it out. * The root directory for the Tornado web application is sage/venv/share/jupyter (determined by trial and error). * The path component in the url that the jupyter client uses to load the widget extension is /nbextensions/widgets/notebook/js/extension.js * There is no directo

[sage-support] init_printing from sympy is no longer working in SageCell

2022-02-02 Thread Sean Fitzpatrick
I'm teaching a linear algebra course where we use the Sympy Python package for a lot of the computations. This includes a PreTeXt textbook where there are Sage Cells throughout, with sample code supplied. Until today (I think it was working yesterday), I've had no trouble running code like the

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-02-02 Thread Marc Culler
Never mind. I must have accidentally tested with 9.4. Tornado is still returning a 404 when the notebook tries to load /nbextensions/widgets/notebook/js/extension.js. On Wednesday, February 2, 2022 at 9:36:10 AM UTC-6 Marc Culler wrote: > What I said above appears not to be correct. It looks

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-02-02 Thread Marc Culler
What I said above appears not to be correct. It looks like enabling the widgets extension with the instructions in the user_install page did work. I am now getting a widget with Sage 9.5. More testing is needed, but it looks promising. - Marc On Tuesday, February 1, 2022 at 9:21:23 PM UTC-6

[sage-support] Re: Eigen spaces of algebraic matrices broken ?

2022-02-02 Thread 'Alan Stafford' via sage-support
What is v0? When I run the above it isn't defined. On Monday, January 31, 2022 at 11:19:49 PM UTC Emmanuel Charpentier wrote: > As advertised, an atempt at a minimal (non-)working example : > > # Reproducible minimal example > with seed(0): M = matrix(AA, 3, 3, lambda u,v: AA.random_element()) >

[sage-support] Re: Tensor Multiprocessing broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-02-02 Thread 'Alan Stafford' via sage-support
If I restart the kernel multiprocessing gets reset back to spawn. Rather than have to set it back to fork in every cell it should be set to fork by the kernel restart code. On Friday, January 28, 2022 at 2:04:43 PM UTC egourg...@gmail.com wrote: > Le jeudi 27 janvier 2022 à 18:59:36 UTC+1, alan