Thank you very much, I am using next month ubuntu 21.04 an working with sage 5.2, just install sudo apt install cadabra2 start sage in jupyter notebook and to display latex at the beginning write only once  in a cell

%display latex

from cadabra2 import *

from IPython.display import display, Math, Latex

For example :

%display latex
ex=Ex(r"A_{m n} B^{m n}");ex

and voila ! lol

Le 12/03/2021 à 23:51, Kasper Peeters a écrit :
Cadabra author here. On Unix, the Cadabra build/install process installs a Jupyter kernel, which works with SageMath installed from the binary distribution (may need some PYTHONPATH setting, but nothing more). On Windows, the build process using Visual Studio is relatively simple, but getting everything to see all required libraries is a never-ending horror story. Maybe someone on the SageMath team responsible for the Windows port can help out; I have no resources to properly support Windows.

The alternative is to run the lot in WSL and then install a binary distribution of Cadabra; that is known to work from first-hand experience using a non-SageMath Jupyter installation, but I have no doubt it can be made to work with the one supplied by SageMath. You can still connect to the Jupyter kernel from your Windows browser that way.

On Monday, 8 March 2021 at 14:22:57 UTC dim...@gmail.com wrote:

    On Mon, Mar 8, 2021 at 7:28 AM 'Daniel Volinski' via sage-support
    <sage-s...@googlegroups.com> wrote:
    >
    > Hi Dima,
    >
    > This is a page in the Cadabra site: Cadabra: use with Jupyter
    >
    > I just want to calculate some General relativity stuff using
    Cadabra on a Jupyter Notebook as shown in their picture.

    I'm able to build Cadabra2 in SageMath environment (at sage --buildsh
    prompt, that is)
    on Debian Linux. This way it should be possible to use it with Sage's
    Jupyter notebook.

    But on Windows, well, probably much harder...


    >
    > Thanks,
    >
    > Daniel Volinski
    >
    >
    >
    >
    > En domingo, 7 de marzo de 2021 11:54:22 GMT+2, Dima Pasechnik
    <dim...@gmail.com> escribió:
    >
    >
    > I must say I don't understand what you mean by "use Cadabra2 on
    a Jupyter Notebook", is it even possible?
    > The following does not read like it's supported by Cadabra2:
    > https://github.com/kpeeters/cadabra2/tree/master/frontend/web
    <https://github.com/kpeeters/cadabra2/tree/master/frontend/web>
    >
    > They have
    https://github.com/kpeeters/cadabra2/tree/master/jupyterkernel
    <https://github.com/kpeeters/cadabra2/tree/master/jupyterkernel>
    > but it's not clear how to use it, whether it's working at all etc.
    > Do they have a working Jupyter kernel, which can be used in a
    system Jupyter notebook?
    >
    > In principle, Sage can use system Jupyter notebook (although
    whether it's try on Windows, I don't know)
    > So if this is all working there should be no issue.
    >
    >
    > On Sunday, March 7, 2021 at 9:10:54 AM UTC Daniel Volinski wrote:
    >
    > Hi Dima,
    >
    > I asked the same question on the Cadabra support site, they
    don't know either.
    >
    > Daniel Volinski
    >
    >
    >
    > En sábado, 6 de marzo de 2021 16:57:24 GMT+2, 'Daniel Volinski'
    via sage-support <sage-s...@googlegroups.com> escribió:
    >
    >
    > Thank you Dima.
    >
    > Daniel Volinski
    >
    >
    > En sábado, 6 de marzo de 2021 12:30:27 GMT+2, Dima Pasechnik
    <dim...@gmail.com> escribió:
    >
    >
    >
    >
    > On Sat, 6 Mar 2021, 10:23 'Daniel Volinski' via sage-support,
    <sage-s...@googlegroups.com> wrote:
    >
    > Hi Dima,
    >
    > Thank you for your reply.
    >
    > I already have a Python3 installation provided by the SageMath
    installation, I can run Python3 programs without adding anything
    else.
    > I already have a LaTeX installation (MikTex) that I use with
    other programs. How do I proceed from here?
    >
    >
    > We don't know how to install Cadabra2.
    >
    > IMHO this is a question for Cadabra2 people: "I have a Python3
    installation, and I want to run Cadabra2 on top of it".
    >
    >
    > Thanks,
    >
    > Daniel Volinski
    >
    >
    >
    >
    > En viernes, 5 de marzo de 2021 22:49:40 GMT+2, Dima Pasechnik
    <dim...@gmail.com> escribió:
    >
    >
    > On Fri, Mar 5, 2021 at 8:42 PM 'Daniel Volinski' via sage-support
    > <sage-s...@googlegroups.com> wrote:
    > >
    > > Hi All,
    > >
    > > I'm using SageMath 9.2 on Windows 10 Native with Jupyter
    Notebook.
    > >
    > > My question, is there any way to use Cadabra2 on a Jupyter
    Notebook after installing SageMath?
    > >
    > > I do not want to install conda or anaconda or miniconda, I
    just want to use Cadabra2 in the Jupyter Notebook provided by the
    SageMath installation and may be with minimal installation of some
    software.
    >
    > From https://cadabra.science/download.html
    <https://cadabra.science/download.html>:
    > Windows 10
    > You will need a Python3 installation from Anaconda (64-bits, Python
    > 3.8) and a LaTeX installation (tested with MikTeX, others may work
    > too) in order for this to work. Install those first if you do
    not have
    > them already. The Windows port and this binary installer are in
    beta
    > right now, please report any problems. Many thanks to Dominic Price
    > for making this become reality.
    >
    > It seems it mixes well with conda, so why not?
    >
    > Otherwise, I don't think anyone here has any idea whether
    Cadabra2 and
    > Sage will work together, and if yes, how.
    >
    > >
    > > Thanks,
    > >
    > > Daniel Volinski
    > >
    > >
    > > --
    > > 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+unsub...@googlegroups.com.
    > > To view this discussion on the web visit
    
