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
<https://github.com/emacs-jupyter/jupyter> 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

<https://groups.google.com/d/msgid/sage-support/e526ffb3-bebe-49af-9f1d-075b0aacff3an%40googlegroups.com?utm_medium=email_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/d29a775c-18b1-40c7-a6ba-99054e74c997%40gmail.com

<https://groups.google.com/d/msgid/sage-support/d29a775c-18b1-40c7-a6ba-99054e74c997%40gmail.com?utm_medium=email_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/CAAWYfq0TvVUbhSFOzyf3hPOpAfocvS5X_v95OQyH9%3DUiuOdiaA%40mail.gmail.com 
<https://groups.google.com/d/msgid/sage-support/CAAWYfq0TvVUbhSFOzyf3hPOpAfocvS5X_v95OQyH9%3DUiuOdiaA%40mail.gmail.com?utm_medium=email_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/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 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.


Re: [sage-support] Re: Successful plots (without notebook) on Windows?

2024-04-03 Thread Henri Girard
I upgraded to noble 24.04 few months ago it's fine. I just read they
had a problem with bug and it will be out later , but on wsl2 it works
and I will update in time.
What I find good is sage 10.4.beta 1 build fine too !
So on windows I mostly works with sage-9.2 (windows-installer-sagemath-
9.2 ) usefull because I can use code as an interface too...
best

Le mercredi 03 avril 2024 à 03:19 -0700, Emmanuel Charpentier a écrit :
> Le mardi 2 avril 2024 à 21:13:50 UTC+2, kcrisman a écrit :
> > On Monday, April 1, 2024 at 3:31:44 PM UTC-4 Emmanuel Charpentier
> > wrote:
> > > I just had to install Sage on a Windows machine (long story…)
> > > which has to be connected to a corporate VPN, whose an annoying
> > > side effect is to deprive Linux apps of network connectivity
> > > (don’t get me started…). Therefore, the Linux browser couldn’t
> > > use Mathjax.
> > I guess I didn't know how to use the Linux browser in the first
> > place on Windows.
> 
> 
> Just run `wsl firefox`. But in my specific case (amv VPN...), using
> the Windows berwser (alse Firefox) is better. 
> >  
> > > Using your utilities works perfectly. 
> > Haha, they are not "mine" :-) 
> 
> 
> Huh ? You did the Wiki post, no ?
>  
> > but I'm glad they work for someone, we would definitely want to get
> > some information in the user manual and not just the wiki about
> > that.
> 
> 
> Suggestion : an interim solution is to leave a note in the
> (installation|user) manual with a link to the wiki...
>  
> > I'm not sure which version of Ubuntu it uses - whatever the current
> > default for WSL is.
> 
> 
> Currently, it's 22.04LTS, probably to be replaced bu 24.04LTS when
> the latter is released.
>  
> > I can safely guarantee my son has zero interest in Ubuntu, or Linux
> > for that matter.
> 
> 
> Condolences... ;_-)
> 
> HTH, 
> -- 
> 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/28e852ce-05fa-47a5-ac58-56e0d7ea7d93n%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/8b09348777ae33aefa2451cf7e61c3e3c590a560.camel%40gmail.com.


Re: [sage-support] Re: Successful plots (without notebook) on Windows?

2024-04-02 Thread Henri Girard
windows-sage-installer can't be installed ? it's version sagemath-9.2 
but works fine, i use too wls and build sage-dev-10-4 beta on it


Le 02/04/2024 à 21:13, kcrisman a écrit :



On Monday, April 1, 2024 at 3:31:44 PM UTC-4 Emmanuel Charpentier wrote:

I just had to install Sage on a Windows machine (long story…)
which has to be connected to a corporate VPN, whose an annoying
side effect is to deprive Linux apps of network connectivity
(don’t get me started…). Therefore, the Linux browser couldn’t use
Mathjax.

I guess I didn't know how to use the Linux browser in the first place 
on Windows.


Using your utilities works perfectly.

Haha, they are not "mine" :-) but I'm glad they work for someone, we 
would definitely want to get some information in the user manual and 
not just the wiki about that.  I'm not sure which version of Ubuntu it 
uses - whatever the current default for WSL is.   I can safely 
guarantee my son has zero interest in Ubuntu, or Linux for that matter.

--
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/3c606592-ad46-4698-9b2b-734eee35908en%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/2b0edd47-d7ea-4cdb-86ae-90ec11bef175%40gmail.com.


Re: [sage-support] Availability of sage 9.6 through conda/mamba?

2023-12-05 Thread henri . girard
I compiled dev sage-10.2 but I don't know how to make a deb file or a 
conda version. For conda I can't compiled their way for dev version ?


Otherwise I would be willing doing help

thanks

Henri

Le 05/12/2023 à 11:10, Dima Pasechnik a écrit :


On 5 December 2023 08:12:16 GMT, oscar bg  wrote:

any update on conda support for newer Sage releases..
currently conda has 10.0 version which is 6 months old.. would
like to test sage 10.1 or the new 10.2..
was going to open a new issue..


Conda support is done by conda-forge.
https://github.com/conda-forge/sage-feedstock

I think it's the lack of hands to work on it, they have two or three 
people, who are very busy with

their other, main work. Probably we should be helping them more.

Dima


thanks..

On Sunday, February 12, 2023 at 6:47:59 AM UTC+1 Luis
Garcia-Puente wrote:

How can I update to a newer version of sage on Mac OS using mamba?

On Tuesday, July 12, 2022 at 3:57:27 AM UTC-6 Dima Pasechnik
wrote:

On Tue, Jul 12, 2022 at 10:48 AM Henri Girard
 wrote:
>
> Is the conda sagemath working on windows ?

no (it does work on WSL, though)


>
>
> Le 12/07/2022 à 11:21, Julian Rüth a écrit :
> > Hi Joseph,
> >
> > thanks for the notification. We had simply forgotten
to update the sage
> > package. We are now in the process of providing the
sage 9.6 package for
> > conda-forge at
https://github.com/conda-forge/sage-feedstock/pull/77.
> >
> > * Joseph Nasser  [2022-07-11
11:54:04 -0700]:
> >> Is it possible to install sage 9.6 through conda? If
so, how?
> > In the meantime, you can install a (hopefully mostly
functional)
> > SageMath 9.6 by installing sagelib 9.6 into a sage 9.5
environment,
> > e.g.,
> >
> > mamba create -n sage96 python=3.10
> > conda activate sage96
> > mamba install --only-deps sage=9.5
> > mamba install sagelib=9.6
> >
> > You might have to replace mamba with conda if you
don't have mamba
> > installed.
> >
> >
> > julian
> >
>
> --
> 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/b7340679-0915-6e33-2784-db961a345c83%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/CAAWYfq0FTqqaBU35rFMiEz9FBoYO2dn7oaARr%3DeDKr8F8mng8w%40mail.gmail.com 
<https://groups.google.com/d/msgid/sage-support/CAAWYfq0FTqqaBU35rFMiEz9FBoYO2dn7oaARr%3DeDKr8F8mng8w%40mail.gmail.com?utm_medium=email_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/656f0d31.5d0a0220.1e6aa.d108%40mx.google.com.


[sage-support] test

2023-11-16 Thread henri . girard




--
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/9fcf40eb-7050-4c60-9222-714bc5ee8376%40gmail.com.


Re: [sage-support] Freshly installed sage crashes

2023-08-14 Thread Henri Girard

Did you make a link to your compiled version ?

I compiled sage in sage (which us the base dir) after I sudo ln -s /sage 
/usr/bin/sage then you get sage wide


I installed the ubuntu version which is working fine : sudo apt install 
sagemath* jupyter* to get all libs working


hope that can help

best

Henri

Le 14/08/2023 à 10:32, 'Michel VAN DEN BERGH' via sage-support a écrit :
I was unable to get the distro sage to work. I compiled sage from 
source and this solved the problem. Sad though since I would have 
preferred to use the distro version.


On Sunday, August 13, 2023 at 6:55:16 PM UTC+2 Jan Groenewald wrote:

Hi

Does this happen with a user other than your own? Even root will
do for a quick test.
Perhaps pip installed packages or other repositories are
conflicting. Also try
LC_ALL=C sage

Regards,
Jan



On Sun, 13 Aug 2023 at 18:14, 'Michel VAN DEN BERGH' via
sage-support  wrote:

Hi,

Today I installed sage on Ubuntu 22.04 using

apt install sagemath

Sadly after typing 'sage' the program crashes. The crash seems
to be related to Cython. I am attaching the crash report.

What are my options?

Best regards,
Michel




-- 
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/bd9d3fb3-d8f8-4a55-b51c-38ea8e8d0de5n%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/8670c2f2-b506-473b-ae59-f6c1166e9829n%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/ca0ffb0a-d2f9-929b-fbf7-8d7ce4d5a294%40gmail.com.


[sage-support] chatgpt

2023-06-17 Thread Henri Girard
Few years ago I asked the list to explain maxwell equation : But at that 
times I didn't understand maybe I didn't asked properly what I wanted ?


I tried in gpt which answered me this  for Gauss equation :

x, y, z = var('x y z')
epsilon_0 = var('epsilon_0')
rho = function('rho')(x, y, z)
#mu = function('mu')(x, y, z)
E = vector([function('E_1')(x, y, z), function('E_2')(x, y, z), 
function('E_3')(x, y, z)])


# Calculer la divergence du champ électrique
div_E = diff(E[0], x) + diff(E[1], y) + diff(E[2], z)

# Équation de Gauss
eq = div_E == rho / epsilon_0

# Afficher le résultat
show(eq)

Not bad ?

enjoy :)

Henri

--
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/a26ca4b4-bb6d-ffa6-2d88-7bb9d8b995e7%40gmail.com.


Re: [sage-support] for those who can appreciate

2023-05-24 Thread Henri Girard
I forget to say : I have done it with the windows version installers 9.2 
and I compiled sage-10-1 dev because on ubuntu (sage-dev 10.1 compiled 
but not 10.0 a problem with giac on wsl2), which is a good proof of the 
facility to get sage working !


Le 25/05/2023 à 00:32, William Stein a écrit :

Thanks for sharing that!

Right now on https://www.phind.com/ if you click on "Use Best Model 
(slow)" and include "using sagemath" in your question,
it will combine the sagemath docs, web searches, and GPT-4 to answer 
your question.  This might result in better answers
in some cases than just using chatgpt.   I don't know how long 
https://www.phind.com will be free or if it is globally available

or what, but it is fun to play with right now.

 -- William



On Wed, May 24, 2023 at 2:45 PM Henri Girard  
wrote:


I was trying chatgpt and noticed I was able things I couldn't do
myself alone, I think it can help in learning sage because it's a
good tool (i am making advert for it lol)

I needed some times to obtain what I wanted and as it gives python
sometimes there are mistakes with sage, in graphic I prefer sage
libs because I know them better than matplotlib with numpy

from sage.all import *

vertices = [(0, 0), (0, 1), (1, 1), (1, 0)]
p = polygon(vertices, fill=False)

def rotate_point(point, angle):
    rot = matrix([[cos(angle), sin(angle)],
  [-sin(angle), cos(angle)]])
    return rot * vector(point)

theta1 = pi / 4
theta2 = pi / 2

rotated_vertices1 = [rotate_point(vertex, theta1) for vertex in
vertices]
rotated_vertices2 = [rotate_point(vertex, theta2) for vertex in
vertices]

# Carré en bas à droite
square_bottom_right = [rotate_point((x + 1, y), theta2) +
vector([1, 1]) for x, y in vertices]

# Carré en haut à droite
square_top_right = [rotate_point((x + 1, y + 1), theta2) +
vector([0, 2]) for x, y in vertices]

# Centrer le losange
center = vector([0.05, 0.05])
offset = vector([0.245, -0.05])  # Ajuster l'offset selon les besoins
rotated_vertices_centered = [vertex + center + offset for vertex
in rotated_vertices1]

show(p + polygon(rotated_vertices_centered, fill=False, color='red') +
 polygon(rotated_vertices2, fill=False, color='blue') +
 polygon(square_bottom_right, fill=False, color='green') +
 polygon(square_top_right, fill=False, color='purple'),
 gridlines="major", axes=False, figsize=5)

-- 
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/eccafd8a-9c02-2c65-1275-73f5531cd106%40gmail.com

<https://groups.google.com/d/msgid/sage-support/eccafd8a-9c02-2c65-1275-73f5531cd106%40gmail.com?utm_medium=email_source=footer>.



