[sage-support] Re: Does sagemath support something similar to numpy's einsum for symbolic arrays?

2024-04-15 Thread Matthias Koeppe
You might be looking 
for 
https://doc.sagemath.org/html/en/reference/tensor_free_modules/sage/tensor/modules/tensor_with_indices.html

On Tuesday, April 9, 2024 at 6:59:27 AM UTC-7 Anton Todorov wrote:

> Einsum: https://numpy.org/doc/stable/reference/generated/numpy.einsum.html
>
> It is a way to define multiple operations on arrays of arbitrary shape. 
> I've not seen anything that suggests this is implemented in sagemath, but I 
> was hoping there might be something hidden.
>
> What I need this for is to calculate symbolic results of array operations 
> which are too cumbersome to represent as matrix operations.
>

-- 
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/9acdf077-64a3-4034-8835-e1d806e0e049n%40googlegroups.com.


Re: [sage-support] Re: Is there a way to use Sage's Jupyter outside the sage shell ?

2024-04-15 Thread Henri Girard
I use many vscode with sagemath-9.2 (windows installer) and sagemath 
10.4beta 2wsl2


i start sage copy the address from the terminal then I paste it in 
serveur ans it finds the localhost this is interesting in w11 because i 
can start sage directly in code so I can see what is in ipynb because I 
have done tons of it and I never remenber what's inside !


Le 15/04/2024 à 15:29, Dima Pasechnik a écrit :



On Mon, Apr 15, 2024 at 1:46 PM Henri Girard  
wrote:


I don't understand what you mean , but there is maybe a way you
can use it as I do in vs code ?

Le 15/04/2024 à 09:19, Matthias Koeppe a écrit :

Yes, this is documented in

https://doc.sagemath.org/html/en/installation/launching.html#setting-up-sagemath-as-a-jupyter-kernel-in-an-existing-jupyter-notebook-or-jupyterlab-installation


The instructions given there for using VS Code+WSL there should be 
adapted to using

VS Code+local Sage, and VS Code + (non-WSL remote Sage install).

It seems that Jupyter extension in VS Code packages more goodies than 
the generic Jupyter install,

in particular various nbextensions are there.




On Monday, April 8, 2024 at 11:16:45 AM UTC-7 Emmanuel
Charpentier wrote:

Setup : Sage 10.4.beta1 running on Ubuntu 22.04 LTS under
WSL2 in Windows 11 (don’t get me started…). I also installed
emacs and its juyter
 package, which is
able to use Sage-installed kernels … when emacs is started
from the Sage shell. [ Yes, there is a point to this…]

What I want to do is to be able to use these Sage-installed
kernels from outside the Sage shell environment, thus
avoiding to duplicate the Sage Jupyter installation. In other
words, I want a jupyter command that is able to finfd the
Sage-instaled kernels in their correct environment.

Is there any way to do that ?

-- 
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/e526ffb3-bebe-49af-9f1d-075b0aacff3an%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit

https://groups.google.com/d/msgid/sage-support/d29a775c-18b1-40c7-a6ba-99054e74c997%40gmail.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAAWYfq0TvVUbhSFOzyf3hPOpAfocvS5X_v95OQyH9%3DUiuOdiaA%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/89103301-b030-4e45-9bbe-af8a9a442dd3%40gmail.com.


Re: [sage-support] Re: Is there a way to use Sage's Jupyter outside the sage shell ?

2024-04-15 Thread Dima Pasechnik
On Mon, Apr 15, 2024 at 1:46 PM Henri Girard  wrote:

> I don't understand what you mean , but there is maybe a way you can use it
> as I do in vs code ?
> Le 15/04/2024 à 09:19, Matthias Koeppe a écrit :
>
> Yes, this is documented in
> https://doc.sagemath.org/html/en/installation/launching.html#setting-up-sagemath-as-a-jupyter-kernel-in-an-existing-jupyter-notebook-or-jupyterlab-installation
>
> The instructions given there for using VS Code+WSL there should be adapted
to using
VS Code+local Sage, and VS Code + (non-WSL remote Sage install).