https://groups.google.com/d/msgid/sage-support/14557094.2027036.1614975004314%40mail.yahoo.com
    
<https://groups.google.com/d/msgid/sage-support/14557094.2027036.1614975004314%40mail.yahoo.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+unsub...@googlegroups.com.
    >
    > To view this discussion on the web visit
    
https://groups.google.com/d/msgid/sage-support/CAAWYfq2ZFE2vViOxPf0CZiUW_hUc3yj--2ZxQkwJwRLUt-VHcg%40mail.gmail.com
    
<https://groups.google.com/d/msgid/sage-support/CAAWYfq2ZFE2vViOxPf0CZiUW_hUc3yj--2ZxQkwJwRLUt-VHcg%40mail.gmail.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...@googlegroups.com.
    > To view this discussion on the web visit
    
https://groups.google.com/d/msgid/sage-support/1467251413.81492.1615008723279%40mail.yahoo.com
    
<https://groups.google.com/d/msgid/sage-support/1467251413.81492.1615008723279%40mail.yahoo.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...@googlegroups.com.
    > To view this discussion on the web visit
    >
    
https://groups.google.com/d/msgid/sage-support/CAAWYfq3Oy3u5E1oVqqapD1DPHds93huU%3D3yftpr3r1rAzoRJTA%40mail.gmail.com
    
<https://groups.google.com/d/msgid/sage-support/CAAWYfq3Oy3u5E1oVqqapD1DPHds93huU%3D3yftpr3r1rAzoRJTA%40mail.gmail.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...@googlegroups.com.
    > To view this discussion on the web visit
    >
    
https://groups.google.com/d/msgid/sage-support/1120506566.220323.1615040040658%40mail.yahoo.com
    
<https://groups.google.com/d/msgid/sage-support/1120506566.220323.1615040040658%40mail.yahoo.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...@googlegroups.com.
    > To view this discussion on the web visit
    >
    
https://groups.google.com/d/msgid/sage-support/40305ced-5dd7-4cf9-bcf8-13ad40d1bac8n%40googlegroups.com
    
<https://groups.google.com/d/msgid/sage-support/40305ced-5dd7-4cf9-bcf8-13ad40d1bac8n%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...@googlegroups.com.
    > To view this discussion on the web visit
    
https://groups.google.com/d/msgid/sage-support/902868743.800695.1615184278261%40mail.yahoo.com
    
<https://groups.google.com/d/msgid/sage-support/902868743.800695.1615184278261%40mail.yahoo.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 <mailto:sage-support+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/c9a86815-5fa7-4670-97e7-37ff0c63802dn%40googlegroups.com <https://groups.google.com/d/msgid/sage-support/c9a86815-5fa7-4670-97e7-37ff0c63802dn%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
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/142fc86d-71ae-bedf-6ea9-81682467f236%40gmail.com.

Reply via email to