--
William (http://wstein.org)
--
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/CACLE5GBRFXDSBtzDpZoN7Ai7%2BvaNojpHS2O1pHXrCyg%3DEhydhg%40mail.gmail.com 
<https://groups.google.com/d/msgid/sage-support/CACLE5GBRFXDSBtzDpZoN7Ai7%2BvaNojpHS2O1pHXrCyg%3DEhydhg%40mail.gmail.com?utm_medium=email_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/90305f45-bdde-f423-7ed2-f89d9e05eda3%40gmail.com.


Re: [sage-support] for those who can appreciate

2023-05-24 Thread Henri Girard
Thanks for appreciating and doing it on cocalc ! I will send few others 
I have done all over these  years (since the beginning of sage) with the 
help of the list ! But first I must find them back !


best

Henri

Le 25/05/2023 à 00:32, William Stein a écrit :

Thanks for sharing that!

Right now on https://www.phind.com/ if you click on "Use Best Model 
(slow)" and include "using sagemath" in your question,
it will combine the sagemath docs, web searches, and GPT-4 to answer 
your question.  This might result in better answers
in some cases than just using chatgpt.   I don't know how long 
https://www.phind.com will be free or if it is globally available

or what, but it is fun to play with right now.

 -- William



On Wed, May 24, 2023 at 2:45 PM Henri Girard  
wrote:


I was trying chatgpt and noticed I was able things I couldn't do
myself alone, I think it can help in learning sage because it's a
good tool (i am making advert for it lol)

I needed some times to obtain what I wanted and as it gives python
sometimes there are mistakes with sage, in graphic I prefer sage
libs because I know them better than matplotlib with numpy

from sage.all import *

vertices = [(0, 0), (0, 1), (1, 1), (1, 0)]
p = polygon(vertices, fill=False)

def rotate_point(point, angle):
    rot = matrix([[cos(angle), sin(angle)],
  [-sin(angle), cos(angle)]])
    return rot * vector(point)

theta1 = pi / 4
theta2 = pi / 2

rotated_vertices1 = [rotate_point(vertex, theta1) for vertex in
vertices]
rotated_vertices2 = [rotate_point(vertex, theta2) for vertex in
vertices]

# Carré en bas à droite
square_bottom_right = [rotate_point((x + 1, y), theta2) +
vector([1, 1]) for x, y in vertices]

# Carré en haut à droite
square_top_right = [rotate_point((x + 1, y + 1), theta2) +
vector([0, 2]) for x, y in vertices]

# Centrer le losange
center = vector([0.05, 0.05])
offset = vector([0.245, -0.05])  # Ajuster l'offset selon les besoins
rotated_vertices_centered = [vertex + center + offset for vertex
in rotated_vertices1]

show(p + polygon(rotated_vertices_centered, fill=False, color='red') +
 polygon(rotated_vertices2, fill=False, color='blue') +
 polygon(square_bottom_right, fill=False, color='green') +
 polygon(square_top_right, fill=False, color='purple'),
 gridlines="major", axes=False, figsize=5)

-- 
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/eccafd8a-9c02-2c65-1275-73f5531cd106%40gmail.com

<https://groups.google.com/d/msgid/sage-support/eccafd8a-9c02-2c65-1275-73f5531cd106%40gmail.com?utm_medium=email_source=footer>.



--
William (http://wstein.org)
--
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/CACLE5GBRFXDSBtzDpZoN7Ai7%2BvaNojpHS2O1pHXrCyg%3DEhydhg%40mail.gmail.com 
<https://groups.google.com/d/msgid/sage-support/CACLE5GBRFXDSBtzDpZoN7Ai7%2BvaNojpHS2O1pHXrCyg%3DEhydhg%40mail.gmail.com?utm_medium=email_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/827f30ff-6abc-8524-17c0-af3c6b75a58f%40gmail.com.


[sage-support] for those who can appreciate

2023-05-24 Thread Henri Girard
I was trying chatgpt and noticed I was able things I couldn't do myself 
alone, I think it can help in learning sage because it's a good tool (i 
am making advert for it lol)


I needed some times to obtain what I wanted and as it gives python 
sometimes there are mistakes with sage, in graphic I prefer sage libs 
because I know them better than matplotlib with numpy


from sage.all import *

vertices = [(0, 0), (0, 1), (1, 1), (1, 0)]
p = polygon(vertices, fill=False)

def rotate_point(point, angle):
    rot = matrix([[cos(angle), sin(angle)],
  [-sin(angle), cos(angle)]])
    return rot * vector(point)

theta1 = pi / 4
theta2 = pi / 2

rotated_vertices1 = [rotate_point(vertex, theta1) for vertex in vertices]
rotated_vertices2 = [rotate_point(vertex, theta2) for vertex in vertices]

# Carré en bas à droite
square_bottom_right = [rotate_point((x + 1, y), theta2) + vector([1, 1]) 
for x, y in vertices]


# Carré en haut à droite
square_top_right = [rotate_point((x + 1, y + 1), theta2) + vector([0, 
2]) for x, y in vertices]


# Centrer le losange
center = vector([0.05, 0.05])
offset = vector([0.245, -0.05])  # Ajuster l'offset selon les besoins
rotated_vertices_centered = [vertex + center + offset for vertex in 
rotated_vertices1]


show(p + polygon(rotated_vertices_centered, fill=False, color='red') +
 polygon(rotated_vertices2, fill=False, color='blue') +
 polygon(square_bottom_right, fill=False, color='green') +
 polygon(square_top_right, fill=False, color='purple'),
 gridlines="major", axes=False, figsize=5)

--
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/eccafd8a-9c02-2c65-1275-73f5531cd106%40gmail.com.


Re: [sage-support] Sage Build Failed

2023-03-20 Thread Henri Girard
Thanks ! Yes it is true I use what wsl installed, to be true except the 
name I don't know about clang.


Best

Henri

Le 20/03/2023 à 15:50, Dima Pasechnik a écrit :



On Mon, 20 Mar 2023, 14:39 Henri Girard,  wrote:

Good I compiled in wsl2 with lunar (ubuntu+1) I had no problem
curious to know why,


you probably used gcc as C/C++ compiler - the problem comes up with 
clang used instead.



Le 20/03/2023 à 12:54, Atharva Deore a écrit :

Thanks, Dima! The issue is resolved now.

On Mon, Mar 20, 2023 at 3:48 PM  wrote:

On Mon, Mar 20, 2023 at 12:33:20AM -0700, Atharva Deore wrote:
>  I am trying to build sage using WSL, but it failed while
> installing suitesparse. Please help me with this. I am
attaching a log file
> for reference.
>
> Host system:
> Linux DESKTOP-LO8OV26 5.10.16.3-microsoft-standard-WSL2 #1
SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
> 
> C compiler: clang
> C compiler version:
> Ubuntu clang version 14.0.0-1ubuntu1
> Target: x86_64-pc-linux-gnu
> Thread model: posix
> InstalledDir: /usr/bin
> Found candidate GCC installation:
/usr/bin/../lib/gcc/x86_64-linux-gnu/11
> Found candidate GCC installation:
/usr/bin/../lib/gcc/x86_64-linux-gnu/9
> Selected GCC installation:
/usr/bin/../lib/gcc/x86_64-linux-gnu/11
> Candidate multilib: .;@m64
> Selected multilib: .;@m64
> 
> Package 'suitesparse' is currently not installed
> No legacy uninstaller found for 'suitesparse'; nothing to do
...

> /usr/bin/ld: cannot find -lomp: No such file or directory

looks like you need to install an extra package here.
Try doing

   sudo apt install libomp-dev

and then run

   make

again. You've probably run into this, as we don't test clang
on Linux,
as far as I know.

HTH
Dima

-- 
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%2bunsubscr...@googlegroups.com>.
To view this discussion on the web visit

https://groups.google.com/d/msgid/sage-support/ZBgy7AGipsZuYGpl%40hilbert.

-- 
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/CAMf_%2BMvi6DCUhow75mwW%2BrXm5M_6Sf3WxRopctSZUjVaBXWR1g%40mail.gmail.com

<https://groups.google.com/d/msgid/sage-support/CAMf_%2BMvi6DCUhow75mwW%2BrXm5M_6Sf3WxRopctSZUjVaBXWR1g%40mail.gmail.com?utm_medium=email_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/4778efd5-c7e9-77e9-7b46-4a9cd3eba72b%40gmail.com

<https://groups.google.com/d/msgid/sage-support/4778efd5-c7e9-77e9-7b46-4a9cd3eba72b%40gmail.com?utm_medium=email_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/CAAWYfq3%3D8uwU%2BgSNq2K_vDJMpBOnBV8h%3DKHQ2F5_NrL7M5L1Bw%40mail.gmail.com 
<https://groups.google.com/d/msgid/sage-support/CAAWYfq3%3D8uwU%2BgSNq2K_vDJMpBOnBV8h%3DKHQ2F5_NrL7M5L1Bw%40mail.gmail.com?utm_medium=email_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/798bcad5-931f-62cf-3729-51360d42cdef%40gmail.com.


Re: [sage-support] Sage Build Failed

2023-03-20 Thread Henri Girard
Good I compiled in wsl2 with lunar (ubuntu+1) I had no problem curious 
to know why,



Le 20/03/2023 à 12:54, Atharva Deore a écrit :

Thanks, Dima! The issue is resolved now.

On Mon, Mar 20, 2023 at 3:48 PM  wrote:

On Mon, Mar 20, 2023 at 12:33:20AM -0700, Atharva Deore wrote:
>  I am trying to build sage using WSL, but it failed while
> installing suitesparse. Please help me with this. I am attaching
a log file
> for reference.
>
> Host system:
> Linux DESKTOP-LO8OV26 5.10.16.3-microsoft-standard-WSL2 #1 SMP
Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
> 
> C compiler: clang
> C compiler version:
> Ubuntu clang version 14.0.0-1ubuntu1
> Target: x86_64-pc-linux-gnu
> Thread model: posix
> InstalledDir: /usr/bin
> Found candidate GCC installation:
/usr/bin/../lib/gcc/x86_64-linux-gnu/11
> Found candidate GCC installation:
/usr/bin/../lib/gcc/x86_64-linux-gnu/9
> Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/11
> Candidate multilib: .;@m64
> Selected multilib: .;@m64
> 
> Package 'suitesparse' is currently not installed
> No legacy uninstaller found for 'suitesparse'; nothing to do
...

> /usr/bin/ld: cannot find -lomp: No such file or directory

looks like you need to install an extra package here.
Try doing

   sudo apt install libomp-dev

and then run

   make

again. You've probably run into this, as we don't test clang on Linux,
as far as I know.

HTH
Dima

-- 
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/ZBgy7AGipsZuYGpl%40hilbert.

--
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/CAMf_%2BMvi6DCUhow75mwW%2BrXm5M_6Sf3WxRopctSZUjVaBXWR1g%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/4778efd5-c7e9-77e9-7b46-4a9cd3eba72b%40gmail.com.


[sage-support] F3d is it integrated in sagemath ?

2023-02-24 Thread Henri Girard

def f3d(figure, **kwargs):
    return make_frame3d(figure, **kwargs)

I have done a pic included

Some time ago it sounded in the list that this fonction could be 
integrated to sage ?


Is there any work done in this direction in sage 10 ?

Best

Henri

--
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/cb2ae17b-e734-3440-212e-62a303d27863%40gmail.com.


Re: [sage-support] Re: gridlines in 3d ?

2023-01-18 Thread Henri Girard
At the moment I still not have tried labels, I play with it like a kid 
discovering a  new toys !


Thanks again !

Henri

Le 18/01/2023 à 15:39, Rogerio a écrit :

Glad to see that it meets the needs of someone else.
There is still a small bug on the labels, I'm gonna try to take care 
of it in the next week.


Thanks

Rogerio


Le mardi 17 janvier 2023 à 19:52:32 UTC+1, kcrisman a écrit :
Nice ! Would you consider a ticket adding this to Sage ?

+1 to that!

+1 too!
Don't hesitate to ask if you need help to open a ticket on 
https://trac.sagemath.org/.
Or maybe you want to wait for the migration of SageMath sources to 
github, which should take place in February.


Eric.
--
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/f9895bf9-31ed-4327-bb07-c5c430481517n%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/2e468972-a3c7-200c-74b1-96e62e695fa3%40gmail.com.


Re: [sage-support] Re: gridlines in 3d ?

2023-01-17 Thread Henri Girard

Last message for today,

There is a simple way to attach an ipynb to run it as an import :

For my example i call f3d.ipynb the structure of the grid. Then I create 
a new ipynb and I run (i import) the f3d and can use all the fonctions, 
%run f3d.ipynb in the calc in:



Le 17/01/2023 à 19:52, kcrisman a écrit :


Nice ! Would you consider a ticket adding this to Sage ?

+1 to 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/6d69df36-a7b1-486e-84ae-54c91cf5d524n%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/615c42c5-b1d8-0081-efd3-d652e98a11ea%40gmail.com.


Re: [sage-support] Re: gridlines in 3d ?

2023-01-17 Thread Henri Girard

By the way I forget to thank :

Releases · sagemath/sage-windows (github.com) 
    (embray)


which can do it with 9.2 windows versions

And naturally all the sagemath team and people who is developing a 
wonderfull sage  : La voie sage


(could be a translation of dao de jin) the wellknown antic yin yang path :)

Best


Le 17/01/2023 à 19:52, kcrisman a écrit :


Nice ! Would you consider a ticket adding this to Sage ?

+1 to 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/6d69df36-a7b1-486e-84ae-54c91cf5d524n%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/705ebdde-c587-857f-afb3-a45467f9bd00%40gmail.com.


Re: [sage-support] Re: Sage 9.5 fails to start just after an installation

2022-11-29 Thread Henri Girard

Here is the problem and the solution if I am not wrong on the diagnostic :

https://stackoverflow.com/questions/70753768/jupyter-notebook-access-to-the-file-was-denied

Le 29/11/2022 à 22:14, Eric Gourgoulhon a écrit :

Maybe there is something wrong in the SageMath package for your system.
Since your system is based on Ubuntu, I would advise to build SageMath 
from sources by following these lines:

https://sagemanifolds.obspm.fr/install_ubuntu.html
It's just a few lines to copy and paste in a terminal. The benefit is 
that it will provide you with the latest version of Sage (9.7).


Best wishes,

Eric.


Le jeudi 24 novembre 2022 à 14:33:20 UTC+1, m.ko...@gmail.com a écrit :

I have operating system Linux Lite 6.2 that is based on Ubuntu. I
installed Sage from windows package manager Synaptic that is
available through Xfce menu. When I write into terminal prompt the
command sage, Sage starts with info
SageMath version 9.5, Release Date: 2022-01-30           │
│ Using Python 3.10.6. Type "help()" for help.

But suddenly follows some Python warnings, like
/usr/bin/python3(+0x23d9fd)[0x55b08278a9fd]
/usr/bin/python3(+0x15cdc9)[0x55b0826a9dc9]
/usr/bin/python3(_PyEval_EvalFrameDefault+0x289f)[0x55b08269484f]
/usr/bin/python3(_PyFunction_Vectorcall+0x7c)[0x55b0826a9b6c]

Plenty of similar staff and Sage start crashes with text:
#248 0x7fda0c267dc0 in __libc_start_main_impl () at
./csu/../csu/libc-start.c:392
#249 0x55b082777a90 in _start ()

[Inferior 1 (process 3907) detached]
30    ../sysdeps/unix/sysv/linux/wait4.c: Adresár alebo súbor
neexistuje.
Saved trace to /home/michal/.sage/crash_logs/crash_ikxir8ce.log

Unhandled SIGILL: An illegal instruction occurred.
This probably occurred because a *compiled* module has a bug
in it and is not properly wrapped with sig_on(), sig_off().
Python will now terminate.

I use Slovak localization. "Adresár alebo súbor neexistuje." could
be translated as "No file or folder." or as "File or directory
does not exist.".
I do not know where the problem is and what to do to make sage
working.

I am sending crash_ikxir8ce.log file as an attachment. And I am
adding a print screen of  Synaptic package manager choices for Sage

Many thanks for help.

Best regards
Michal Kopčok (read as Kopchok)

--
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/01ca88e9-c56b-4b68-bd86-b8f0d6a7fc1an%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/1be42749-dd48-c47e-d08a-9885b7424c7c%40gmail.com.


Re: [sage-support] Re: Sage 9.5 fails to start just after an installation

2022-11-29 Thread Henri Girard
Since ubuntu 22.04, there is  bug in jupyter python/sage apparently not 
disturbing people because i hardly found a work around. When starting 
sage or jupyter we have this problem, the file is not found. I can't 
remenber what the expression I put in the icon to work . I found in google.


Sorry

Le 29/11/2022 à 22:14, Eric Gourgoulhon a écrit :

Maybe there is something wrong in the SageMath package for your system.
Since your system is based on Ubuntu, I would advise to build SageMath 
from sources by following these lines:

https://sagemanifolds.obspm.fr/install_ubuntu.html
It's just a few lines to copy and paste in a terminal. The benefit is 
that it will provide you with the latest version of Sage (9.7).


Best wishes,

Eric.


Le jeudi 24 novembre 2022 à 14:33:20 UTC+1, m.ko...@gmail.com a écrit :

I have operating system Linux Lite 6.2 that is based on Ubuntu. I
installed Sage from windows package manager Synaptic that is
available through Xfce menu. When I write into terminal prompt the
command sage, Sage starts with info
SageMath version 9.5, Release Date: 2022-01-30           │
│ Using Python 3.10.6. Type "help()" for help.

But suddenly follows some Python warnings, like
/usr/bin/python3(+0x23d9fd)[0x55b08278a9fd]
/usr/bin/python3(+0x15cdc9)[0x55b0826a9dc9]
/usr/bin/python3(_PyEval_EvalFrameDefault+0x289f)[0x55b08269484f]
/usr/bin/python3(_PyFunction_Vectorcall+0x7c)[0x55b0826a9b6c]

Plenty of similar staff and Sage start crashes with text:
#248 0x7fda0c267dc0 in __libc_start_main_impl () at
./csu/../csu/libc-start.c:392
#249 0x55b082777a90 in _start ()

[Inferior 1 (process 3907) detached]
30    ../sysdeps/unix/sysv/linux/wait4.c: Adresár alebo súbor
neexistuje.
Saved trace to /home/michal/.sage/crash_logs/crash_ikxir8ce.log

Unhandled SIGILL: An illegal instruction occurred.
This probably occurred because a *compiled* module has a bug
in it and is not properly wrapped with sig_on(), sig_off().
Python will now terminate.

I use Slovak localization. "Adresár alebo súbor neexistuje." could
be translated as "No file or folder." or as "File or directory
does not exist.".
I do not know where the problem is and what to do to make sage
working.

I am sending crash_ikxir8ce.log file as an attachment. And I am
adding a print screen of  Synaptic package manager choices for Sage

Many thanks for help.

Best regards
Michal Kopčok (read as Kopchok)

--
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/01ca88e9-c56b-4b68-bd86-b8f0d6a7fc1an%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/3e47215c-aba0-23cf-66f5-852e432d476f%40gmail.com.


Re: [sage-support] Re: WSL2 installation sage-ipython can't find packages

2022-10-17 Thread Henri Girard

wsl2 in ubuntu  22.04 has 9.5.4.1 sagemath

Le 17/10/2022 à 23:00, Matthias Koeppe a écrit :

Details please - what is broken

On Saturday, October 15, 2022 at 9:13:06 PM UTC-7 florian...@gmail.com 
wrote:


This pertains to installation of sage-9.7.tar.gz under WSL2. I've
found it necessary to run

cp -r $HOME/sage/sage-9.7/src/sage/ext_data/ $HOME/sage/local/lib/sage

in order for various packages to pick up code in ext_data. I'm
compiling from source. I prefer
to configure sage to compile as much as possible and to rely on
ubuntu/debian packages
as little as possible.

On Friday, October 14, 2022 at 1:56:05 PM UTC-4 dim...@gmail.com
wrote:

I frankly don't understand Debian/Ubuntu packaging of
SageMath. E.g. Sage 9.0 was never tested with Python 3.9, and
their current version of cysignals.

Surely they are trying to backport our changes, but this is
quite error-prone.

Please use conda, or build from source, or use  Linux distro
with much more up to date Sage, e.g.
archlinux or Gentoo.


HTH
Dima




On Fri, 14 Oct 2022, 18:25 Matthias Koeppe,
 wrote:

Report Ubuntu packaging bugs to Ubuntu



On Wednesday, October 12, 2022 at 10:17:31 PM UTC-7
kun.j...@gmail.com wrote:

Hi all,

I'm trying to run sage on WSL2 (Ubuntu focal 20.04.5
LTS), and after a fresh install (sadly only version
9.0), running `sage` gives the following error.

ModuleNotFoundError: No module named 'sage.cpython.string'

I happen to know that the packages are installed
in /usr/lib/python3/dist-packages/, and
sage/cpython/string.pyx is in there.

What's particularly strange to me is that sage
/can/ find `sage.misc.banner` (which is in the same
dist-packages location). Meanwhile, I can run `sage
-python` and inspect `sys.path` manually (it has the
right dist-packages path in it), but importing
sage.all in that context fails with
"ModuleNotFoundError: No module named
'cysignals.signals'" and similar with other imports.