It seems that Jupyter extension in VS Code packages more goodies than the
generic Jupyter install,
in particular various nbextensions are there.


>
>
> On Monday, April 8, 2024 at 11:16:45 AM UTC-7 Emmanuel Charpentier wrote:
>
>> Setup : Sage 10.4.beta1 running on Ubuntu 22.04 LTS under WSL2 in Windows
>> 11 (don’t get me started…). I also installed emacs and its juyter
>>  package, which is able to use
>> Sage-installed kernels … when emacs is started from the Sage shell. [ Yes,
>> there is a point to this…]
>>
>> What I want to do is to be able to use these Sage-installed kernels from
>> outside the Sage shell environment, thus avoiding to duplicate the Sage
>> Jupyter installation. In other words, I want a jupyter command that is
>> able to finfd the Sage-instaled kernels in their correct environment.
>>
>> Is there any way to do that ?
>>
> --
> 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/e526ffb3-bebe-49af-9f1d-075b0aacff3an%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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/d29a775c-18b1-40c7-a6ba-99054e74c997%40gmail.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAAWYfq0TvVUbhSFOzyf3hPOpAfocvS5X_v95OQyH9%3DUiuOdiaA%40mail.gmail.com.


Re: [sage-support] Re: Is there a way to use Sage's Jupyter outside the sage shell ?

2024-04-15 Thread Henri Girard
I don't understand what you mean , but there is maybe a way you can use 
it as I do in vs code ?


Le 15/04/2024 à 09:19, Matthias Koeppe a écrit :
Yes, this is documented in 
https://doc.sagemath.org/html/en/installation/launching.html#setting-up-sagemath-as-a-jupyter-kernel-in-an-existing-jupyter-notebook-or-jupyterlab-installation 





On Monday, April 8, 2024 at 11:16:45 AM UTC-7 Emmanuel Charpentier wrote:

Setup : Sage 10.4.beta1 running on Ubuntu 22.04 LTS under WSL2 in
Windows 11 (don’t get me started…). I also installed emacs and its
juyter  package, which
is able to use Sage-installed kernels … when emacs is started from
the Sage shell. [ Yes, there is a point to this…]

What I want to do is to be able to use these Sage-installed
kernels from outside the Sage shell environment, thus avoiding to
duplicate the Sage Jupyter installation. In other words, I want a
jupyter command that is able to finfd the Sage-instaled kernels in
their correct environment.

Is there any way to do that ?

​

--
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/e526ffb3-bebe-49af-9f1d-075b0aacff3an%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/d29a775c-18b1-40c7-a6ba-99054e74c997%40gmail.com.


[sage-support] Re: Is there a way to use Sage's Jupyter outside the sage shell ?

2024-04-15 Thread Matthias Koeppe
Yes, this is documented 
in 
https://doc.sagemath.org/html/en/installation/launching.html#setting-up-sagemath-as-a-jupyter-kernel-in-an-existing-jupyter-notebook-or-jupyterlab-installation



On Monday, April 8, 2024 at 11:16:45 AM UTC-7 Emmanuel Charpentier wrote:

> Setup : Sage 10.4.beta1 running on Ubuntu 22.04 LTS under WSL2 in Windows 
> 11 (don’t get me started…). I also installed emacs and its juyter 
>  package, which is able to use 
> Sage-installed kernels … when emacs is started from the Sage shell. [ Yes, 
> there is a point to this…]
>
> What I want to do is to be able to use these Sage-installed kernels from 
> outside the Sage shell environment, thus avoiding to duplicate the Sage 
> Jupyter installation. In other words, I want a jupyter command that is 
> able to finfd the Sage-instaled kernels in their correct environment.
>
> Is there any way to do that ?
> ​
>

-- 
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/e526ffb3-bebe-49af-9f1d-075b0aacff3an%40googlegroups.com.