Re: [sage-support] Re: Crystals won't view in jupiter notebook

2022-06-04 Thread John H Palmieri
Can you please post that LaTeX file? I get a file which is missing "\usepackage{tkz-graph}" and hence fails to compile. If I add that line, it produces the same LaTeX error that I've been seeing all along. And yes, the LaTeX file is hidden — it's temporary and is removed when Sage quits. You do

Re: [sage-support] Re: Crystals won't view in jupiter notebook

2022-06-04 Thread John H Palmieri
For any Sage object, the code for "view" first constructs a LaTeX version and then runs pdflatex (or similar) on it. For crystals, the code to produce the LaTeX is this: G = self.digraph() G.set_latex_options(**options) return G._latex_() (from sage.categorie

Re: [sage-support] Re: Crystals won't view in jupiter notebook

2022-06-04 Thread Ray Rogers
I think I have it; "view" expects  a "digraph"  not a "crystal" Try - #%%Latex B = crystals.Tableaux(['A',2], shape=[2,1]) G = B.digraph() view(G) print(B) print(G) --- Returns popup graph and inpage text - The crystal of tableaux of type ['A', 2] and shape(s) [[2, 1]] Digraph on 8 ve

Re: [sage-support] Re: Crystals won't view in jupiter notebook

2022-06-03 Thread John H Palmieri
Here is a workaround, or at least it works for me. The LaTeX code for the labels seems to be the issue. sage: B = crystals.Tableaux(['A',2], shape=[2,1]) sage: G = B.digraph() sage: G.set_latex_options(vertex_labels_math=False) sage: view(G) On Thursday, June 2, 2022 at 4:06:26 PM UTC-7 John H P

Re: [sage-support] Re: Crystals won't view in jupiter notebook

2022-06-02 Thread John H Palmieri
I've opened https://trac.sagemath.org/ticket/33947 to trac this problem. On Thursday, June 2, 2022 at 3:30:49 PM UTC-7 John H Palmieri wrote: > For me, `show(G)` works, but not `view(G)`. `show(G)` does not use LaTeX, > and the problem is the LaTeX code produced by `view(G)`. You can also see >

Re: [sage-support] Re: Crystals won't view in jupiter notebook

2022-06-02 Thread John H Palmieri
For me, `show(G)` works, but not `view(G)`. `show(G)` does not use LaTeX, and the problem is the LaTeX code produced by `view(G)`. You can also see that code with `latex(G)` or `latex(B)`. I'm not sure what you're referring to in your first sentence, "Well, that didn't work for me." On Thursda

Re: [sage-support] Re: Crystals won't view in jupiter notebook

2022-06-02 Thread Ray Rogers
Well, that didn't work for me. But changing "view" to "show" produced a script that I can tell is targeted for something, not pdflatex.  Let me know if you know; maybe graphviz converter?  Loading doc2tex didn't help. Anyhow,  here is a "hack" that pops a popup that is correct.  A wrapper could

Re: [sage-support] Re: Crystals won't view in jupiter notebook

2022-06-02 Thread John H Palmieri
It's bad LaTeX, but I'm not sure what's producing it. If you run "view(crystals.Tableaux("A3",shape=[2,1]), debug=True)", then it will first print the LaTeX code, and if you paste that into a file, it will fail to compile. On Thursday, June 2, 2022 at 6:42:51 AM UTC-7 HG wrote: > Some time ago

Re: [sage-support] Re: Crystals won't view in jupiter notebook

2022-06-02 Thread Henri Girard
Some time ago, on the list they said it's better to keep to sage-9.2, at least I changed 9.3 to 9.2 because latex didn't work. Le 02/06/2022 à 14:08, Eric Gourgoulhon a écrit : I got the same error from the console of Sage 9.7.beta1 running on Ubuntu 20.04. So it is not specific to Sage 9.3, n

Re: [sage-support] Re: Crystals won't view in jupiter notebook

2022-06-02 Thread Ray Rogers
Same on Ubuntu 22.04 (I think) Mate 1.26 Jupyterlab 3.4.2 -- SageMath 9.6  -- Compiled from source - with no apparent errors, but I have a make.log from the "make" if requested. Here is a clip from the output. "! Emergency stop. <*> \nonstopmode \input{sage.tex}

[sage-support] Re: Crystals won't view in jupiter notebook

2022-06-02 Thread Eric Gourgoulhon
I got the same error from the console of Sage 9.7.beta1 running on Ubuntu 20.04. So it is not specific to Sage 9.3, nor to Windows... Le mercredi 1 juin 2022 à 23:00:05 UTC+2, dbis...@gmail.com a écrit : > I have installed Sagemath 9.3 on my windows 10 computer and have run the > following c