➜  ~ ls -l */usr/lib/python3/dist-packages/sage*
.rw-r--r-- 2.3k root  1 Jan  2020 __init__.py
drwxr-xr-x    - root 12 Oct 20:34 __pycache__
drwxr-xr-x    - root 12 Oct 20:34 algebras
.rw-r--r--  12k root  8 Feb  2020 all.py
<...snipped...>
➜  ~ sage -python
Python 3.9.14 (main, Sep  7 2022, 23:43:29)
[GCC 9.4.0] on linux
>>> import sys
>>> print(sys.path)
['', '/usr/lib/python39.zip', '/usr/lib/python3.9',
'/usr/lib/python3.9/lib-dynload',
'/home/j2kun/.local/lib/python3.9/site-packages',
'/usr/local/lib/python3.9/dist-packages',
*'/usr/lib/python3/dist-packages'*]
>>> import sage.all
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python3/dist-packages/sage/all.py",
line 77, in 
    from cysignals.signals import (AlarmInterrupt,
SignalError,
  File
"/usr/lib/python3/dist-packages/cysignals/__init__.py",
line 1, in 
    from .signals import AlarmInterrupt, SignalError,
init_cysignals  # noqa
ModuleNotFoundError: No module named
'cysignals.signals'/(jkun's note: it's there
in// /usr/lib/python3/dist-packages/cysignals/)/

I understand the recommendation is to use conda or
build from source to get a version > 9.2, but is there
a quick fix I can do to link the sage-python to these
libraries? Maybe an existing trac issue I can read
through workarounds? The reason I ask is because I'm
working on a library that uses sage and it's a bit of
a pain to fire up docker (and worse, the sagemath
docker image had known issues (only just now seeing

that a new docker image got pushed; still, working in
docker is a bit inconvenient))

Any ideas? Further steps for investigation?

-- 
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.

Re: [sage-support] About binaries.

2022-10-09 Thread Henri Girard
I forget to say : I use it too in wsl2 where I installed ubuntu 
20.04+kali (repos), because kali has kex (xserver) in deb package, then 
I can use dualboot ubuntu directly in wsl2 or kali/ubuntu which has 
sagemath-9.5


Le 09/10/2022 à 11:10, Henri Girard a écrit :


No, sagemath  version in ubuntu is 9.5.4 (probably in kinetic as I 
always use dev version)


Le 09/10/2022 à 11:04, Topaze a écrit :

OK, I didn't know this tool, thank you.

Le samedi 8 octobre 2022 à 13:24:02 UTC+2, dim...@gmail.com a écrit :



On Sat, 8 Oct 2022, 12:09 Topaze,  wrote:

Hello.

Are there any plans to provide binaries again (especially for
Debian)? The latest version is 9.4 at the moment.

https://www-ftp.lip6.fr/pub/math/sagemath/linux/64bit/index.html


no. Up to date binaries for Linux can be obtained via conda-forge

https://doc.sagemath.org/html/en/installation/index.html#linux

We also hope that Debian updates its own sagemath package.

HTH
Dima






Thank you.
-- 
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/4021892c-f87c-4120-a2de-49346ffa11f6n%40googlegroups.com

<https://groups.google.com/d/msgid/sage-support/4021892c-f87c-4120-a2de-49346ffa11f6n%40googlegroups.com?utm_medium=email_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/b73327bb-acc1-4b3b-ad6e-fa8651b54150n%40googlegroups.com 
<https://groups.google.com/d/msgid/sage-support/b73327bb-acc1-4b3b-ad6e-fa8651b54150n%40googlegroups.com?utm_medium=email_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/609fccbd-ba85-9f20-59e6-168c27a58d9b%40gmail.com.


Re: [sage-support] About binaries.

2022-10-09 Thread Henri Girard
No, sagemath  version in ubuntu is 9.5.4 (probably in kinetic as I 
always use dev version)


Le 09/10/2022 à 11:04, Topaze a écrit :

OK, I didn't know this tool, thank you.

Le samedi 8 octobre 2022 à 13:24:02 UTC+2, dim...@gmail.com a écrit :



On Sat, 8 Oct 2022, 12:09 Topaze,  wrote:

Hello.

Are there any plans to provide binaries again (especially for
Debian)? The latest version is 9.4 at the moment.

https://www-ftp.lip6.fr/pub/math/sagemath/linux/64bit/index.html


no. Up to date binaries for Linux can be obtained via conda-forge

https://doc.sagemath.org/html/en/installation/index.html#linux

We also hope that Debian updates its own sagemath package.

HTH
Dima






Thank you.
-- 
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/4021892c-f87c-4120-a2de-49346ffa11f6n%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/b73327bb-acc1-4b3b-ad6e-fa8651b54150n%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/3201d5ac-2406-e4b7-0b0d-0a738ac7beed%40gmail.com.


Re: [sage-support] Availability of sage 9.6 through conda/mamba?

2022-07-12 Thread Henri Girard

Is the conda sagemath working on windows ?


Le 12/07/2022 à 11:21, Julian Rüth a écrit :

Hi Joseph,

thanks for the notification. We had simply forgotten to update the sage
package. We are now in the process of providing the sage 9.6 package for
conda-forge at https://github.com/conda-forge/sage-feedstock/pull/77.

* Joseph Nasser  [2022-07-11 11:54:04 -0700]:

Is it possible to install sage 9.6 through conda? If so, how?

In the meantime, you can install a (hopefully mostly functional)
SageMath 9.6 by installing sagelib 9.6 into a sage 9.5 environment,
e.g.,

mamba create -n sage96 python=3.10
conda activate sage96
mamba install --only-deps sage=9.5
mamba install sagelib=9.6

You might have to replace mamba with conda if you don't have mamba
installed.


julian



--
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/b7340679-0915-6e33-2784-db961a345c83%40gmail.com.


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, 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 code:
view(crystals.Tableaux("A3",shape=[2,1]))

I end up getting this long error:

An error occurred. This is pdfTeX, Version 3.141592653-2.6-1.40.24
(MiKTeX 22.3) (preloaded format=pdflatex 2022.6.1) 1 JUN 2022
21:54 entering extended mode restricted \write18 enabled. %&-line
parsing enabled. **\nonstopmode \input{sage.tex} (sage.tex
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document
class
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo
File: size10.clo 2021/10/04 v1.4n Standard LaTeX file (size
option) ) \c@part=\count185 \c@section=\count186
\c@subsection=\count187 \c@subsubsection=\count188
\c@paragraph=\count189 \c@subparagraph=\count190
\c@figure=\count191 \c@table=\count192 \abovecaptionskip=\skip47
\belowcaptionskip=\skip48 \bibindent=\dimen138 )
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsmath.sty
Package: amsmath 2021/10/15 v2.17l AMS math features
\@mathmargin=\skip49 For additional information on amsmath, use
the `?' option.
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amstext.sty
Package: amstext 2021/08/26 v2.01 AMS text
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks16 \ex@=\dimen139 ))
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols \pmbraise@=\dimen140
)
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsopn.sty
Package: amsopn 2021/08/26 v2.02 operator names )
\inf@bad=\count193 LaTeX Info: Redefining \frac on input line 234.
\uproot@=\count194 \leftroot@=\count195 LaTeX Info: Redefining
\overline on input line 399. \classnum@=\count196
\DOTSCASE@=\count197 LaTeX Info: Redefining \ldots on input line
496. LaTeX Info: Redefining \dots on input line 499. LaTeX Info:
Redefining \cdots on input line 620. \Mathstrutbox@=\box50
\strutbox@=\box51 \big@size=\dimen141 LaTeX Font Info: Redeclaring
font encoding OML on input line 743. LaTeX Font Info: Redeclaring
font encoding OMS on input line 744. \macc@depth=\count198
\c@MaxMatrixCols=\count199 \dotsspace@=\muskip16
\c@parentequation=\count266 \dspbrk@lvl=\count267
\tag@help=\toks17 \row@=\count268 \column@=\count269
\maxfields@=\count270 \andhelp@=\toks18 \eqnshift@=\dimen142
\alignsep@=\dimen143 \tagshift@=\dimen144 \tagwidth@=\dimen145
\totwidth@=\dimen146 \lineht@=\dimen147 \@envbody=\toks19
\multlinegap=\skip50 \multlinetaggap=\skip51
\mathdisplay@stack=\toks20 LaTeX Info: Redefining \[ on input line
2938. LaTeX Info: Redefining \] on input line 2939. )
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\amssymb.sty
Package: amssymb 2013/01/14 v3.01 AMS font symbols

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\amsfonts.sty
Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support
\symAMSa=\mathgroup4 \symAMSb=\mathgroup5 LaTeX Font Info:
Redeclaring math symbol \hbar on input line 98. LaTeX Font Info:
Overwriting math alphabet `\mathfrak' in version `bold' (Font)
U/euf/m/n --> U/euf/b/n on input line 106. ))
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\graphicx.st
 y Package: graphicx 2021/09/16 v1.2d Enhanced
LaTeX Graphics (DPC,SPQR)
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks21 )

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\graphics.sty
Package: graphics 2021/03/04 v1.4d Standard LaTeX Graphics
(DPC,SPQR)
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\trig.sty
Package: trig 2021/08/11 v1.11 sin cos tan (DPC) )

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics-cfg\graphics.c
fg File: graphics.cfg 2016/06/04 v1.11 sample graphics
configuration ) Package graphics Info: Driver file: pdftex.def on
input line 107.

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics-def\pdftex.def
File: pdftex.def 2020/10/05 v1.2a Graphics/color driver for pdftex
)) \Gin@req@height=\dimen148 \Gin@req@width=\dimen149 )


Re: [sage-support] Firefox not launching jupyter session properly

2022-03-29 Thread Henri Girard

thanks you :)

Le 29/03/2022 à 19:23, Dima Pasechnik a écrit :

I've proposed a fix for this on https://trac.sagemath.org/ticket/33592
(there is no reason to use temp files, IMHO)
so we add c.NotebookApp.use_redirect_file=False to the corresponing config file.

Needs review.


On Tue, Mar 29, 2022 at 4:46 PM brett stevens  wrote:

I spoke to soon. :-)  My solution makes the Ubuntu Jupyter work OK  but  
```sage -n``` does not work.  For SageMath's jupyter I needed to make the same 
change in ```$SAGE_ROOT/local/etc/jupyter/jupyter_notebook_config.py```


On Tuesday, March 29, 2022 at 11:02:52 AM UTC-4 brett stevens wrote:

@dim  I installed Ubuntu's jupyter and I am getting the same problem there so I 
agree this is not a SageMath problem.  I will post my question to an 
appropriate forum.  If I find a solution, I will report the fix here.
@HG, I tried setting ```c.NotebookApp.open_browser = True`` but it did not fix 
the problem.  But thank you for the reference to that thread as it still may be 
related.
On Tuesday, March 29, 2022 at 8:25:35 AM UTC-4 dim...@gmail.com wrote:

On Tue, Mar 29, 2022 at 6:12 AM brett stevens  wrote:

When I run ```sage -n``` the same thing happens: The page that opens in Firefox 
says

Access to the file was denied
The file at /home/brett/.local/share/jupyter/runtime/nbserver-35966-open.html 
is not readable.
It may have been removed, moved, or file permissions may be preventing access.

Does system-wide jupyter (apt-get install jupyter) package work for
your Firefox?
If it doesn't, then the problem has little to do with Sage.
(and probably you'd need to fiddle with your Firefox security settings)

If it does, you can use it to run Sage notebooks
- you'd need to run, in Sage'd top directory,

jupyter kernelspec install
local/var/lib/sage/venv-python3.9/share/jupyter/kernels/sagemath

(assuming you have python3.9 (else you'd need to adjust the path accordingly)






On Monday, March 28, 2022 at 9:41:34 AM UTC-4 dim...@gmail.com wrote:

On Mon, Mar 28, 2022 at 2:18 PM brett stevens  wrote:

I am running Ubuntu 21.10 on a Lenovo Thinkpad X1 Tablet. I installed SageMath 
on my computer by cloning the git repository. I compiled sage using directions 
in README.md. The most recent version I compiled was SageMath 9.4. I use 
Firefox 98.0.2 (64-bit) as my browser.

When I run ```sage -n jupyter file.ipynb```

Such a way of opening a particular notebook is not supported, at least it
does not seem to be documented (in sage -n --help).

Needless so say, "sage -n" opens a page with the current directory
listed, and you can
then click on a particular notebook to open.




A new tab opens in firefox with address ```file:///tmp/tmp9csp8qpp.html``` but 
Firefox reports


File not found

Firefox can’t find the file at
/tmp/tmp9csp8qpp.html.

Check the file name for capitalization or other typing errors.
Check to see if the file was moved, renamed or deleted.

However the file does exist. ```ls -l /tmp/tmp9csp8qpp.html``` returns


-rw--- 1 brett brett 751 Mar 25 10:15 /tmp/tmp9csp8qpp.html

If I open the file in Firefox directly using ```Open File...``` from the File 
menu everything works fine.


When I run ```sage -n jupyter file.ipynb``` I get some other links in the 
terminal to use for opening the jupyter session in my browser:


To access the notebook, open this file in a browser:
file:///home/brett/.local/share/jupyter/runtime/nbserver-101452-open.html
Or copy and paste one of these URLs:
http://hamm:/?token=cb4036e78faba0faa3bd0d50b73cc7a94e302196c474d878
or http://127.0.0.1:/?token=cb4036e78faba0faa3bd0d50b73cc7a94e302196c474d878

If I open the first of these, Firefox reports


Access to the file was denied

The file at
/home/brett/.local/share/jupyter/runtime/nbserver-101452-open.html
is not readable.

It may have been removed, moved, or file permissions may be preventing access.

However I have both read and write privileges for this file: ```ls -l 
/home/brett/.local/share/jupyter/runtime/nbserver-101452-open.html``` returns


-rw-rw-r-- 1 brett brett 667 Mar 25 10:15 
/home/brett/.local/share/jupyter/runtime/nbserver-101452-open.html

I tried changing the privileges to include ```x``` but Firefox still will not 
open it.

Like above if I open the file in Firefox using ```Open File...``` from the File 
menu everything works fine.

--
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/5bd21310-f8d5-48f8-90bd-d2732922d6bcn%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 

Re: [sage-support] Firefox not launching jupyter session properly

2022-03-28 Thread Henri Girard

https://github.com/jupyter/notebook/issues/1979

Maybe this issue ?

Le 28/03/2022 à 15:41, Dima Pasechnik a écrit :

On Mon, Mar 28, 2022 at 2:18 PM brett stevens  wrote:

I am running Ubuntu 21.10 on a Lenovo Thinkpad X1 Tablet.  I installed SageMath 
on my computer by cloning the git repository. I compiled sage using directions 
in README.md. The most recent version I compiled was SageMath 9.4. I use 
Firefox 98.0.2 (64-bit) as my browser.

When I run ```sage -n jupyter file.ipynb```

Such a way of opening a particular notebook is not supported, at least it
does not seem to be documented (in sage -n --help).

Needless so say, "sage -n" opens a page with the current directory
listed, and you can
then click on a particular notebook to open.




  A new tab opens in firefox with address ```file:///tmp/tmp9csp8qpp.html``` 
but Firefox reports


File not found

Firefox can’t find the file at
/tmp/tmp9csp8qpp.html.

 Check the file name for capitalization or other typing errors.
 Check to see if the file was moved, renamed or deleted.

However the file does exist.  ```ls -l /tmp/tmp9csp8qpp.html``` returns


-rw--- 1 brett brett 751 Mar 25 10:15 /tmp/tmp9csp8qpp.html

If I open the file in Firefox directly using ```Open File...``` from the File 
menu everything works fine.


When I run ```sage -n jupyter file.ipynb``` I get some other links in the 
terminal to use for opening the jupyter session in my browser:


 To access the notebook, open this file in a browser:
 
file:///home/brett/.local/share/jupyter/runtime/nbserver-101452-open.html
 Or copy and paste one of these URLs:
 
http://hamm:/?token=cb4036e78faba0faa3bd0d50b73cc7a94e302196c474d878
  or 
http://127.0.0.1:/?token=cb4036e78faba0faa3bd0d50b73cc7a94e302196c474d878

If I open the first of these, Firefox reports


Access to the file was denied

The file at
/home/brett/.local/share/jupyter/runtime/nbserver-101452-open.html
is not readable.

 It may have been removed, moved, or file permissions may be preventing 
access.

However I have both read and write privileges for this file: ```ls -l 
/home/brett/.local/share/jupyter/runtime/nbserver-101452-open.html``` returns


-rw-rw-r-- 1 brett brett 667 Mar 25 10:15 
/home/brett/.local/share/jupyter/runtime/nbserver-101452-open.html

I tried changing the privileges to include ```x``` but Firefox still will not 
open it.

Like above if I open the file in Firefox using ```Open File...``` from the File 
menu everything works fine.

--
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/5bd21310-f8d5-48f8-90bd-d2732922d6bcn%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/1454b01d-2c56-3d2c-94b0-92e4f230c689%40gmail.com.


Re: [sage-support] customization of sage docker

2022-03-28 Thread Henri Girard
I am not answering directly to your question, but why don't use wsl if 
you are on windows ?


As you don't say which OS you use I can't really say much ?


Le 27/03/2022 à 18:12, pong a écrit :
I am switching to running sage docker image since the latest binaries 
for linux is no longer available. But can I make any customization, 
say in init.sage survive the quitting of docker?

If yes, may I get some help on how?
--
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/57dfc20c-daa3-4bc3-bcdd-f9c076153869n%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/ab9c26b3-0af9-d58e-f2bc-e0de66181872%40gmail.com.


[sage-support] Have seen that ?

2022-03-06 Thread Henri Girard

https://sage.informatik.hs-bremen.de/home/pub/247/

I often look in foreign sage site I found this one curious :

--
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/4cdcbef3-6856-cb42-d836-49f47d2ac156%40gmail.com.


Re: [sage-support] Re: mathematica_free error

2022-02-28 Thread Henri Girard
Jupyter notebook works with wolfram engine 13 on ubuntu (gwls2 and 
ubuntu22.04 i am using), but maybe it shouldn't be difficult to adapt it ?


I am not good enaugh for this but I think we are on a near way ?

Le 28/02/2022 à 17:52, Emmanuel Charpentier a écrit :



Le dimanche 20 février 2022 à 11:24:51 UTC+1, dim...@gmail.com a écrit :

On Sat, Feb 19, 2022 at 12:54 PM Emmanuel Charpentier
 wrote:
>
> I have had similar problems. Wolfram may have changed (again !)
something in their output format... Since I know zilch about HTML
mysteries and miseries, I can't offer anything but my warmest
condolences...

By the way, has anyone tried https://www.wolfram.com/engine/ ?
We can think of making an interface to it, as it's a free and locally
installable.


[ Sorry for the late answer : I moved (only a couple miles, bit that's 
still a quarter of a century of life...), and I managed to dig up my 
computer from the resulting mess only this morning... :-) ]


Yes, yes, yes : easy comparison to Wolfram's (Mathematica's) result 
may be important in various contexts (and may offer a solution where 
none of Sage's tools works, e. g. various primitive search problems).


A "nice" presentation could be, like our current Mathematica 
interface,  a standard package compilable without Wolfram Engine 
having to be present on the target machine, giving an informative 
error message if called on a machine without the engine, but giving 
back the expected result if present.


The documentation should include (a pointer to) instructions on how to 
install the Wolfram engine.


That could revive my log of untranslatable Mathematica results, for 
which I have some proposals (but didn't bother to formally file, since 
enhancing access to a non-free product may not be a priority...). If 
something gratis, not (too much) encumbered and not-too-hard to 
install  can  be obtained without too much hassle, that should become 
a priority.



Dima
>
> Le lundi 14 février 2022 à 17:17:20 UTC+1, rodrigos...@gmail.com
a écrit :
>>
>> Good afternoon,
>>
>> In this worksheet, the algorithm mathematica_free of integrate
returns the following error:
>>
>> Error in lines 2-2 Traceback (most recent call last): File
"/cocalc/lib/python3.9/site-packages/smc_sagews/sage_server.py",
line 1230, in execute exec( File "", line 1, in  File
"sage/symbolic/expression.pyx", line 13138, in
sage.symbolic.expression.Expression.integral
(build/cythonized/sage/symbolic/expression.cpp:95197) return
integral(self, *args, **kwds) File

"/ext/sage/9.5/local/var/lib/sage/venv-python3.9.9/lib/python3.9/site-packages/sage/symbolic/integration/integral.py",
line 1047, in integrate return integrator(expression, v, a, b)
File

"/ext/sage/9.5/local/var/lib/sage/venv-python3.9.9/lib/python3.9/site-packages/sage/symbolic/integration/external.py",
line 127, in mma_free_integrator all_outputs =
parse_moutput_from_json(json_page_data) File

"/ext/sage/9.5/local/var/lib/sage/venv-python3.9.9/lib/python3.9/site-packages/sage/interfaces/mathematica.py",
line 1235, in parse_moutput_from_json raise ValueError('json
object contains no pods') ValueError: json object contains no pods
>>
>> Why is this happening?
>
> --
> 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/06a0ded3-42e2-4e76-b2e1-db466b3c5fean%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/df320e87-74c1-4555-8d80-2805e375bdb3n%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/398606e0-4a8a-f2f4-c908-bcc1c915a856%40gmail.com.


Re: [sage-support] Re: SageMath on Microsoft Windows

2022-02-27 Thread Henri Girard

Well... A little hacking if I dare say :)

Install wls2 with ubuntu 20.04 then install gwls2 with microsoft store 
verify it's working (it should) and then do-release-upgrade and it 
should install a kind of 22.04. I got it working with sagemath-9.4 (i 
don't know why it' not sage 9.5 as I have it working on a dual boot with 
ubuntu .


Why I do this ? because I have windows 11 and many softs like anaconda 
sage-math windows but yet I didn't success to install wolfram engine on 
windows but in gwls2 jupyter notebook mathematica works well only few 
backdraw but only cosmetic.


It's not too difficult but it needs patience because it can be tricky, 
but the result is good with mate-desktop I use. I even compiled amber20, 
sagemath but needs time.


Best

Henri

Le 27/02/2022 à 22:59, Fernando Gouvea a écrit :


I was trying to install SageMath using WSL, mostly to learn how it is 
done. Alas, the latest available Ubuntu distribution for WSL seems to 
be 20.04, which comes with SageMath 9.0. I have 9.2 running on 
Windows, so no advantage to that.


I did find Ubuntu 20.04 binaries for SageMath 9.4 in 
http://mirrors.mit.edu/sage/linux/64bit/index.html. I downloaded and 
unpacked without problems, at which time the instructions say to 
switch to the SageMath directory and type ./sage. That gives an error:


/usr/bin/env: ‘python’: No such file or directory
Error running the script 'relocate-once.py'.

Now what?

Fernando

On 2/27/2022 3:46 PM, Matthias Koeppe wrote:
+1 on adding info on how to install Linux distributions with 
up-to-date binary packages of Sage to our installation guide. See 
https://trac.sagemath.org/ticket/31485


(The updated installation guide, preview at 
https://6212659123a9467b3cb0cd07--sagemath-tobias.netlify.app/installation/index.html 
already covers WSL but does not mention specific distributions.)


On Sunday, February 27, 2022 at 10:11:40 AM UTC-8 fqgo...@colby.edu 
wrote:


I don’t see archlinux in the Microsoft store.

Fernando

On Sun, Feb 27, 2022 at 10:05 AM Dima Pasechnik
 wrote:



On Sun, 27 Feb 2022, 14:37 G. M.-S.,  wrote:


Thanks, Samuel.

I think it is a pity there is nothing more straightforward…

But you will tell me (to look for somebody) to do it.


some Linux distributions have pretty much up to date Sage
binary packages.

E.g. archlinux has Sage 9.5. Thus, having it installed as
WSL2 (cf
https://gist.github.com/ld100/3376435a4bb62ca0906b0cff9de4f94b)
 should be getting you Sage 9.5 quite quickly.



Guillermo

On Sun, 27 Feb 2022 at 15:28, slelievre
 wrote:

The Cygwin-based Sage-Windows installer has not been
released
for SageMath 9.4 or SageMath 9.5 yet.

To get the latest version of Sage running on Windows,
one option
is to activate Windows Subsystem for Linux (also
known as WSL),
select WSL2, and install any Linux distribution
there, then follow
the Linux installation guide.

-- 
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/CANnG188whX6fJTbj1qdPvB-rdeNVm3H_mNmpC3mohE%2B7tM9rMw%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/CAAWYfq00MjiCDk9Dd8WHDc55%2Bc%3D84PFQLEmyN8VwaD2TiiEVcg%40mail.gmail.com

.

-- 
==

Fernando Q. Gouvea
Dept of Mathematics and Statistics http://www.colby.edu/~fqgouvea
Colby College
Mayflower Hill 5836
Waterville, ME 04901

A training in mathematics is a prerequisite today for work in almost
any scientific field, but even for those who are not going to become
scientists, it is essential because, if it is only through speech
that
we can understand what freedom means, only through mathematics
can we understand what necessity means.
  -- 

Re: [sage-support] Re: Basic Stats deprecated?

2022-02-26 Thread Henri Girard

Sorry : Effectively I thaught I send it to the sage-devel sage-support

Your welcome

Henri

Le 26/02/2022 à 16:57, William Stein a écrit :

Thank you.  However, did you mean to send this to sage-devel ? -- you
just sent it to me personally.


On Sat, Feb 26, 2022 at 12:19 AM Henri Girard  wrote:

Hi,

I use sage from the begining, I learned mathematic with it,what I found
wonderfull is one doesn't need any libs (numpy, scipy...etc), 2 tweeks
ago I found wolfram engine and after some difficulties I can use it
inside jupyter (not yet sage), though I prefer sage because I can do lot
of things (even not mathematic, for example yin yang taiji I called it
math against metaphysic, geometry plane I could use geogebra but
doing it Iearned many things radian,degree ), and I don't speak about
the help by email (though sometimes my stupid question, because I am not
a mathematician) sage is becoming like said one on web : the swiss knife !

I call sage dao de qin I translate like sage path (voie sage), because
one can do everything with it !

Using wolfram engine, I noticed when one knows sage it becomes easier.
But I my opinion mathematica is made for users not for thinkers, not for
true researchers because everything is offered on a palette ! lol

I like sage because I can compile it, I tried all these years to buy a
better computer (every 5 years) to not spend days compiling. At the
moment my Rizen 16 cores with 16Go RAM, that's good.

Sorry for this email written in french/english but I can tell you carry
on this wonderfull soft !

Best regards

Henri

Le 26/02/2022 à 05:31, William Stein a écrit :

In fairness, "Mission: Creating a viable free open source alternative
to Magma, Maple, Mathematica and Matlab."

What do Maple and Mathematica do regarding having a median top level command?

Also, if you want to argue that users should explicitly import
everything... that's an interesting an valuable challenge to support
and your modularization
work Matthias is of course critical to that.  However, it doesn't at
all preclude the default "sage" environment still being a viable
alternative to Maple and Mathematica.

On Fri, Feb 25, 2022 at 12:51 PM Matthias Koeppe
 wrote:

If you consider numpy an obscure library, it may be that your syllabus needs 
updating


On Friday, February 25, 2022 at 10:52:19 AM UTC-8 mat...@gmail.com wrote:

Mean, median and mode are now deprecated. E.g.:


median([1,2,3])

2 :1: DeprecationWarning: sage.stats.basic_stats.median is deprecated; use 
numpy.median or numpy.nanmedian instead See https://trac.sagemath.org/29662 for 
details.

But shouldn't these basic functions have some default functionality? Is the 
intention really to make Sage users call basic functions from libraries. 
Students (mostly) don't know what numpy is and makes using mean, median and 
mode weirdly obscure - like calling combinatorics functions in Mathematica. For 
me (using Sage for classroom teaching) one attraction of Sage is that most 
basic things that a student would use have names that might be in their 
textbooks...

Will Calculus be deprecated too?

--
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/c7ec42b4-a966-47b6-a538-7bb943a50437n%40googlegroups.com.





--
William (http://wstein.org)


--
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/5d752f94-51f8-3f2d-3090-5cfed5b664bb%40gmail.com.


Re: [sage-support] mathematica

2022-02-21 Thread Henri Girard
|I am looking for the error, as I am on ubuntu 9.5 deb maybe it's not 
exactly like debian ?|


|I got a problem to find local I got .local ?|

|
|

|./sage -tp --optional=debian,pip,sage,sage_spkg,mathematica 
src/sage/interfaces/mathematica.py|


|= test session starts 
==

platform linux -- Python 3.10.2, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
rootdir: /home/pi
plugins: cov-3.0.0, mock-3.6.1, astropy-header-0.2.0, 
doctestplus-0.11.2, remotedata-0.3.3, cython-0.1.1, openfiles-0.5.0, 
arraydiff-0.5.0, hypothesis-6.36.0, filter-subpackage-0.1.1

collected 0 items

 no tests ran in 0.01s 
=

ERROR: file or directory not found: src/sage/interfaces/mathematica.py

|


||
||

Le 21/02/2022 à 10:30, Dima Pasechnik a écrit :

Please seehttps://trac.sagemath.org/ticket/33395
- we should document this, still.

On Mon, Feb 21, 2022 at 9:08 AM Henri Girard  wrote:

Hi,

I use mathematica engine with vscode on ubuntu22.04 after few tunings
it's working but I can't get it working on sagemath, in fact I don't
know how to do it !

Any body can help me with sage ?

best

Henri

--
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 
tosage-support+unsubscr...@googlegroups.com.
To view this discussion on the web 
visithttps://groups.google.com/d/msgid/sage-support/26514da5-42d3-b899-120d-59a2a18a78a3%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/4921f8de-89dc-221b-3552-eef17ca86f28%40gmail.com.


[sage-support] mathematica

2022-02-21 Thread Henri Girard

Hi,

I use mathematica engine with vscode on ubuntu22.04 after few tunings 
it's working but I can't get it working on sagemath, in fact I don't 
know how to do it !


Any body can help me with sage ?

best

Henri

--
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/26514da5-42d3-b899-120d-59a2a18a78a3%40gmail.com.


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"))

Thisisμandϵ

best

 Best

Henri
Le 02/02/2022 à 18:38, Sean Fitzpatrick 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 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 following:


from sympy import Matrix, init_printing
init_printing()
A = Matrix([[1,2,3,4],[5,6,7,8],[9,0,1,2]])
display(A.rref())

The init_printing function from Sympy renders the output in MathJax 
rather than pretty-printed plain text, which is nice for teaching. I 
can run this with the language set to either Sage or Python. (the 
'display' command is only needed for Python, which is funny, because 
it is not needed in Jupyter with a Python kernel.)


Right now this code throws about 50 lines of error messages; the main 
error is a Type Error:


TypeError: Object of type  with value of '(a very, very 
long string that I won't reproduce here)' is not JSON serializable


Was there a change made today that would cause this error? Maybe in 
the Sympy library? If I remove the init_printing() line, everything 
works, except that there's no longer nice display for the output.


The reason for using Python syntax is that we also do labs in Jupyter 
notebooks. Our institution has a Jupyter hub with Python and R 
kernels, but no Sage kernel. (We do not have a CoCalc subscription.)


I know there is a Sage equivalent to init_printing (although I forget 
what it is) but that won't work on the Jupyter side.

--
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/0262ca41-4a74-467b-8f46-0af9ad6c4df1n%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/15ade69b-2e09-c25f-60ab-e6b4407becaf%40gmail.com.


[sage-support] gwsl2

2022-02-01 Thread Henri Girard
For those who want a running sagemath linux on windows 10/11 or amber20 
or any app not working on windows use gwls2 very easy to install 
(actually ubuntu 20.04 for me but I tried to upgrade to 22.04 (+1) and 
it works fine so I even have sage 9.4, I can't get any more for the 
moment on it !)


The detail help on microsoft help is suffisiant to install wsl2 and then 
get the gwsl2 on microsoft store with one click installation.


Sorry but I didn't know where posting this info for sage users

Best

Henri

--
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/ee928fe1-c468-6997-d474-703a385018bc%40gmail.com.


Re: [sage-support] Re: (LaTeX/dot2tex) view posets with edge and vertex labels

2021-11-03 Thread Henri Girard

I didn't not understand your question, I am french.

But I use show(LatexExpr(r" c'est  \ en \ français") ) for the text

show(LatexExpr(r" \sqrt x^2") ) for maths and I obtain nice things

Le 03/11/2021 à 09:17, 'Martin R' via sage-support a écrit :

Sorry for answering my own question.

It seems that

sage: P = Poset([[1,2,3,4], [[1,2], [2,3], [1,4]]])
sage: e = {i: LatexExpr("q^%s" % i) for i in P}
sage: c = {(i,j): LatexExpr("%s^%s" % (i, j)) for i, j in 
P.cover_relations()}


sage: H = P.hasse_diagram()
sage: [H.set_edge_label(v1, v2, c[(v1, v2)]) for v1, v2 in 
P.cover_relations()]

sage: H.relabel({v: e[v] for v in P})
sage: H.set_latex_options(format="dot2tex", edge_labels=True)
sage: view(H)

works.
Martin R schrieb am Dienstag, 2. November 2021 um 19:37:34 UTC+1:

is it possible to display a poset with (LaTeX) labels on the
covering relations and (LaTeX) labels on the vertices?

For example:

sage: P = Poset([[1,2,3,4], [[1,2], [2,3], [1,4]]])
sage: e = {i: "$q^%s$" % i for i in P}
sage: c = {(i,j): "$%s^%s$" % (i, j) for i, j in P.cover_relations()}
sage: P.plot(element_labels=e, cover_labels=c)

This almost works.  Unfortunately, the layout is not the dot2tex
layout, which I need because my posets are large, and it displays
'None' instead of the edge label.

Martin

--
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/91981ecf-1172-4a75-8f4e-8189aa83502bn%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/69d4c584-6851-75ac-ad22-41cbe83dab36%40gmail.com.


[sage-support] import

2021-09-26 Thread Henri Girard

Hi,

Iq there a way to import function from a sage notebook to another notebook ?

I have long graphic one about 30 lines and I would like to show the 
graphic in another notebook, like with an attach method "show(g)" with 
import  and be able to add functions ?


Any help welcome

best

Henri

--
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/8d263aea-08c8-20b5-d412-b5db2bcc7ca0%40gmail.com.


[sage-support] Re: wslg and sage ?

2021-07-08 Thread Henri Girard
I answer to myself works like on linux (ubuntu focal) I just installed 
sagemath and jupyter-notebook


for infos

Le 08/07/2021 à 15:48, Henri Girard a écrit :


Hi,

I just discovered wsl2/wslg windows native X support. GitHub - 
microsoft/wslg : Activation du sous-système Windows pour Linux pour 
inclure la prise en charge des scénarios liés aux serveurs Wayland et 
X <https://github.com/microsoft/wslg>


I was wondering if someone already tested it ?

And the must tried to run sagemath with it ?

Any info will be best ?

Henri





--
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/ab47d479-123e-2433-00ab-5fa1384ffc8c%40gmail.com.


[sage-support] wslg and sage ?

2021-07-08 Thread Henri Girard

Hi,

I just discovered wsl2/wslg windows native X support. GitHub - 
microsoft/wslg : Activation du sous-système Windows pour Linux pour 
inclure la prise en charge des scénarios liés aux serveurs Wayland et X 



I was wondering if someone already tested it ?

And the must tried to run sagemath with it ?

Any info will be best ?

Henri



--
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/ab7634fc-5923-cd2c-2026-11cbd2fa5c4c%40gmail.com.


Re: [sage-support] Re: sage textbook goes GitHub; don't confuse it with the good one ;-)

2021-06-21 Thread Henri Girard

https://github.com/aishenri/sagelechat/blob/main/saglechat.pdf

google translation, it has something funny !

On 21/06/2021 20:52, Henri Girard wrote:


Strange ? I never heard about this github before ?

thanks

Henri

On 21/06/2021 20:31, William Stein wrote:



On Mon, Jun 21, 2021 at 10:08 AM john_perry_usm <mailto:john.pe...@usm.edu>> wrote:


Hello!

> Is this also published on CoCalc?

Not at the present time. I do mean to talk to someone about it.


Just make a PR to

https://github.com/sagemathinc/cocalc-examples 
<https://github.com/sagemathinc/cocalc-examples>


and we'll happily host a copy.  This makes it so with a click, people 
can quickly get a copy of the document...



> Why do you prefer the use of Sage Worksheets over Jupyter Notebook?

I'm not entirely clear on when "Sage Worksheets" became Jupyter
notebooks. I think, when we started 5 years ago, that we weren't
aware of the switch; I certainly wasn't. I personally haven't
looked enough into the details and/or differences to write
intelligently about them.


Sage worksheets = a way of using Sage in Cocalc *ONLY* that involves 
a single codemirror editor document, and a really powerful way to 
easily define %mode's. It's very tightly integrated with Sage.   It's 
also written in a pretty old style (using a lot of html and jquery), 
and I plan to rewrite it soon, since it's one of the only things left 
in CoCalc that isn't written in Typescript/React.  Sage worksheets 
are implemented entirely separately from the Jupyter stack, not even 
using the Jupyter kernel for Sage (instead, they have their own 
backend server process, which uses fork each time  you make a new 
connection, for faster startup).  They do have a way to easily create 
any number of connections to different Jupyter kernels, and use them 
all in the same worksheet.   I wrote Sage worksheets mainly 
2012-2014, and have maintained them ever since, because they are 
pretty popular on CoCalc, e.g., they just use a normal single 
document editor interface, rather than a "weird" modal interface with 
many little editors like Jupyter notebooks, and some people find the 
Sage worksheet approach more natural.
One nuisance of Sage worksheets is that the exact version of Sage 
isn't specified anywhere in the file format -- it just uses whatever 
"sage" is in your path. Jupyter is better in this regard.


Jupyter notebooks = of course we all know what they are.

I'm personally a huge fan of both, but they are very different.    I 
hope I can unify the two approaches sometime soon, so that there's a 
mode for using any Jupyter notebook that looks like a Sage 
worksheet... and so the custom Sage server mentioned above is just a 
different Jupyter kernel (maybe called "cocalc-sage").




john perry

On Sunday, June 20, 2021 at 1:15:28 PM UTC-5 ingo...@gmail.com
<mailto:ingo...@gmail.com> wrote:

That looks great and I am looking forward to reading it more
in detail. Just two quick questions to get started.
Is this also published on CoCalc?
Why do you prefer the use of Sage Worksheets over Jupyter
Notebook?
Best wishes
Ingo
john_perry_usm schrieb am Sonntag, 20. Juni 2021 um 02:58:57
UTC+2:

Greetings

Five years ago, a couple of colleagues and I began
writing a Sage-based textbook to serve a class we teach
at our institution. When we announced it to Sage users,
we received an encouraging reception and excellent
feedback. If that was meant to discourage us, it failed
completely. ;-)

We've updated it pretty regularly since then, correcting
a lot of errors and adding a few new features, even
updating to Python3. The sources have been available
online for a while, but after half a decade it seems time
to get a little less behind the times than we have been
and move the entire project to GitHub. So, here you go:

https://github.com/johnperry-math/mew_cats
<https://github.com/johnperry-math/mew_cats>

A new PDF version is included as a "Release", so you
don't have to clone it, let alone build it. (Look for
"Releases" on the right.) The license is CC-BY-SA, so
feel free to clone it, fork it, commit it, push it, and
any other unethical-sounding VCS operation that suits
your fancy. You can even introduce errors that we haven't
already included!

To honor the occasion we changed the title. Two of the
authors are very pleased with the acronym.

We hope people find this useful for teaching, learning,
and using Sage. People besides us, that is. :-)

reg

Re: [sage-support] Re: sage textbook goes GitHub; don't confuse it with the good one ;-)

2021-06-21 Thread Henri Girard

Strange ? I never heard about this github before ?

thanks

Henri

On 21/06/2021 20:31, William Stein wrote:



On Mon, Jun 21, 2021 at 10:08 AM john_perry_usm > wrote:


Hello!

> Is this also published on CoCalc?

Not at the present time. I do mean to talk to someone about it.


Just make a PR to

https://github.com/sagemathinc/cocalc-examples 



and we'll happily host a copy.  This makes it so with a click, people 
can quickly get a copy of the document...



> Why do you prefer the use of Sage Worksheets over Jupyter Notebook?

I'm not entirely clear on when "Sage Worksheets" became Jupyter
notebooks. I think, when we started 5 years ago, that we weren't
aware of the switch; I certainly wasn't. I personally haven't
looked enough into the details and/or differences to write
intelligently about them.


Sage worksheets = a way of using Sage in Cocalc *ONLY* that involves a 
single codemirror editor document, and a really powerful way to easily 
define %mode's. It's very tightly integrated with Sage.   It's also 
written in a pretty old style (using a lot of html and jquery), and I 
plan to rewrite it soon, since it's one of the only things left in 
CoCalc that isn't written in Typescript/React.  Sage worksheets are 
implemented entirely separately from the Jupyter stack, not even using 
the Jupyter kernel for Sage (instead, they have their own backend 
server process, which uses fork each time  you make a new connection, 
for faster startup).  They do have a way to easily create any number 
of connections to different Jupyter kernels, and use them all in the 
same worksheet.   I wrote Sage worksheets mainly 2012-2014, and have 
maintained them ever since, because they are pretty popular on CoCalc, 
e.g., they just use a normal single document editor interface, rather 
than a "weird" modal interface with many little editors like Jupyter 
notebooks, and some people find the Sage worksheet approach more natural.
One nuisance of Sage worksheets is that the exact version of Sage 
isn't specified anywhere in the file format -- it just uses whatever 
"sage" is in your path. Jupyter is better in this regard.


Jupyter notebooks = of course we all know what they are.

I'm personally a huge fan of both, but they are very different.    I 
hope I can unify the two approaches sometime soon, so that there's a 
mode for using any Jupyter notebook that looks like a Sage 
worksheet... and so the custom Sage server mentioned above is just a 
different Jupyter kernel (maybe called "cocalc-sage").




john perry

On Sunday, June 20, 2021 at 1:15:28 PM UTC-5 ingo...@gmail.com
 wrote:

That looks great and I am looking forward to reading it more
in detail. Just two quick questions to get started.
Is this also published on CoCalc?
Why do you prefer the use of Sage Worksheets over Jupyter
Notebook?
Best wishes
Ingo
john_perry_usm schrieb am Sonntag, 20. Juni 2021 um 02:58:57
UTC+2:

Greetings

Five years ago, a couple of colleagues and I began writing
a Sage-based textbook to serve a class we teach at our
institution. When we announced it to Sage users, we
received an encouraging reception and excellent feedback.
If that was meant to discourage us, it failed completely. ;-)

We've updated it pretty regularly since then, correcting a
lot of errors and adding a few new features, even updating
to Python3. The sources have been available online for a
while, but after half a decade it seems time to get a
little less behind the times than we have been and move
the entire project to GitHub. So, here you go:

https://github.com/johnperry-math/mew_cats


A new PDF version is included as a "Release", so you don't
have to clone it, let alone build it. (Look for "Releases"
on the right.) The license is CC-BY-SA, so feel free to
clone it, fork it, commit it, push it, and any other
unethical-sounding VCS operation that suits your fancy.
You can even introduce errors that we haven't already
included!

To honor the occasion we changed the title. Two of the
authors are very pleased with the acronym.

We hope people find this useful for teaching, learning,
and using Sage. People besides us, that is. :-)

regards
john perry

-- 
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
 

Re: [sage-support] sage textbook goes GitHub; don't confuse it with the good one ;-)

2021-06-19 Thread Henri Girard

For french : https://smallpdf.com/fr/blog/traduire-un-pdf

It's not as good as the nativ one but still not to bad

Henri

On 20/06/2021 02:58, john_perry_usm wrote:

Greetings

Five years ago, a couple of colleagues and I began writing a 
Sage-based textbook to serve a class we teach at our institution. When 
we announced it to Sage users, we received an encouraging reception 
and excellent feedback. If that was meant to discourage us, it failed 
completely. ;-)


We've updated it pretty regularly since then, correcting a lot of 
errors and adding a few new features, even updating to Python3. The 
sources have been available online for a while, but after half a 
decade it seems time to get a little less behind the times than we 
have been and move the entire project to GitHub. So, here you go:


   https://github.com/johnperry-math/mew_cats

A new PDF version is included as a "Release", so you don't have to 
clone it, let alone build it. (Look for "Releases" on the right.) The 
license is CC-BY-SA, so feel free to clone it, fork it, commit it, 
push it, and any other unethical-sounding VCS operation that suits 
your fancy. You can even introduce errors that we haven't already 
included!


To honor the occasion we changed the title. Two of the authors are 
very pleased with the acronym.


We hope people find this useful for teaching, learning, and using 
Sage. People besides us, that is. :-)


regards
john perry
--
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/90813dd2-bcc6-48f5-975f-207168dace1fn%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/2f02ff9a-71e8-733a-774a-c7deaf1bea6a%40gmail.com.


Re: [sage-support] sage textbook goes GitHub; don't confuse it with the good one ;-)

2021-06-19 Thread Henri Girard

Wonderfull, i was waiting for this wonder :)

thanks

Henri

On 20/06/2021 02:58, john_perry_usm wrote:

Greetings

Five years ago, a couple of colleagues and I began writing a 
Sage-based textbook to serve a class we teach at our institution. When 
we announced it to Sage users, we received an encouraging reception 
and excellent feedback. If that was meant to discourage us, it failed 
completely. ;-)


We've updated it pretty regularly since then, correcting a lot of 
errors and adding a few new features, even updating to Python3. The 
sources have been available online for a while, but after half a 
decade it seems time to get a little less behind the times than we 
have been and move the entire project to GitHub. So, here you go:


   https://github.com/johnperry-math/mew_cats

A new PDF version is included as a "Release", so you don't have to 
clone it, let alone build it. (Look for "Releases" on the right.) The 
license is CC-BY-SA, so feel free to clone it, fork it, commit it, 
push it, and any other unethical-sounding VCS operation that suits 
your fancy. You can even introduce errors that we haven't already 
included!


To honor the occasion we changed the title. Two of the authors are 
very pleased with the acronym.


We hope people find this useful for teaching, learning, and using 
Sage. People besides us, that is. :-)


regards
john perry
--
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/90813dd2-bcc6-48f5-975f-207168dace1fn%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/e1d06eef-64b3-6611-b433-f8b2d721f602%40gmail.com.


Re: [sage-support] error in viewer='threejs'

2021-06-18 Thread Henri Girard

I use this one

https://pythreejs.readthedocs.io/en/stable/


On 18/06/2021 21:14, Rafel Amer Ramon wrote:

p1 = sphere(color='red', opacity=.5)
show(p1,axes=True,viewer='threejs')


--
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/4d247248-ddf7-e9c7-cdbf-d14e05e8d3a6%40gmail.com.


Re: [sage-support] error in viewer='threejs'

2021-06-18 Thread Henri Girard
I have the same configuration as yours and I get a box cube with red 
sphere, I don't know if it's native working because I use npm in python3 
(sage) to install it


https://threejs.org/docs/#manual/en/introduction/Installation


On 18/06/2021 21:14, Rafel Amer Ramon wrote:

p1 = sphere(color='red', opacity=.5)
show(p1,axes=True,viewer='threejs')


--
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/7c49802d-fe72-f8e8-c0a3-af4429b39cd4%40gmail.com.


Re: [sage-support] Using Cadabra2

2021-03-13 Thread Henri Girard

Yes sorry you are right

Henri

Le 13/03/2021 à 13:35, Kasper Peeters a écrit :


>    %display latex

>   from cadabra2 import *

That only uses the Cadabra python module, which means that you do not 
have access to all the Cadabra specific syntax for declaring 
expressions and properties. Nothing wrong with that, but if you want 
the full experience, you need the Cadabra kernel (which in effect 
pre-processes the input before feeding it to Python).


Kasper



On Saturday, 13 March 2021 at 07:04:32 UTC HG wrote:

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
 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  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

>
> They have
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 
escribió:
>
>
> Thank you Dima.
>
> Daniel Volinski
>
>
> En sábado, 6 de marzo de 2021 12:30:27 GMT+2, Dima
Pasechnik  escribió:
>
>
>
>
> On Sat, 6 Mar 2021, 10:23 'Daniel Volinski' via
sage-support,  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 

Re: [sage-support] Using Cadabra2

2021-03-12 Thread Henri Girard
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
 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
 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

>
> They have
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  escribió:
>
>
> Thank you Dima.
>
> Daniel Volinski
>
>
> En sábado, 6 de marzo de 2021 12:30:27 GMT+2, Dima Pasechnik
 escribió:
>
>
>
>
> On Sat, 6 Mar 2021, 10:23 'Daniel Volinski' via sage-support,
 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
 escribió:
>
>
> On Fri, Mar 5, 2021 at 8:42 PM 'Daniel Volinski' via sage-support
>  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
:
> Windows 10
> You will need a Python3 installation from Anaconda (64-bits, Python
> 3.8) and a LaTeX installation (tested with MikTeX, 

[sage-support] factorial

2020-10-28 Thread Henri Girard

Hi,

I would like to know if it is possible to use ! instead factorial like 
in maths ?


factorial(1/2) = (1/2)!

Any help welcome

Henri

--
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/22760e50-e9df-4dc6-ef31-684ceadd586b%40gmail.com.


Re: [sage-support] problem installing sage

2020-10-20 Thread Henri Girard
Sage is not wroking properly in wls2 as I suppose that's what you use. 
You should get the windows installer sagemath


Le 20/10/2020 à 22:43, Ryan Morrill a écrit :

Hi Jan,

I'm not at all familiar with ubuntu. I just downloaded it off of the 
microsoft store (I am running windows). Sorry I can't be of more help.


On Tue, Oct 20, 2020 at 1:55 PM Jan Groenewald > wrote:


Hi

On Tue, 20 Oct 2020 at 21:48, Ryan Morrill mailto:ryanwmorr...@gmail.com>> wrote:

I have been trying to install sage on an ubuntu shell, but
when I type in

./sage

I get the errors:

/usr/bin/env: ‘python’: No such file or directory
Error running the script 'relocate-once.py'.


How did you install sage? What version of Ubuntu?

Regards,
Jan


-- 
  .~.

  /V\ Jan Groenewald
 /( )\ www.aims.ac.za 
 ^^-^^
-- 
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/CAAg%3Dp_1EfMc9Qh53QqcFoxjqc%3DEV1hZA%3Dnn16to9j0G5AnAosw%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/CAAqvu37UwZ%3Dmfu_Vz_b%2Bn2TETxH_0viOvqrtGtK1xLi71EfVsA%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/9c29188c-2dad-8ed3-2e58-6475681cc075%40gmail.com.


Re: [sage-support] Re: integrating sin(t)/t

2020-09-29 Thread Henri Girard

Now if you build it :)

On 29/09/2020 14:27, Fernando Gouvea wrote:


Good news! When is 9.2 expected to be ready?

Fernando

On 9/29/2020 3:54 AM, Eric Gourgoulhon wrote:
I confirm the issue with the Taylor series with Sage 9.1. 
Fortunately, the bug seems to have been fixed for Sage 9.2. As 
Emmanuel, I get the correct Taylor series with Sage 9.2.beta13.


Le mardi 29 septembre 2020 à 09:36:09 UTC+2, Emmanuel Charpentier a 
écrit :


I can’t reproduce your problem :

|sage: sage.version.version '9.2.beta13' sage: var('t') t sage:
assume(x>0) sage: f(x)=integrate(sin(t)/t,t,0,x) sage: f x |-->
sin_integral(x) sage: taylor(f(x),x,0,10) 1/3265920*x^9 -
1/35280*x^7 + 1/600*x^5 - 1/18*x^3 + x |

My platform is Debian testing running on core i7 + 16 GB RAM ;
sage is built to use as much system packages as possible. hat are
your platforms ?

HTH,

​
Le lundi 28 septembre 2020 à 22:03:56 UTC+2, fqgo...@colby.edu a
écrit :

I am trying to see how to do a standard calculus exercise in
Sage. I want a power series for the integral of sin(x)/x. I
tried:

sage: var('t')
t
sage: assume(x>0)
sage: f(x)=integrate(sin(t)/t,t,0,x)
sage: f
x |--> sin_integral(x)
sage: taylor(f(x),x,0,10)
73/466560*x^9 - 127/35280*x^7 + 31/600*x^5 - 7/18*x^3 + x

The first weirdness is that Sage can't compute the integral
unless I add the "assume(x>0)"; I'm not sure why.

The second weirdness is that the Taylor series is wrong!
Taylor(Si(x),x,0,10) gives the same answer.

Fernando


-- 
==

Fernando Q. Gouvea
Carter Professor of Mathematics
Colby College
Mayflower Hill 5836
Waterville, ME 04901
fqgo...@colby.edu   http://www.colby.edu/~fqgouvea

The object of opening the mind, as of opening the mouth, is to shut it
again on something solid.
   -- G. K. Chesterton, Autobiography.

--
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/fa8ad53c-16e3-46ad-8d73-c2b7a28224acn%40googlegroups.com 
.

--
=
Fernando Q. Gouveahttp://www.colby.edu/~fqgouvea
Carter Professor of Mathematics
Dept. of Mathematics and Statistics
Colby College
5836 Mayflower Hill
Waterville, ME 04901

"Verily and forsooth," replied Goodgulf darkly. "In the past year
strange and fearful wonders I have seen. Fields sown with barley reap
crabgrass and fungus, and even small gardens reject their artichoke
hearts. There has been a hot day in December and a blue
moon. Calendars are made with a month of Sundays and a blue-ribbon
Holstein bore alive two insurance salesmen. The earth splits and the
entrails of a goat were found tied in square knots. The face of the
sun blackens and the skies have rained down soggy potato chips."
   -- Harvard Lampoon, "Bored of the Rings"

--
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/5214e93f-8636-38a6-127b-4d7e5d5e8e1c%40colby.edu 
.


--
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/f77c7b29-b5cd-1df8-547e-81dc04eb9759%40gmail.com.


Re: [sage-support] Re: Installation fails

2020-09-01 Thread Henri Girard

Did you get it with the installer ?

I use w10 sagemath 9.1 works fine ... I have 4 Go RAM and  ssd 240 Go 
have you enaugh room on your HDD ?



Le 01/09/2020 à 07:00, Krishna Ghode a écrit :
Thyankyou for reply, i am using windows 10 with RAM 4 GB. I downloaded 
Sagemath from its official website for windows.
installation started, I press NEXT button and process started but 
after competition of 75% process, Installation disappear automatically.


*Regards,*

*Krishna Eknath Ghode*

/Assistant Professor,/

Department Of Mathematics,

B. K. Birla College(Autonomous), Kalyan.



On Tue, Sep 1, 2020 at 12:19 AM slelievre > wrote:


2020-08-31 18:10:37 UTC, Krishna Ghode:
>
> I try 3-4 times.
> It starts and after some process it suddenly invisible. And did
not install.

What operating system? What steps did you follow?
-- 
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/3b52f1fd-4637-45cf-966e-e08c83142c59o%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/CANe2maUwkqWmdasEQKXxfpMFHVSTLw5pge5ec8-oekun544aSA%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/7135c0d6-6a34-1498-4d1d-25fcd802f2fe%40gmail.com.


Re: [sage-support] tar jxvf sage-9.1-Ubuntu_18.04-x86_64.tar.bz2 is not downloading SageMath

2020-05-30 Thread Henri Girard

tar is not a downloading command, just an uncompressed one :)

So in 2 words : Download the file and after verifying it is there, do tar

Regards


Le 29/05/2020 à 22:48, Joshua Meadowcroft a écrit :
The initial download from tar jxvf 
sage-9.1-Ubuntu_18.04-x86_64.tar.bz2 is not executing.  Unable to 
sagemath download pre-built binary from site.  Any thoughts?



On Friday, May 29, 2020 at 4:35:11 PM UTC-4, Joshua Meadowcroft wrote:

um, I'm not surprised that the file or directory can not be found
on my machine.  Because it hasn't been downloaded yet.  That's
what I'm attempting to do.  I used tar jxvf
sage-9.1-Ubuntu_18.04-x86_64.tar.bz2 to download Sage last week on
an identical different machine and it worked perfectly. So, it's
odd that the exact command is not doing it now.


On Friday, May 29, 2020 at 3:27:07 PM UTC-4, Justin C. Walker wrote:



> On May 29, 2020, at 12:18 , Joshua Meadowcroft
 wrote:
>
> Trying to download Sage on Linux Ubuntu but the following
command isn't working.  What am i doing wrong?  Please see
attached picture.
>
> tar jxvf sage-9.1-Ubuntu_18.04-x86_64.tar.bz2

If you check the results of this command, you will see what
the problem is:

 "tar jxvf sage-9.1-Ubuntu_18.04-x86_64.tar.bz2: Cannot open:
no such file or directory"

This means that the “tar” command is not able to locate the
file “sage-….” in the current directory.  You either need to
run this command in the directory containing the file, or give
the “full” file name to the command.

HTH

Justin

-- 
Justin C. Walker, Curmudgeon at Large

Institute for the Absorption of Federal Funds
---
While creating wives, God promised men
that good and obedient wives would be
found in all corners of the world.
Then He made the earth round.
-- 









--
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/4993ee8e-9d12-44a9-b44e-ae5162c7be3c%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/130792e4-c5a1-be8e-c1cd-882fc7dc6019%40gmail.com.


Re: [sage-support] Re: Book with Sage (and Python 3)

2020-03-01 Thread Henri Girard

Can you share the code in sagemath ?

Best

Henri

Le 06/02/2020 à 10:20, Manfred Einsiedler a écrit :

Hi,

Many thanks for your quick responses and tips concerning SageMath, 
Jupyter, and the typos.
Meanwhile we have a final draft and will have the full book online 
until end of February 2020 or so:


https://tbward0.wixsite.com/books/journey

Let us know if you have comments on the text.

Best,
Manfred



On Tuesday, December 24, 2019 at 11:37:11 AM UTC+1, Manfred Einsiedler 
wrote:


Hi,
I am working with Menny Aka and Tom Ward on a little book for high
school and undergraduate students that also invites the reader to
do a bit of programming, for a slightly dated version see
https://tbward0.wixsite.com/books/journey

We are also new to sage but really enjoyed learning it along the
way. Thanks for the great tool.

During the refereeing process we were told by one of the referees
of the upcoming python 2/3 change and that it would be annoying if
our intro to sage is obsolete even before the book gets published.
 I haven’t yet tried but I will download and install the latest
beta on version 9 to test all sage code in our book. Is there
anything I should be a aware of when I do? Eg. to what extent is
it complete — I believe our little intro doesn’t venture very deep
into the possibilities of Sage.

Thanks,
Manfred Einsiedler

--
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/59d80673-af38-491a-811b-4e56a35ad340%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/f9490996-73b9-42eb-468f-571c7209a044%40gmail.com.


[sage-support] Re: I don't know how to do ...

2019-12-01 Thread Henri Girard

I have done it this way which is easier

p1 = arc((0,0),2,angle=pi/6,sector=(pi/3,8*pi/6),thickness=2,color='red')
p2 = arc((0,0),2,angle=pi/6,sector=(pi/3,-4*pi/6),color="blue",thickness=2)
p3 = arc((0,-1),1,angle=pi/6,sector=(pi/3,8*pi/6),thickness=2,color="blue")
p4 = arc((0,1),1,angle=pi/6,sector=(pi/3,-4*pi/6),color="red",thickness=2)
show(p1+p2+p3+p4,figsize=5)

On 30/11/2019 09:14, Henri Girard wrote:

Hi,

I have done this taiji but it's horizontal and I would like it vertical ?

I can't do it

Any help ?

Kind regards

Henri Girard

def f(x):
    if x<0:
    return sqrt(-x^2-2*x)
    else:
    return -sqrt(-x^2+2*x)
a=plot(f,(x,-2,2),color='grey',fill=sqrt(4-x^2),
fillcolor="black")
xy=circle((0,0),2,color="white")
b=plot(f,(x,-2,2),color="white",fill=-sqrt(4-x^2),
fillcolor="red")

show(a+b+xy)




--
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/986a4223-b945-bbe1-3c04-1ad704dbaafe%40gmail.com.


[sage-support] I don't know how to do ...

2019-11-30 Thread Henri Girard

Hi,

I have done this taiji but it's horizontal and I would like it vertical ?

I can't do it

Any help ?

Kind regards

Henri Girard

def f(x):
    if x<0:
    return sqrt(-x^2-2*x)
    else:
    return -sqrt(-x^2+2*x)
a=plot(f,(x,-2,2),color='grey',fill=sqrt(4-x^2),
fillcolor="black")
xy=circle((0,0),2,color="white")
b=plot(f,(x,-2,2),color="white",fill=-sqrt(4-x^2),
fillcolor="red")

show(a+b+xy)


--
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/70b0ad6c-a90f-123e-68fc-e8e5f432758d%40gmail.com.


Re: [sage-support] Re: CORS problem using sagecell

2019-01-27 Thread henri girard

do you share the code for example 16.6.1 ?

Le 28/01/2019 à 02:51, david.guichard a écrit :
I found the difference: the working cells were using viewer='threejs'. 
When I change the other to threejs it works, although I don't like the 
plot as much. Is there a way with the threejs viewer to get an 
orthogonal projection instead of perspective?


To repeat from my initial post: I'm sure that this cell was working 
just a few months ago.


-- David

On Sunday, January 27, 2019 at 5:37:00 PM UTC-8, david.guichard wrote:

In my calculus book I have a number of sagecells. One of them has
started throwing an error involving CORS. Follow this link:

https://www.whitman.edu/mathematics/calculus_online/section13.01.html


and go to the exercise section, click evaluate on the sagecell.
When I do this, I get

Error connecting to server:

https://sagecell.sagemath.org/static/jsmol/php/jsmol.php?call=getRawDataFromDatabase=_=https%3A%2F%2Fsagecell.sagemath.org%2Fstatic%2Fjsmol%2Fj2s%2Fjava%2Futil%2FHashtable.js



This was working a few months ago. There are two sagecells in

https://www.whitman.edu/mathematics/calculus_online/section16.06.html


and both work for me. I'm not seeing any significant differences
in the code.

Any ideas?

-- David

--
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 post to this group, send email to sage-support@googlegroups.com 
.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] algorithme

2019-01-22 Thread henri girard

two other books (tutorial) in english about sage very good :)

http://www.people.vcu.edu/~clarson/bard-sage-for-undergraduates-2014.pdf

http://www.math.usm.edu/dont_panic/draft12.pdf

Le 22/01/2019 à 09:49, Emmanuel Charpentier a écrit :


s/recommandé/recommander


Le mardi 22 janvier 2019 09:47:21 UTC+1, Emmanuel Charpentier a écrit :

Le dimanche 20 janvier 2019 02:23:14 UTC+1, Anton Sherwood a écrit :

On 2019-1-19 15:52, MAMANE DJAMILOU Salissou Dango wrote:
> Bonjour,
> je suis un tous nouveau utilisateur de sagemath. Je maîtrise
les
> opérations indépendantes. Mon souci se trouve au nivaux des
algorithmes.
> je n'arrive, jusque là pas à comprendre comment programmer
avec sageMath
> (voir les ''screenshots'').
> merci de m'aider à démarrer.


Vous devriez tenter de comminuquer en anglais, qui est la langue
comprise par le plus grad nombre (de loin) de lecteurs du groupe.
Après tout :
sage: r.library("fortunes")
sage: r('fortune("Bad English")')

Bad English is the language of science.
   -- Jan de Leeuw
      JSS mailing list (February 2005)

Cela dit, je ne saurais trop recommandé la lecture du remarquable
manuel collectif "Calcul mathématique avec Sage
", qui décrit (en français, s'il
vous plaît...) une version un peu ancienne de Sage, sa traduction
anglaise , qui
utilise une version plus récente, pouvant également vous servir de
pierre de Rosette ...

Vous aurez aussi besoin d'un manuel pour Python, pour lequel je ne
me sens pas apte à faire une recommandation. Notez que Sage
utilise actuellement Python 2 (en voie d'obsolescence), mais
migrera prochainement vers Python 3.

--
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 post to this group, send email to sage-support@googlegroups.com 
.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] algorithme

2019-01-19 Thread henri girard

\ can be used when one wants to slip a line , in a long line

for example

plot(sin(x),x,0,2, color="red",figsize=3,

    \fontsize=8,frame=True)

in fact here is not really useful it's just for the example, because in 
a jupyter notebook, if you write after a gomma and press "enter" the 
next line will be indented



Le 20/01/2019 à 02:35, 'Justin C. Walker' via sage-support a écrit :



On Jan 19, 2019, at 17:23 , Anton Sherwood  wrote:

On 2019-1-19 15:52, MAMANE DJAMILOU Salissou Dango wrote:

Bonjour,
je suis un tous nouveau utilisateur de sagemath. Je maîtrise les opérations 
indépendantes. Mon souci se trouve au nivaux des algorithmes. je n'arrive, 
jusque là pas à comprendre comment programmer avec sageMath (voir les 
''screenshots'').
merci de m'aider à démarrer.

An attempt at translation:
Good day,
I am a very new user of sagemath.  I am mastering independent operations.  My 
trouble is on the level of algorithms.
So far, I cannot understand how to program with sageMath (see the screenshots).
Thanks for helping me to get started.

The problem is the use of “\”.  Python programs are structured by indentation, 
so the way to type the program in an editor, at the command line prompt, or in 
the notebook, is as follows:

def fac(n):
 if n == 1:
 print ‘bonjour’
 else:
 print “bonsai”

The OP was entering the code almost correctly, but the “\” caused the parser to 
ignore the new-line, and string everything together as one line.

HTH

Justin

--
Justin C. Walker
Director
Institute for the Enhancement of the Director's Income
--
Fame is fleeting, but obscurity
just drags on and on.  F





--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] How to use sage's macaulay2 interface in jupyter

2019-01-19 Thread henri girard

shouldn't be sage dir ?

on linux I do

sudo /mydir/sage/sage /usr/bin/sage

running as

sage -n or sage -n=jupyter for a jupyter notebook

Le 19/01/2019 à 22:08, Chris Brav a écrit :
Unfortunately I have been unable to get sage running directly from a 
terminal on Mac. sudoln-s/path/to/SageMath/sage/usr/local/bin/sage 
didn't work for me. So I click on the icon and then have a choice to 
open either a terminal or a Jupyter notebook. Once the terminal is 
opened, I can use it to talk to Macaulay 2, but not through the 
Jupyter notebook.


Sorry for being so helpless.

On Saturday, January 19, 2019 at 9:19:16 PM UTC+3, Dima Pasechnik wrote:

How do you start Jupyter? I believe that if you start it via
terminal command "sage -n" then you will get exactly the same Sage
environment in Jupyter as you get at Sage's prompt.


On Sat, 19 Jan 2019 18:10 Chris Brav  wrote:

I like to use a jupyter notebook for sage, but also want to
use a bit of macaulay2 at the same, using the sage interface.
In a sage terminal,

macaulay2('2+2')

returns 4 as expected, but in a jupyter notebook I get an
error, the end of which reads

TypeError: unable to start macaulay2 because the command 'M2
--no-debug --no-readline --silent -e
\'ZZ#{Standard,Core#"private dictionary"#"InputPrompt"} =
lineno -> "_EGAS_ : ";ZZ#{Standard,Core#"private
dictionary"#"InputContinuationPrompt"} = lineno -> "_EGAS_ :
";printWidth = 0;lineNumber = 10^9;\'' failed: The command was
not found or was not executable: M2.

Any advice? Presumably I have to tell jupyter how see macaulay2...



-- 
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 post to this group, send email to
sage-s...@googlegroups.com .
Visit this group at
https://groups.google.com/group/sage-support
.
For more options, visit https://groups.google.com/d/optout
.

--
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 post to this group, send email to sage-support@googlegroups.com 
.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: crystals.tableaux

2019-01-08 Thread henri girard

In fact your example help me to find how to do simplier, thanks

Regards

Henri

T = Tableau([[8,1,6], [3,5,7],[4,9,2]]);
print unicode_art(T)

┌───┬───┬───┐
│ 8 │ 1 │ 6 │
├───┼───┼───┤
│ 3 │ 5 │ 7 │
├───┼───┼───┤
│ 4 │ 9 │ 2 │
└───┴───┴───┘

Le 08/01/2019 à 21:56, henri girard a écrit :


yes ... Thanks, but I must do print unicode_art(t)


Le 08/01/2019 à 16:09, slelievre a écrit :

Does this help?

    sage: for t in crystals.Tableaux("A2", shape=[2, 1]):
    :     unicode_art(t)
    :
    ┌───┬───┐
    │ 1 │ 1 │
    ├───┼───┘
    │ 2 │
    └───┘
    ┌───┬───┐
    │ 1 │ 2 │
    ├───┼───┘
    │ 2 │
    └───┘
    ┌───┬───┐
    │ 1 │ 3 │
    ├───┼───┘
    │ 2 │
    └───┘
    ┌───┬───┐
    │ 1 │ 3 │
    ├───┼───┘
    │ 3 │
    └───┘
    ┌───┬───┐
    │ 2 │ 3 │
    ├───┼───┘
    │ 3 │
    └───┘
    ┌───┬───┐
    │ 1 │ 1 │
    ├───┼───┘
    │ 3 │
    └───┘
    ┌───┬───┐
    │ 1 │ 2 │
    ├───┼───┘
    │ 3 │
    └───┘
    ┌───┬───┐
    │ 2 │ 2 │
    ├───┼───┘
    │ 3 │
    └───┘
--
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 post to this group, send email to sage-support@googlegroups.com 
<mailto:sage-support@googlegroups.com>.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: crystals.tableaux

2019-01-08 Thread henri girard

yes ... Thanks, but I must do print unicode_art(t)


Le 08/01/2019 à 16:09, slelievre a écrit :

Does this help?

    sage: for t in crystals.Tableaux("A2", shape=[2, 1]):
    :     unicode_art(t)
    :
    ┌───┬───┐
    │ 1 │ 1 │
    ├───┼───┘
    │ 2 │
    └───┘
    ┌───┬───┐
    │ 1 │ 2 │
    ├───┼───┘
    │ 2 │
    └───┘
    ┌───┬───┐
    │ 1 │ 3 │
    ├───┼───┘
    │ 2 │
    └───┘
    ┌───┬───┐
    │ 1 │ 3 │
    ├───┼───┘
    │ 3 │
    └───┘
    ┌───┬───┐
    │ 2 │ 3 │
    ├───┼───┘
    │ 3 │
    └───┘
    ┌───┬───┐
    │ 1 │ 1 │
    ├───┼───┘
    │ 3 │
    └───┘
    ┌───┬───┐
    │ 1 │ 2 │
    ├───┼───┘
    │ 3 │
    └───┘
    ┌───┬───┐
    │ 2 │ 2 │
    ├───┼───┘
    │ 3 │
    └───┘
--
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 post to this group, send email to sage-support@googlegroups.com 
.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] crystals.tableaux

2019-01-06 Thread henri girard

Hi,

I would like to keep the tableaux inline not in a pdf file, how to do that ?

fn = tmp_filename(ext=".tex")
crystals.Tableaux("A2", shape=[2,1]).latex_file(fn)

B = crystals.Tableaux(['A',2], shape=[2,1])
view(B, tightpage=True)

this way I got an external pdf

Regards

Henri

--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] installation

2018-10-12 Thread Henri Girard

Give more details which OS etc...

Le 12/10/2018 à 18:38, 'yannick Nikiema' via sage-support a écrit :
hi everybody...i've just downloaded sagemath but during installation 
it is said that the source file is corrupted...can you help me resolve 
this problem?


--
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 post to this group, send email to sage-support@googlegroups.com 
.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] solve /desolve

2018-10-03 Thread Henri Girard

HI,
I would like to solve these equations but I don't know how ?

t_0=t_p==gamma*(t-V*x/c^2);show(t_0)
x_0=x_p==gamma*(x-V*t);show(x_0)

solve(t_0,gamma*(t-V*x/c^2))
desolve(gamma*(t-V*x/c^2)==0,x)

error desolve() takes at least 2 arguments (1 given)



Any help ?
Henri

--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: nabla (levi-civita tensor of g)

2018-08-29 Thread Henri Girard

I added

nab=var("nabla",latex_name=r'\mathcal{\nabla f}')

∇f(x,y)↦(−sin(x),−2cos(y))


Le 29/08/2018 à 18:46, HG a écrit :

The last thing I do ( but I am not sure it's "legal" :

f(x,y) = cos(x)-2*sin(y)
gradient = derivative( f )
nab=var("nabla",latex_name=r'\mathcal{\nabla}')
nabla=gradient;show(f);show(nab,nabla)
-
∇(x,y)↦(−sin(x),−2cos(y))




Le lundi 20 août 2018 08:48:11 UTC+2, HG a écrit :

hi,

I would like to use nabla as div or grad operator, in
sagemanifolds it's
used as levita-civita, how could it be use as them if it's possible ?

Regards

Henri

--
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 post to this group, send email to sage-support@googlegroups.com 
.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] nabla (levi-civita tensor of g)

2018-08-20 Thread Henri Girard

hi,

I would like to use nabla as div or grad operator, in sagemanifolds it's 
used as levita-civita, how could it be use as them if it's possible ?


Regards

Henri

--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Unable to display graphs from Ubuntu 18.04, Sage 8.3, 64 bit PC

2018-08-12 Thread Henri Girard
Since ubuntu 17.10 I have seen this sagemath and jupyter-notebook which 
much simplifies  a good installation of sagemath



Le 12/08/2018 à 16:41, Jan Groenewald a écrit :

Hi

I thought there were no binary tarballs for 18.04?
http://files.sagemath.org/linux/64bit/index.html

Regards,
Jan


On Sun, 12 Aug 2018 at 13:57, Graham Gerrard > wrote:


Hi Jan

I initially installed from the binary tarball.  Successfully tried

sudo apt install tk tk-dev
sage -f python2

Ubuntu18.04 seems to be missing several development tools.  So I
guess this will all be resolved when a version of sage for 18.04
is formally released.

Many thanks for your help.

Graham

On 11 August 2018 at 15:22, Jan Groenewald mailto:j...@aims.ac.za>> wrote:

Hi

On Sat, 11 Aug 2018 at 15:38, Graham Gerrard
mailto:graham.gerr...@gmail.com>>
wrote:

I am using sage from a command prompt ...


show(line2d([(0,0),(1,1),(2,4)])) produces

/home/graham/SageMath/local/lib/python2.7/lib-tk/Tkinter.py
in ()
 37 # Attempt to configure Tcl/Tk without
requiring PATH
 38 import FixTk
---> 39 import _tkinter # If this fails your Python may
not be

configuredhttps://packages.ubuntu.com/search?keywords=tk=names=bionic=all


for Tk
 40 tkinter = _tkinter # b/w compat for export
 41 TclError = _tkinter.TclError

ImportError: libtk8.6.so : cannot open
shared object file: No such file or directory.



Did you install from source? (versus from apt / software centre?)

http://doc.sagemath.org/html/en/installation/source.html#tcl-tk

So it looks like even if you just sudo apt install tk8.6 (and
mabye tk8.6-blt2.5??)
your ubuntu python might pick it up but not the sage python.

So you should sudo apt install tk8.6-dev (and mabye tkblt-dev??)
and then rebuild the sage python as per the instructions at
the link above.

tk packages in ubuntu 18.04:


https://packages.ubuntu.com/search?keywords=tk=names=bionic=all

Or perhaps there is someone else who can answer if one can
tell Sage not to try to use tk for
show(lines(... but to use another graphics toolkit.

Regards,
Jan
-- 
  .~.

  /V\ Jan Groenewald
 /( )\ www.aims.ac.za 
 ^^-^^
-- 
You received this message because you are subscribed to a

topic in the Google Groups "sage-support" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/sage-support/xbLE-tPJziI/unsubscribe.
To unsubscribe from this group and all its topics, send an
email to sage-support+unsubscr...@googlegroups.com
.
To post to this group, send email to
sage-support@googlegroups.com
.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


-- 
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 post to this group, send email to sage-support@googlegroups.com
.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.



--
  .~.
  /V\ Jan Groenewald
 /( )\ www.aims.ac.za 
 ^^-^^
--
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 post to this group, send email to sage-support@googlegroups.com 
.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] can't run sage in texmacs

2018-08-09 Thread Henri Girard
I think the problem is since sagemath 5.0 about two years ago, if you 
look to texmacs mail list, you will find the problem, Adrian tried to 
correct it but as now it doesn't work , send to you the mail



Le 09/08/2018 à 22:46, Gabriel Frieden a écrit :
I'm trying to run sage from TeXmacs, and I followed the instructions 
here: https://wiki.sagemath.org/TeXmacs 
. When I click on Insert --> 
Session --> SAGE, I get the message "Busy..." where it should give the 
version information, above the input line with "Sage]." I can type in 
the input line, but I can't execute anything. Any suggestions for how 
to fix this?

--
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 post to this group, send email to sage-support@googlegroups.com 
.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: Sage's animations and windows 10

2018-06-06 Thread Henri Girard
I am using sage 8.3 beta 4 compiled by myself but I thing it should 
works with your too...


I just copied your code and it works out of the box on ubuntu bionic

I guess there a problem with the path but I don't know how to do it on 
w10 sorry



Le 06/06/2018 à 12:11, Francesco a écrit :

|
sines=[plot(c*sin(x),(-2*pi,2*pi),color=Color(c,0,0),ymin=-1,ymax=1)forcinsxrange(0,1,.2)]sage:a=animate(sines)sage:a.show()
|


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: No interact libraries

2018-04-29 Thread Henri Girard
sagemath the best software... Before I used wxmaxima, but it has no 
really working jupyter-notebook (well I can't make working).




Le 29/04/2018 à 21:33, Daniel Santos a écrit :

Hi

Im glad to help.

I'll keep on working with Jupyter notebook.


I really like sagemath, I'll use to teach basic math to my future 
students.


Thank you again.

-Santos

El dom., abr. 29, 2018 14:09, slelievre > escribió:


Sun 2018-04-29 08:16:14 UTC, Daniel Santos:
>
> Hi support team.
>
> I'm looking for information of the "interact command" in sage.
>
> https://wiki.sagemath.org/interact
>
> But there is not a manual for it, also when I clicked:
> 
http://www.sagemath.org/doc/reference/sagenb/notebook/interact.html#sagenb.notebook.interact.interact
>
> There is 404 Error.
>
> Where i can find information about the Interact command?

Thanks for your report! I edited the interact page
of the Sage wiki, adding links to the documentation:

- interacts in the Jupyter notebook

http://doc.sagemath.org/html/en/reference/repl/sage/repl/ipython_kernel/interact.html

- interacts in the legacy SageNB notebook

http://doc.sagemath.org/html/en/reference/notebook/sagenb/notebook/interact.html

> By the way I've been trying to work in the sage notebook()
> but there is not Syntax Highlighting, I really like the Sage
> notebook, it is most robust.

It has its merits, but it is no longer developed;
one could say it is in low maintenance mode.

> Is there something i can do to have Syntax Highlighting?

I don't know.

> By the moment I'll start using Jupyter notebook,
> it has the syntax highlighting.

Good idea. All the notebook development effort now goes
to the Jupyter notebook.
-- 
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 post to this group, send email to sage-support@googlegroups.com
.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

--
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 post to this group, send email to sage-support@googlegroups.com 
.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Right way to kill notebook server on single-user machine

2018-04-17 Thread Henri Girard

exit


Le 17/04/2018 à 05:53, Tevian Dray a écrit :
I'm a relatively new Sage user, trying Jupyter for the first time.  OS 
is Ubuntu 14.04; Sage version is 8.1.  Starting Jupyter from the 
command line (sage -n jupyter) works as expected, but so far as I can 
tell the only way to shut down the notebook server after closing the 
browser is via ctrl-c.  What if sage is not started from a terminal? 
 Or if stdout is redirected to a file?  For example, if I redirect 
stdout when starting sage, then send ctrl-c after closing the browser, 
the sage-notebook process continues to run -- presumably because I 
have no way to send a second ctrl-c.


I found this 10-year-old post asking essentially the same question:
https://groups.google.com/forum/#!newtopic/sage-support/sage-support/IrA6obQupKw
but parts of it are clearly out of date.  However, the suggestion to 
use "kill -2" sounds promising, but on which process?  I only see two, 
one running sage-notebook, the other running sage-cleaner.  Or is 
there some other way?  "killall python" works, but presumably isn't a 
clean shutdown -- and I certainly wouldn't want to script such a 
sledgehammer.


It would be really nice if there were a provided script for shutting 
down the notebook server cleanly!

--
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 post to this group, send email to sage-support@googlegroups.com 
.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: from viewLatex import viewLatex

2018-04-15 Thread Henri Girard
Sorry for this one I found : There is latexViewer.py in git then no 
problem to import



Le 15/04/2018 à 14:34, Henri Girard a écrit :

Is there a way to install it on a local sagemath  and how to do it ?

from viewLatex import viewLatex

best

Henri



--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] from viewLatex import viewLatex

2018-04-15 Thread Henri Girard

Is there a way to install it on a local sagemath  and how to do it ?

from viewLatex import viewLatex

best

Henri

--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] simple?--from_meijer in jupyter

2018-04-13 Thread Henri Girard

Sorry if I spam :

I did this is it of any help as it works in sage-8.1

from sympy import *
from sympy.holonomic.holonomic import *
from sympy.holonomic import DifferentialOperators
from sympy.abc import x
from sympy import ZZ
R, D = DifferentialOperators(ZZ.old_poly_ring(x), 'D')
HolonomicFunction(D**2 + 1, x, 0, [0, 1])
HolonomicFunction((1) + (1)*D**2, x, 0, [0, 1])



Le 13/04/2018 à 00:06, Raymond Rogers a écrit :

The sympy documentation
http://docs.sympy.org/latest/modules/holonomic/convert.html
 has the function from_meiljer and I do
from sympy import *
from sympy.holonomic.holonomic import from_hyper, from_meijer, 
DifferentialOperators

(I think redundant)
I get: "ImportError: cannot import name from_meijer"
Is this a versioning error or what?
As a side issue: I am trying to go from generalized hypergeometric <-> 
meijerg

Is there a better way than through holomorphic?
--
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 post to this group, send email to sage-support@googlegroups.com 
.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] simple?--from_meijer in jupyter

2018-04-13 Thread Henri Girard

from sympy.holonomic.holonomic import *

Have you tried this ?


Le 13/04/2018 à 00:06, Raymond Rogers a écrit :

The sympy documentation
http://docs.sympy.org/latest/modules/holonomic/convert.html
 has the function from_meiljer and I do
from sympy import *
from sympy.holonomic.holonomic import from_hyper, from_meijer, 
DifferentialOperators

(I think redundant)
I get: "ImportError: cannot import name from_meijer"
Is this a versioning error or what?
As a side issue: I am trying to go from generalized hypergeometric <-> 
meijerg

Is there a better way than through holomorphic?
--
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 post to this group, send email to sage-support@googlegroups.com 
.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Strange

2018-04-07 Thread Henri Girard

thanks, I tried david suggestion and it's correct now :

edges = [(1,2), (1,3), (1,4),
    (2,3), (2,4), (2,5), (2, 6),
    (3,4), (3,5), (3,6), (3,7),
    (4,6), (4,7), (5,6), (6,7)]
Gamma = Graph(edges)
Gamma.show()


Meanwhile I made it too with networkx to compare :

import networkx as nx
import matplotlib.pyplot as plt
G = nx.Graph()
edges = [(1,2), (1,3), (1,4),
    (2,3), (2,4), (2,5), (2, 6),
    (3,4), (3,5), (3,6), (3,7),
    (4,6), (4,7), (5,6), (6,7)]
G.add_edges_from(edges)
nx.draw_networkx(G)
limits = plt.axis('off')
plt.show(G)



Le 07/04/2018 à 15:09, Jan Groenewald a écrit :

Hi

On 7 April 2018 at 14:52, Henri Girard <henri.gir...@gmail.com 
<mailto:henri.gir...@gmail.com>> wrote:


I made this graph (meaning a fano's plane) but I have the zero
outside the graph ?

I don't understand why ? someone could explain ?

My adjacency_matrix is 8 but shouldn't be 7 ?

g=Graph(7)
edges = [(1,2), (1,3), (1,4),
    (2,3), (2,4), (2,5), (2, 6),
    (3,4), (3,5), (3,6), (3,7),
    (4,6), (4,7), (5,6), (6,7)]
g.add_edge(1,2),g.add_edge(1,3),g.add_edge(1,4),g.add_edge(2,3),
g.add_edge(2,4),g.add_edge(2,5),g.add_edge(2,6),g.add_edge(3,4),
g.add_edge(3,5),g.add_edge(3,6),g.add_edge(3,7),g.add_edge(4,6),
g.add_edge(4,7),g.add_edge(5,6),g.add_edge(6,7)
g.show()
g.adjacency_matrix(),g.incidence_matrix()

Best



Graph? shows

  2. "Graph(5)" -- return an edgeless graph on the 5 vertices
 0,...,4.

  3. "Graph([list_of_vertices,list_of_edges])" -- returns a
 graph with given vertices/edges.

 To bypass auto-detection, prefer the more explicit
 "Graph([V,E],format='vertices_and_edges')".

  4. "Graph(list_of_edges)" -- return a graph with a given list
 of edges (see documentation of "add_edges()").

 To bypass auto-detection, prefer the more explicit "Graph(L,
 format='list_of_edges')".

  5. "Graph({1:[2,3,4],3:[4]})" -- return a graph by
 associating to each vertex the list of its neighbors.

 To bypass auto-detection, prefer the more explicit "Graph(D,
 format='dict_of_lists')".

so it seems correct, and there are alternatives if you prefer 1..8 
instead of 0..7.


Regards,
Jan





--
  .~.
  /V\ Jan Groenewald
 /( )\ www.aims.ac.za <http://www.aims.ac.za>
 ^^-^^
--
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 post to this group, send email to sage-support@googlegroups.com 
<mailto:sage-support@googlegroups.com>.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Strange

2018-04-07 Thread Henri Girard
I made this graph (meaning a fano's plane) but I have the zero outside 
the graph ?


I don't understand why ? someone could explain ?

My adjacency_matrix is 8 but shouldn't be 7 ?

g=Graph(7)
edges = [(1,2), (1,3), (1,4),
    (2,3), (2,4), (2,5), (2, 6),
    (3,4), (3,5), (3,6), (3,7),
    (4,6), (4,7), (5,6), (6,7)]
g.add_edge(1,2),g.add_edge(1,3),g.add_edge(1,4),g.add_edge(2,3),
g.add_edge(2,4),g.add_edge(2,5),g.add_edge(2,6),g.add_edge(3,4),
g.add_edge(3,5),g.add_edge(3,6),g.add_edge(3,7),g.add_edge(4,6),
g.add_edge(4,7),g.add_edge(5,6),g.add_edge(6,7)
g.show()
g.adjacency_matrix(),g.incidence_matrix()

Best

Henri

--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: Route inspection problem

2018-04-03 Thread Henri Girard

Yes... I am doing it. But Fano's plane seems to be quiet "special"...


Le 03/04/2018 à 11:28, Samuel Lelièvre a écrit :

Have you tried following the NetworkX tutorial?

https://networkx.github.io/documentation/latest/tutorial.html


2018-04-03 9:52 GMT+02:00 Henri Girard <henri.gir...@gmail.com 
<mailto:henri.gir...@gmail.com>>:


Do you think it's possible to draw fano's plane with networkx ?

I have been looking on internet but no answer yet


Le 03/04/2018 à 08:52, slelievre a écrit :

Or you can turn off the Sage preparser.

    preparser(False)
    edgelist.head(10)


Le mardi 3 avril 2018 08:44:29 UTC+2, slelievre a écrit :

Or you can do edgelist.head(int(10))

2018-04-03 8:00 GMT+02:00 Henri Girard:

Thanks, i must write it to each command but it works well

-- 
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 post to this group, send email to
sage-support@googlegroups.com <mailto:sage-support@googlegroups.com>.
Visit this group at https://groups.google.com/group/sage-support
<https://groups.google.com/group/sage-support>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.


-- 
You received this message because you are subscribed to a topic in

the Google Groups "sage-support" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/sage-support/E5OW4M4Frlw/unsubscribe
<https://groups.google.com/d/topic/sage-support/E5OW4M4Frlw/unsubscribe>.
To unsubscribe from this group and all its topics, send an email
to sage-support+unsubscr...@googlegroups.com
<mailto:sage-support+unsubscr...@googlegroups.com>.
To post to this group, send email to sage-support@googlegroups.com
<mailto:sage-support@googlegroups.com>.
Visit this group at https://groups.google.com/group/sage-support
<https://groups.google.com/group/sage-support>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.


--
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 post to this group, send email to sage-support@googlegroups.com 
<mailto:sage-support@googlegroups.com>.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: Route inspection problem

2018-04-03 Thread Henri Girard

Do you think it's possible to draw fano's plane with networkx ?

I have been looking on internet but no answer yet


Le 03/04/2018 à 08:52, slelievre a écrit :

Or you can turn off the Sage preparser.

    preparser(False)
    edgelist.head(10)


Le mardi 3 avril 2018 08:44:29 UTC+2, slelievre a écrit :

Or you can do edgelist.head(int(10))

2018-04-03 8:00 GMT+02:00 Henri Girard:

Thanks, i must write it to each command but it works well

--
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 post to this group, send email to sage-support@googlegroups.com 
<mailto:sage-support@googlegroups.com>.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: Route inspection problem

2018-04-03 Thread Henri Girard

thanks preparser is ideal


Le 03/04/2018 à 08:52, slelievre a écrit :

Or you can turn off the Sage preparser.

    preparser(False)
    edgelist.head(10)


Le mardi 3 avril 2018 08:44:29 UTC+2, slelievre a écrit :

Or you can do edgelist.head(int(10))

2018-04-03 8:00 GMT+02:00 Henri Girard:

Thanks, i must write it to each command but it works well

--
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 post to this group, send email to sage-support@googlegroups.com 
<mailto:sage-support@googlegroups.com>.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: Route inspection problem

2018-04-03 Thread Henri Girard

Thanks, i must write it to each command but it works well


Le 03/04/2018 à 00:58, slelievre a écrit :



Le lundi 2 avril 2018 16:57:27 UTC+2, HG a écrit :
> I tried networkx, it works fine with python2 but I have
> a problem with edges in sagemath ?
>
> edgelist.head(10)
> TypeError: cannot do slice indexing on  'pandas.core.indexes.range.RangeIndex'> with these indexers
> [10] of 
> Is there a way getting it working ?

In Sage, you can try:

    edgelist.head(10r)

instead of

    edgelist.head(10)

where the r in 10r stands for "raw" and avoids the Python integer
10 to be preparsed into a Sage integer.

--
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 post to this group, send email to sage-support@googlegroups.com 
.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Are they equivalent ?

2018-04-01 Thread Henri Girard

Thank you... Planar do it


Le 01/04/2018 à 07:51, Jori Mäntysalo a écrit :

On Sun, 1 Apr 2018, Henri Girard wrote:

I am surprise because graph is different it should n't because the 
adjacency matrix is the same ?


They are:

sage: W = graphs.WheelGraph(4)
sage: H = Graph(W.adjacency_matrix ())
sage: W == H
True

However, for almost every built-in graph or graph family Sage also 
knows some "nice" way to draw it. For other graphs it tries to found a 
"nice" drawing by partly randomized algorithm.


You can also try

H.show(layout='planar')



--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Are they equivalent ?

2018-03-31 Thread Henri Girard
I am surprise because graph is different it should n't because the 
adjacency matrix is the same ?



W=graphs.WheelGraph(4);W.show();W.adjacency_matrix ()

0000

H=Graph(W.adjacency_matrix ());H.show();H.adjacency_matrix ()

--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] fano matrix

2018-03-29 Thread Henri Girard

Very interesting list


Le 29/03/2018 à 17:16, David Joyner a écrit :

On Thu, Mar 29, 2018 at 11:09 AM, Henri Girard <henri.gir...@gmail.com> wrote:

Very near... Thanks, I would like the circle inside it

https://en.wikipedia.org/wiki/Fano_plane

Do you know why sage choose matroid to make this graphics ?

The Fano plane is really a combinatorial object. See for example
http://buzzard.pugetsound.edu/cs/section-15.html
on how to use Sage to explore it. It just happens to have a nice
picture associated to it, which the developers of the matroid
module implemented.


I just begin and my question might be nonsense.




Le 29/03/2018 à 16:48, David Joyner a écrit :

On Thu, Mar 29, 2018 at 9:32 AM, Henri Girard <henri.gir...@gmail.com>
wrote:

Hi,

I don' manage matroid well, is there no way for doing a fano's graph with
a
matrix ?

After I could find adjacent and incident matrix apparently in matroid is
not
possible ?

The fano matroid is not graphical
https://en.wikipedia.org/wiki/Graphic_matroid#Minors_and_duality
so it doesn't have an adjacency matrix in the sense of a graph.
Here is a graph whose picture looks a bit like the standard image
of the Fano matriod:

sage: Gamma =
Graph([(0,1),(0,2),(1,2),(1,3),(3,4),(1,4),(2,4),(2,5),(4,5)])
sage: A = Gamma.adjacency_matrix()
sage: A
[0 1 1 0 0 0]
[1 0 1 1 1 0]
[1 1 0 0 1 1]
[0 1 0 0 1 0]
[0 1 1 1 0 1]
[0 0 1 0 1 0]

I'm not sure if that is what you are looking for.


Any help welcome

Henri

--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] fano matrix

2018-03-29 Thread Henri Girard

Very near... Thanks, I would like the circle inside it

https://en.wikipedia.org/wiki/Fano_plane

Do you know why sage choose matroid to make this graphics ?

I just begin and my question might be nonsense.



Le 29/03/2018 à 16:48, David Joyner a écrit :

On Thu, Mar 29, 2018 at 9:32 AM, Henri Girard <henri.gir...@gmail.com> wrote:

Hi,

I don' manage matroid well, is there no way for doing a fano's graph with a
matrix ?

After I could find adjacent and incident matrix apparently in matroid is not
possible ?

The fano matroid is not graphical
https://en.wikipedia.org/wiki/Graphic_matroid#Minors_and_duality
so it doesn't have an adjacency matrix in the sense of a graph.
Here is a graph whose picture looks a bit like the standard image
of the Fano matriod:

sage: Gamma = Graph([(0,1),(0,2),(1,2),(1,3),(3,4),(1,4),(2,4),(2,5),(4,5)])
sage: A = Gamma.adjacency_matrix()
sage: A
[0 1 1 0 0 0]
[1 0 1 1 1 0]
[1 1 0 0 1 1]
[0 1 0 0 1 0]
[0 1 1 1 0 1]
[0 0 1 0 1 0]

I'm not sure if that is what you are looking for.


Any help welcome

Henri

--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] fano matrix

2018-03-29 Thread Henri Girard

Hi,

I don' manage matroid well, is there no way for doing a fano's graph 
with a matrix ?


After I could find adjacent and incident matrix apparently in matroid is 
not possible ?


Any help welcome

Henri

--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] error show(with_picture)

2018-03-27 Thread Henri Girard
Yes, that's the problem, I didn't think of that... I often noticed that 
sagenb and jupyter notebook have still differences. Is there a way to 
get it in jupyter. The presentation in sagenb is really excellent in table.


Thanks

Henri


Le 27/03/2018 à 14:19, David Joyner a écrit :

On Tue, Mar 27, 2018 at 3:54 AM, HG  wrote:

Hi,
I am trying this example : Gráfok - 01 -- Sage
But it's working on his pdf but not in my notebook (sage-8.1)
I guess it's an old function which is not working anymore ?
http://doc.sagemath.org/html/en/reference/graphs/sage/graphs/graph_database.html

G = GraphDatabase()
S = GraphQuery(G, display_cols=['graph6','aut_grp_size'],
num_vertices=4)
S.show(with_picture=True)
Any help to get it working ?

Using the CLI of Sage, I get this:

sage: G = GraphDatabase()
: S = GraphQuery(G, display_cols=['graph6','aut_grp_size'],num_vertices=4)
:

sage: S.show()

Graph6   Aut Grp Size

C?   24
C@   4
CB   2
CF   6
CJ   6
CK   8
CL   2
CN   2
C]   8
C^   4
C~   24

sage: S.show?

Signature:  S.show(max_field_size=20, with_picture=False)
Docstring:
Displays the results of a query in table format.

INPUT:
* "max_field_size" - width of fields in command prompt version
* "with_picture" - whether or not to display results with a
  picture of the graph (available only in the notebook)





Were you using the notebook?





Regards
Henri

--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] error show(with_picture)

2018-03-27 Thread Henri Girard

Yes I always use notebook sage -n=jupyter maybe it's sagenb I am trying


Le 27/03/2018 à 14:19, David Joyner a écrit :

On Tue, Mar 27, 2018 at 3:54 AM, HG  wrote:

Hi,
I am trying this example : Gráfok - 01 -- Sage
But it's working on his pdf but not in my notebook (sage-8.1)
I guess it's an old function which is not working anymore ?
http://doc.sagemath.org/html/en/reference/graphs/sage/graphs/graph_database.html

G = GraphDatabase()
S = GraphQuery(G, display_cols=['graph6','aut_grp_size'],
num_vertices=4)
S.show(with_picture=True)
Any help to get it working ?

Using the CLI of Sage, I get this:

sage: G = GraphDatabase()
: S = GraphQuery(G, display_cols=['graph6','aut_grp_size'],num_vertices=4)
:

sage: S.show()

Graph6   Aut Grp Size

C?   24
C@   4
CB   2
CF   6
CJ   6
CK   8
CL   2
CN   2
C]   8
C^   4
C~   24

sage: S.show?

Signature:  S.show(max_field_size=20, with_picture=False)
Docstring:
Displays the results of a query in table format.

INPUT:
* "max_field_size" - width of fields in command prompt version
* "with_picture" - whether or not to display results with a
  picture of the graph (available only in the notebook)





Were you using the notebook?





Regards
Henri

--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] matroids vamos

2018-03-25 Thread Henri Girard

I tried to graph V = matroids.named_matroids.Vamos()

but V.show() gives an error

NotImplementedError:
Is it the reason fano Pappus works I thaught it could work too ?
Any help welcome
Henri

--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] fano's plane

2018-03-24 Thread Henri Girard
Thank you I already found it in one of your articles (the best I found 
by the way on web), but it's not a circle I have got ? is half a circle ?


May be I don't understand the real meaning of it ?


Le 24/03/2018 à 13:26, David Joyner a écrit :

On Sat, Mar 24, 2018 at 7:22 AM, Henri Girard <henri.gir...@gmail.com> wrote:

Hi,

how to draw fano's plane in sagemath graph ?


One way is

sage: matroids.named_matroids.Fano().show()





--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] fano's plane

2018-03-24 Thread Henri Girard

Hi,

how to draw fano's plane in sagemath graph ?

--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: doc about combinatoric and graphs

2018-03-23 Thread Henri Girard

thanks i got it


Le 23/03/2018 à 18:20, slelievre a écrit :

Le vendredi 23 mars 2018 08:07:52 UTC+1, HG a écrit :
>
> I want to learn combinatoric and graphs with sage, I found few doc on
> web, but not really for beginners, I am a true "beginner" so any 
idea is

> welcome, I would prefer doc in french but I found only in english, so
> reading is not easy (but not impossible).

The book "Calcul mathématique avec Sage" is an excellent
resource for that. The original version is in French.
Translations to English and German exist, and a translation
to Spanish is in progress, if I remember correctly.

See the book's webpage:

    http://sagebook.gforge.inria.fr
--
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 post to this group, send email to sage-support@googlegroups.com 
.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] doc about combinatoric and graphs

2018-03-23 Thread Henri Girard

Hi,

I want to learn combinatoric and graphs with sage, I found few doc on 
web, but not really for beginners, I am a true "beginner" so any idea is 
welcome, I would prefer doc in french but I found only in english, so 
reading is not easy (but not impossible).


Kind regards

Henri

--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: Anyone ever used sympol from within Sage?

2018-03-22 Thread Henri Girard

I use chinese trigram utf8


Le 21/03/2018 à 18:51, kcrisman a écrit :



I think that people are more often using polymake and/or LattE
from within Sage nowadays ... I found out about SymPol
(https://www.geometrie.uni-rostock.de/software/
) today, has
anyone worked on a potential interface for that?  I do realize
this is probably abandonware to some extent, so just curious,
thanks!


Indeed, I suppose most of the coding for it was done by Thomas
Rehn, whose main job is a software engineer at a company, since
SymPol was released 7 years ago...


Thanks, that's what I figured but thought I'd ask.
--
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 post to this group, send email to sage-support@googlegroups.com 
.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Info about python3.6+

2018-03-01 Thread Henri Girard

Hi,
This is the notebook I am running, apparently sage runs with python3.6+ 
, is this exact ?



   About Jupyter Notebook


   Server Information:

You are using Jupyter notebook.

The version of the notebook server is: *5.4.0*
The server is running on this version of Python:

Python 3.6.4+ (default, Feb 12 2018, 08:25:03)
[GCC 7.3.0]


   Current Kernel Information:

┌┐
│ SageMath version 8.1, Release Date: 2017-12-07 │
│ Type "notebook()" for the browser-based notebook interface.│
│ Type "help()" for help.│
└┘


Best regards,
Henri

--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: installation proglems for sage binary on Ubuntu 17

2018-03-01 Thread Henri Girard

After installing on ubuntu I got this message and sage not running ?


sage
┌┐
│ SageMath version 8.1, Release Date: 2017-12-07 │
│ Type "notebook()" for the browser-based notebook interface.    │
│ Type "help()" for help.    │
└┘
Traceback (most recent call last):
  File "/usr/share/sagemath/bin/sage-ipython", line 7, in 
    from sage.repl.interpreter import SageTerminalApp
ImportError: No module named sage.repl.interpreter


Le 01/03/2018 à 14:03, Henri Girard a écrit :


Thanks, I didn't even notice it was packaged ! I used to get the 
binary but I like to have it as deb



Le 01/03/2018 à 11:47, slelievre a écrit :



Wed 2018-02-28 21:48:43 UTC, Tiago Oliveira Santana:

> I'm trying to install sage-7.6-Ubuntu_16.04-x86_64.tar.bz2 on 
Ubuntu 17,

> But I don't know what to do. Please Helping, I am new in Linux

Dear Tiago,

Since SageMath is now packaged for Debian, and since Ubuntu
is based on Debian, installation should be easy for you.

Starting from Ubuntu 17.04, you should be able to run

    sudo apt install sagemath-jupyter

in a terminal, and to get a working SageMath installation in your system.

You should also install the prerequisites for SageMath to work.
I would recommend:

    sudo apt update
    sudo apt install gfortran

Let us know if that works and which version of Sage that gets you.

Another option is to build from source.

Kind regards, Samuel


--
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 post to this group, send email to sage-support@googlegroups.com 
<mailto:sage-support@googlegroups.com>.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.




--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: duplicate legend

2018-02-03 Thread Henri Girard

Thanks I found :)

I did delete .TeXmacs  then I copied adriansage plugin in 
/usr/share/TeXmacs/plugin and in .TeXmacs again.


Then I rebooted and saw it endly in the menu, what a wonder !

Best,

Henri


Le 02/02/2018 à 14:11, adrian a écrit :
Still some work must be done in the Sage plugin. In the meantime, the 
following plugin adaptation to the Python's TeXmacs plugin should work 
in Linux. I will try to have the Sage plugin be updated in the coming 
weeks, but in the meantime you can try this one. Just extract itand 
put into your .TeXmacs file inside your plugins directory.


I still need to look into the graphs shown in the plugin.

-A.



On Monday, January 22, 2018 at 8:12:04 AM UTC-6, HG wrote:

Two years ago I made this pic in a texmacs sage session, but
unfortunatly sage doesn't work anymore with texmacs, I am
reproducing it
but I have the legend problem, otherwise I think it should be even
nicer
with new sage 8 xx .

Thanks for any help :)

Henri


Le 22/01/2018 à 14:57, Henri Girard a écrit :
> Hi,
>
> After looking in few old tickets, I can't correct the duplicate
legend ?
>
> c=3e8;h=6.626*(10^-34);k = 1.281*(10^-23)
> k1=8*pi*h*c;k2=(h*c)/k
> E(l,T)=k1*(l*1e-9)^-5*(1/(exp(k2/((l*1e-9)*T))-1))
> f1=0;f2=E(l,3500);f3=E(l,4000);f4=E(l,4500);
> params=dict(figsize=3,axes=False,fontsize=6,
>     frame=True,gridlines="major",
>     gridlinesstyle=dict(color="lightgrey",
>   linestyle="-"),
>     axes_labels=("$\Lambda[nm]$",\
>  "$E(\\Lambda)[KJ/nm$"),
>     legend_font_size=6)
> f1=0;f2=E(l,3500);f3=E(l,4000);f4=E(l,4500)
> b=plot([f2,f3],l,10,4000,legend_label="4000",
>    fill =[0, [0]],
>   fillcolor=['blue','green'],
>   fillalpha=1)
> p=plot([f1,f2],l,10,4000,legend_label="3000",
>    fill={1: [0]},
>    fillcolor=["red","yellow"],
>    fillalpha=1)
> d=plot([f3,f4],l,10,4000,legend_label="5000",
>    fill =[1, [0]],
>    fillcolor=['yellow','red'],
>    fillalpha=0.5)
> v=plot(p+b+d)
> v.show(**params)
>
> Any help ?
>
> Regards
>
> Henri
>

--
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 post to this group, send email to sage-support@googlegroups.com 
<mailto:sage-support@googlegroups.com>.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: duplicate legend

2018-02-02 Thread Henri Girard
Thanks you. Sorry but how to I use it ? Do I use the python's plugin ? 
Or should I have an adriansage plugin in the menu (which I haven't ?



Le 02/02/2018 à 14:11, adrian a écrit :
Still some work must be done in the Sage plugin. In the meantime, the 
following plugin adaptation to the Python's TeXmacs plugin should work 
in Linux. I will try to have the Sage plugin be updated in the coming 
weeks, but in the meantime you can try this one. Just extract itand 
put into your .TeXmacs file inside your plugins directory.


I still need to look into the graphs shown in the plugin.

-A.



On Monday, January 22, 2018 at 8:12:04 AM UTC-6, HG wrote:

Two years ago I made this pic in a texmacs sage session, but
unfortunatly sage doesn't work anymore with texmacs, I am
reproducing it
but I have the legend problem, otherwise I think it should be even
nicer
with new sage 8 xx .

Thanks for any help :)

Henri


Le 22/01/2018 à 14:57, Henri Girard a écrit :
> Hi,
>
> After looking in few old tickets, I can't correct the duplicate
legend ?
>
> c=3e8;h=6.626*(10^-34);k = 1.281*(10^-23)
> k1=8*pi*h*c;k2=(h*c)/k
> E(l,T)=k1*(l*1e-9)^-5*(1/(exp(k2/((l*1e-9)*T))-1))
> f1=0;f2=E(l,3500);f3=E(l,4000);f4=E(l,4500);
> params=dict(figsize=3,axes=False,fontsize=6,
>     frame=True,gridlines="major",
>     gridlinesstyle=dict(color="lightgrey",
>   linestyle="-"),
>     axes_labels=("$\Lambda[nm]$",\
>  "$E(\\Lambda)[KJ/nm$"),
>     legend_font_size=6)
> f1=0;f2=E(l,3500);f3=E(l,4000);f4=E(l,4500)
> b=plot([f2,f3],l,10,4000,legend_label="4000",
>    fill =[0, [0]],
>   fillcolor=['blue','green'],
>   fillalpha=1)
> p=plot([f1,f2],l,10,4000,legend_label="3000",
>    fill={1: [0]},
>    fillcolor=["red","yellow"],
>    fillalpha=1)
> d=plot([f3,f4],l,10,4000,legend_label="5000",
>    fill =[1, [0]],
>    fillcolor=['yellow','red'],
>    fillalpha=0.5)
> v=plot(p+b+d)
> v.show(**params)
>
> Any help ?
>
> Regards
>
> Henri
>

--
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 post to this group, send email to sage-support@googlegroups.com 
<mailto:sage-support@googlegroups.com>.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: I tried plotting the recent equation of sin and it does not let me execute it

2018-01-27 Thread Henri Girard
Here you have a relevant pdf for this kind of wishes. If you can get it 
it's a wonder !


http://www.math.usm.edu/dont_panic/draft1.pdf



Le 27/01/2018 à 00:55, John H Palmieri a écrit :
If you tried "-4sin(2x-pi)", maybe try instead "-4*sin(2*x-pi)" -- 
include * for multiplication.


On Friday, January 26, 2018 at 1:11:51 PM UTC-8, benjamin gonzalezjr 
wrote:


Good afternoon, my name is Benjamin Gonzalez Jr.
I need help on how to graph -4sin(2x-pi) on cocalc/sage. I tried
everything I could but unfortunately I wasn't able to. I need to
plot it and figure out x mins, xmax, etc.. also amplitude,
phase, period, midpoint, etc. Thanks you so much! Please answer as
soon as possible. Thanks!

--
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 post to this group, send email to sage-support@googlegroups.com 
.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: duplicate legend

2018-01-22 Thread Henri Girard
I found the problem it's because I use to put two functions (f1,f2only 
one needed f2) apparently it works but I have to correct my graphs.



Le 22/01/2018 à 21:59, HG a écrit :



Le lundi 22 janvier 2018 14:57:34 UTC+1, HG a écrit :

Hi,

After looking in few old tickets, I can't correct the duplicate
legend ?

c=3e8;h=6.626*(10^-34);k = 1.281*(10^-23)
k1=8*pi*h*c;k2=(h*c)/k
E(l,T)=k1*(l*1e-9)^-5*(1/(exp(k2/((l*1e-9)*T))-1))
f1=0;f2=E(l,3500);f3=E(l,4000);f4=E(l,4500);
params=dict(figsize=3,axes=False,fontsize=6,
 frame=True,gridlines="major",
 gridlinesstyle=dict(color="lightgrey",
   linestyle="-"),
 axes_labels=("$\Lambda[nm]$",\
  "$E(\\Lambda)[KJ/nm$"),
 legend_font_size=6)
f1=0;f2=E(l,3500);f3=E(l,4000);f4=E(l,4500)
b=plot([f2,f3],l,10,4000,legend_label="4000",
    fill =[0, [0]],
   fillcolor=['blue','green'],
   fillalpha=1)
p=plot([f1,f2],l,10,4000,legend_label="3000",
    fill={1: [0]},
    fillcolor=["red","yellow"],
    fillalpha=1)
d=plot([f3,f4],l,10,4000,legend_label="5000",
    fill =[1, [0]],
    fillcolor=['yellow','red'],
    fillalpha=0.5)
v=plot(p+b+d)
v.show(**params)

Any help ?

Regards

Henri

--
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 post to this group, send email to sage-support@googlegroups.com 
.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


  1   2   >