[sage-support] Re: import

2022-06-06 Thread HG
No answer ? 
I endly found a good work around at least for me at the moment

%run name.ipynb

Le dimanche 26 septembre 2021 à 10:31:49 UTC+2, HG a écrit :

> 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/52279c7c-346c-4040-8c49-df7ca19497fcn%40googlegroups.com.


[sage-support] sagemath 9.2 ubuntu

2020-10-30 Thread HG
Hi,
I just install hirsute hippo 21.04 and there is aldready sagemath-9.2, does 
somebody knows if it will be soon on groovy 20.10 ?
At the moment it's 9.2b12, or is there a way to install it without geing on 
hirsute ?
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/62894439-e507-492c-b7a5-946d7c6c58a5o%40googlegroups.com.


[sage-support] itikz /tikz

2020-03-29 Thread HG

https://pypi.org/project/itikz/

I just tried this website and it works fine. If somebody needs it it's 
an info.


I use it in sage after installing it : sage -sh and pip install itikz

Enjoy it :)

--
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/62e02c29-d46f-eca1-dda7-edc8506af30d%40gmail.com.


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

2020-03-02 Thread HG

Don't worry :)

I am not an expert in maths, but your notebook are interesting and I 
will translate some with some ideas of mine. I don't know well algebra 
though I can understand some very hight formulas and I like the design 
of the square and the cube I will do it in french for my son who is in 
3ième next year.


thanks

Henri

Le 02/03/2020 à 13:40, Manfred Einsiedler a écrit :

Sorry, no not even a German version. :-)

On Monday, March 2, 2020 at 9:03:45 AM UTC+1, HG wrote:

Is there a french version ?

Le 02/03/2020 à 08:34, HG a écrit :


thank you , sorry I didn't  understand that solution were notebooks

Henri

Le 02/03/2020 à 01:25, darwin doppelganger a écrit :

The book, the Sage example files and Jupyter notebook files are
all posted at their website,
https://tbward0.wixsite.com/books/journey
<https://tbward0.wixsite.com/books/journey>


On Sunday, March 1, 2020 at 4:54:21 AM UTC-6, HG wrote:

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

<https://groups.google.com/d/msgid/sage-support/59d80673-af38-491a-811b-4e56a35ad340%40googlegroups.com?utm_medium=email&utm_source=footer>.


-- 
You received this message because you are subscribed to the

Google Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from
it, send an email to sage-s...@googlegroups.com .
To view this discussion on the web visit

https://groups.google.com/d/msgid/sage-support/62081605-3351-4809-bf30-74a2ee88a1e9%40googlegroups.com

<https://groups.google.com/d/msgid/sage-support/62081605-3351-4809-bf30-74a2ee88a1e9%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
You received this message because you are subscribed to the Google 
Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to sage-support+unsubscr...@googlegroups.com 
<mailto:sage-support+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/6fc101b8-18d1-4873-9f1a-27b049ead5b7%40googlegroups.com 
<https://groups.google.com/d/msgid/sage-support/6fc101b8-18d1-4873-9f1a-27b049ead5b7%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/f96c5047-f0ef-54b0-bae6-9ffced30a1c5%40gmail.com.


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

2020-03-02 Thread HG

Is there a french version ?

Le 02/03/2020 à 08:34, HG a écrit :


thank you , sorry I didn't  understand that solution were notebooks

Henri

Le 02/03/2020 à 01:25, darwin doppelganger a écrit :
The book, the Sage example files and Jupyter notebook files are all 
posted at their website, https://tbward0.wixsite.com/books/journey 
<https://tbward0.wixsite.com/books/journey>



On Sunday, March 1, 2020 at 4:54:21 AM UTC-6, HG wrote:

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

<https://groups.google.com/d/msgid/sage-support/59d80673-af38-491a-811b-4e56a35ad340%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
You received this message because you are subscribed to the Google 
Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, 
send an email to sage-support+unsubscr...@googlegroups.com 
<mailto:sage-support+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/62081605-3351-4809-bf30-74a2ee88a1e9%40googlegroups.com 
<https://groups.google.com/d/msgid/sage-support/62081605-3351-4809-bf30-74a2ee88a1e9%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/b7c19314-50b3-d0a7-a8f5-daf62a278402%40gmail.com.


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

2020-03-01 Thread HG

thank you , sorry I didn't  understand that solution were notebooks

Henri

Le 02/03/2020 à 01:25, darwin doppelganger a écrit :
The book, the Sage example files and Jupyter notebook files are all 
posted at their website, https://tbward0.wixsite.com/books/journey 
<https://tbward0.wixsite.com/books/journey>



On Sunday, March 1, 2020 at 4:54:21 AM UTC-6, HG wrote:

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

<https://groups.google.com/d/msgid/sage-support/59d80673-af38-491a-811b-4e56a35ad340%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
You received this message because you are subscribed to the Google 
Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to sage-support+unsubscr...@googlegroups.com 
<mailto:sage-support+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/62081605-3351-4809-bf30-74a2ee88a1e9%40googlegroups.com 
<https://groups.google.com/d/msgid/sage-support/62081605-3351-4809-bf30-74a2ee88a1e9%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/2583ea2a-1657-6ef7-3389-fbf5d53ecb47%40gmail.com.


[sage-support] Re: two problems

2020-02-01 Thread HG
They just updated sagemath-9.0 in ubuntu 20.04, so back...

Le samedi 25 janvier 2020 09:55:56 UTC+1, HG a écrit :
>
> Hi,
> I used to build sage-9.0 no problem. But after an update my python3 and 2 
> seems broken with sage.
>
> /usr/bin/env: «python»: Aucun fichier ou dossier de ce type
> Error running the script 'relocate-once.py'. 
>
> I downloaded sagemath 9.0 binary 
>
> I tried to build but ecl is failing. So no more sage.
>
> Any ideas, I looked around with google which says it's a problem with 
> python 2-3, but they don't give any valid solution. I am on ubuntu 20.04
>
> 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/06aa33f2-2307-4b82-8c59-e5fdd90f54dc%40googlegroups.com.


[sage-support] Re: two problems

2020-01-25 Thread HG
To solve the problem : I anboned ubuntu for debian buster and then SID. I 
have got even a cherry on the cake ... Sagemath-9.0 working !

Le samedi 25 janvier 2020 09:55:56 UTC+1, HG a écrit :
>
> Hi,
> I used to build sage-9.0 no problem. But after an update my python3 and 2 
> seems broken with sage.
>
> /usr/bin/env: «python»: Aucun fichier ou dossier de ce type
> Error running the script 'relocate-once.py'. 
>
> I downloaded sagemath 9.0 binary 
>
> I tried to build but ecl is failing. So no more sage.
>
> Any ideas, I looked around with google which says it's a problem with 
> python 2-3, but they don't give any valid solution. I am on ubuntu 20.04
>
> 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/d501fe23-feef-4fb2-8e50-0c1b5248e6d8%40googlegroups.com.


[sage-support] two problems

2020-01-25 Thread HG
Hi,
I used to build sage-9.0 no problem. But after an update my python3 and 2 
seems broken with sage.

/usr/bin/env: «python»: Aucun fichier ou dossier de ce type
Error running the script 'relocate-once.py'. 

I downloaded sagemath 9.0 binary 

I tried to build but ecl is failing. So no more sage.

Any ideas, I looked around with google which says it's a problem with 
python 2-3, but they don't give any valid solution. I am on ubuntu 20.04

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/2ebfca12-4875-4fb5-90c4-56970c4b3155%40googlegroups.com.


[sage-support] Re: sage integrate in lyx

2019-06-07 Thread HG
Thanks to his blog and Dirk,
https://dirkmittler.homeip.net/blog/archives/6034#comment-42813
it's working 
Just follow Dirk's method and it should work
I got problem in example.lyx because I didn't see the function was obsolete
so be carefull and correct it to x=function("x") (t)

Le jeudi 6 juin 2019 14:54:55 UTC+2, HG a écrit :
>
> I tried sage in lyx from this web site 
> https://dirkmittler.homeip.net/blog/archives/6034
> after doing (i think) everything I haven't sagetex answer as in 
>
> https://wiki.lyx.org/uploads/Modules/Sage/
>
> Did somebody tried it ?
>
> Any help welcome, I want to write a book with lyx and examples from sage, 
> I used texmacs before and I want to see which sage session is best either 
> in texmacs or lyx because jupyter notebook are not so good for editing... 
> printing.
>
> HG
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/12a6d472-02e9-4f56-8abe-786ab53c81a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[sage-support] sage integrate in lyx

2019-06-06 Thread HG
I tried sage in lyx from this web site 
https://dirkmittler.homeip.net/blog/archives/6034
after doing (i think) everything I haven't sagetex answer as in 

https://wiki.lyx.org/uploads/Modules/Sage/

Did somebody tried it ?

Any help welcome, I want to write a book with lyx and examples from sage, I 
used texmacs before and I want to see which sage session is best either in 
texmacs or lyx because jupyter notebook are not so good for editing... 
printing.

HG

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/8e773825-2505-434d-ad79-0876bf02c80c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[sage-support] sage dev in /usr for ubuntu

2019-03-16 Thread HG
Hi,
I have ubuntu 18.04 with sagemath-8.1, I use sagemath-8.6 (this one is call 
from its dir) and I compiled dev sage 8.7, i don't need 3 sage, i only want 
sage dev ans I wonder if I install it as a normal programm /usr after 
./configure --prefix=/usr make and make install if it could work ?
I have no risk on my pc if it's mess I just reinstall a fresh one.
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] Re: Quaternions, how to speed up computation

2018-11-19 Thread HG
sage-support is one of the best list. English is not my mother language and 
sometimes I don't explain myself well but always people here are very kind 
and trying to help... It's very important this can long !

Le vendredi 14 septembre 2018 18:00:55 UTC+2, Peter Luschny a écrit :
>
> How can I speed up this computation?
>
> H. = QuaternionAlgebra(SR, -1, -1)
> def Q(a, b, c, d): return H(a + b*i + c*j + d*k)
> def P(n): return Q(x+1,1,1,1)*P(n-1) if n > 0 else Q(1,0,0,0)
> def p(n): return P(n)[0].list()
> for n in (0..20): print [n], p(n)
>
> [0] [1]
> [1] [1, 1]
> [2] [-2, 2, 1]
> [3] [-8, -6, 3, 1]
> [4] [-8, -32, -12, 4, 1]
> [5] [16, -40, -80, -20, 5, 1]
> [6] [64, 96, -120, -160, -30, 6, 1]
> ...
>
> With Mathematica this takes 6 sec, with Sage it takes 
> hours, (in fact I interrupted after n=15). 
>
> Thanks, Peter
>
>
>

-- 
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: graphic array fontsize

2018-11-14 Thread HG
In sagemath-8.5beta3, I got it working after deleting all figsize and 
fontsize in all subplot
@interact 
def _(t0=0, q0=1e-6, I0=0, 
  L=slider(1e-3,1e0,0.01,12e-2), 
  C=slider(1e-9,1e-5,1e-7, 1.5e-6),tmax=1e-2): 
p1 = plot(q_LC(t0=t0, q0=q0, I0=I0, L=L,
C=C), (t,0,tmax), color='blue') 
p2 =plot(q_I(t0=t0, q0=q0, I0=I0,L=L, C=C), 
 (t,0,tmax), color='red') 
g = graphics_array([p1, p2]); 
g.show(frame=True,figsize=[6,2])

On github I view the file :
https://github.com/ictus5d/asa/blob/master/14-11-rlc.ipynb

Le jeudi 5 juillet 2018 11:00:32 UTC+2, HG a écrit :
>
> Hi, 
>
> In this graphic the second graphic p2 doesn't modify fontsize=8, but if 
> I interchange it does, that means the second graphic is invalid to the 
> command. 
>
> Any help ? 
>
> Regards 
>
> r=2/sqrt(n(pi)); 
>
> p1=plot(circle((0,0),r,color="red",fill=True,alpha=0.2,fontsize=8)+\ 
> polygon(((-1,1),(1,1),(1,-1),(-1,-1)),color="blue",alpha=0.2, 
>  thickness=1,frame=True,axes=True,fontsize=8));p2=c 
> g = graphics_array([p1,p2]); 
> g.show(frame=True,figsize=10,fontsize=8) 
>
>
>

-- 
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] sagemath-8.4.2 ubuntu 19.04

2018-11-02 Thread HG
Disco Dingo future ubuntu 19.04 has sagemath-8.4.2 for those who could be 
interested (very early disco even not alpha)

-- 
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] Plutôt une info

2018-10-15 Thread HG
Hi,
I was looking hide in code cells... I found colapse selected outputs in 
jypyter-lab and many interesting things.

-- 
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: Unable to display graphs from Ubuntu 18.04, Sage 8.3, 64 bit PC

2018-10-06 Thread HG
I installed a fresh cosmic ubuntu 18.10 which should be ready in two weeks 
about, sage-8.3 is in the repo and is working well

Le samedi 11 août 2018 15:38:24 UTC+2, Graham Gerrard a écrit :
>
> 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 configured 
> 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.
>
> Any ideas?
>
> Graham
>

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

2018-10-05 Thread HG
yes exactly what I wanted. Sorry again for the bad explanation of my 
problem, by the way I hadn't found the wiki you gave the link
Thanks
Henri

Le vendredi 5 octobre 2018 13:05:06 UTC+2, HG a écrit :
>
> 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.


[sage-support] Re: solve

2018-10-05 Thread HG
sorry for the bazar !
I don't know how to make latex in the mail
I will make it with sage 

Le vendredi 5 octobre 2018 13:05:06 UTC+2, HG a écrit :
>
> 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.


[sage-support] Re: solve

2018-10-05 Thread HG
Sorry for not being clear :)
I wonder if I can calculate 
x'′=γ(x−vt)

t′=γ(t−vxc2)
γ=11√−v2c2
Le vendredi 5 octobre 2018 13:05:06 UTC+2, HG a écrit :
>
> I would like to solve these equations but I don't know how?
> >
> > t'=gamma*(t-vx/c^2);show(t')
> > x'=gamma*(x-v*t);show(x')
> >
> > 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.


[sage-support] solve

2018-10-05 Thread HG
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.


[sage-support] Re: symbol hbar

2018-09-11 Thread HG
I found here 
https://share.cocalc.com/share/300db09ab17b529fae200878b35b31df75aae680/HigherOrder.pdf


Le mardi 11 septembre 2018 09:51:48 UTC+2, HG a écrit :
>
> Hi,
>
> J'aimerais utiliser ce symbol dans du code, à la place de ma variable hb, 
> je n'y arrive pas
> Sorry in english : I would like to use this symbol \hbar in coding instead 
> my variable hb, I look in sage-support and I found with print, but how to 
> use it directly as a declared variable ? 
>
> If possible ? Any help welcome
> Regards
> Henri
>
> print u"\u210F","=",hb,"J.s"
>
> ℏ = 1.00e-34 J.s
>
>
>

-- 
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] symbol hbar

2018-09-11 Thread HG
Hi,

J'aimerais utiliser ce symbol dans du code, à la place de ma variable hb, 
je n'y arrive pas
Sorry in english : I would like to use this symbol \hbar in coding instead 
my variable hb, I look in sage-support and I found with print, but how to 
use it directly as a declared variable ? 

If possible ? Any help welcome
Regards
Henri

print u"\u210F","=",hb,"J.s"

ℏ = 1.00e-34 J.s


-- 
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: nabla (levi-civita tensor of g)

2018-08-29 Thread HG
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.


[sage-support] maxima in sage openmath

2018-04-15 Thread HG
HI,
I tried this :

maxima.plot2d('[cos(7*x),cos(23*x)^4,sin(13*x)^3]','[x,0,1]','[plot_format,openmath]'),
 
but noting display in jupyter notebook ?

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.


[sage-support] Re: Route inspection problem

2018-04-02 Thread HG
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  with these indexers 
[10] of 
Is there a way getting it working ?



Le dimanche 1 avril 2018 08:19:11 UTC+2, jori.ma...@uta.fi a écrit :
>
> I was walking at 
> https://kintulammi.fi/wp-content/uploads/Kintulammi_Opaskartta.jpg and 
> hence wondered if Sagemath has a function to solve 
> https://en.wikipedia.org/wiki/Route_inspection_problem . Didn't found 
> any, 
> is it hidden with some other name or module? 
>
> -- 
> Jori Mäntysalo 
>

-- 
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] error show(with_picture)

2018-03-27 Thread HG
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 ?
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.


[sage-support] Re: duplicate legend

2018-01-22 Thread HG


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.


[sage-support] about tikz (new infos)

2017-12-20 Thread HG
Recently I couldn't use anymore tikz (circuitikz) in sagemath, I had to 
come back to a fresh xenial and look back to tikz.
In fact it does work well again, i think it's because python' s version. 
And the cherry on the cake : Just use 
%install_ext 
http://raw.github.com/jrjohansson/ipython-circuitikz/master/circuitikz.py 
or like i did, get his git on your local home and change the address of the 
circuitikz.py to adjust to your path
(this is mine : %install_ext /home/pi/ipy/circuitikz.py) :

%%circuitikz filename=rlc dpi=150
\begin{tikzpicture}
\draw[step=0.5,very thin,black!20] (-1,-0.5) grid (6,2.5);
\path (0,0) coordinate (ref_gnd);
\draw
  (ref_gnd) to[american voltage source=\(V\)] ++(0,2)
to[R=\(R_1\)] ++(3,0) 
to[L=\(L_1\)] ++(3,0) 
to[C=\(C_1\)] ++(0,-2) 
  -- (ref_gnd);
\end{tikzpicture}




-- 
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: Generating Tikz codes from Sage for drawing scattering points in 3D ...

2017-10-03 Thread HG
I used a lot tikz/circuitikz but with new version of sage 8 (and before I 
think too) it doesn't work so smoothly.
A the moment I use %%tikzmagic ( 
https://github.com/robjstan/tikzmagic/blob/master/example.ipynb )
and 
https://github.com/mkrphys/ipython-tikzmagic/blob/master/tikzmagic_test.ipynb
but they are problems. For example, 

%%tikz --scale=0.5 --border=10 works this way but if you write --scale 2 it 
doesn't work.
And many commands have to be changed or don't simply work.
At the moment I do geometry with sage, it's long but quiet pretty, 
but if I could mixed both sage and tikz would be sometimes better 

Le lundi 18 septembre 2017 02:35:19 UTC+2, Jimmy Lee a écrit :
>
> I am a beginner in Sage and Tikz, and have written the following snippet 
> of Sage code:
>
>
> P = Polyhedron(ieqs=[(30, -2, -2, -1), (25, -1.5, -2, -3),(20,-2,-1,-1), (0, 
> 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1)])
> pts = P.integral_points()
> point3d(pts,rgbcolor=(1,0, 0), size=10) + P.plot(rgbcolor = 'yellow', opacity 
> = 0.5)
>
>
> The purpose of the codes is to generate the integral points interior to 
> the polytopes bound by 6 inequalities as given in the codes. The output is 
> the following.
>
> [image: enter image description here] 
> 
>
>
> However, I tried to following the following reference:
>
>
> http://doc.sagemath.org/html/en/thematic_tutorials/polytope_tikz.html
>
>
> to generate Tikz codes for LaTeX and failed. Unlike Polyhedron which is a 
> kind of object that can respond to "projection", point3d generates only a 
> Graphics3D object which doesn't understand "projection".
>
>
> Is there any way to output these points to Tikz as well?
>
>
> Also, is it possible to ask Sage to color each of the facets of the 
> polytope in different colors (just like Tikz can)?
>
>
> Many thanx in advance!
>

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

2017-09-23 Thread HG
I am wondering what is the real time of compilation ?
Is it a normal time or slow ?
Regards
Henri
AMD 8 cores 16 Go ssd 256 Go ubuntu 17.10

Yes, Sage starts.
make[2] : on quitte le répertoire « /home/pi/sage/build/make »
make[1] : on quitte le répertoire « /home/pi/sage/build/make »

real56m59,879s
user106m57,735s
sys3m35,449s
Sage build/upgrade complete!

To install small scripts to directly run Sage's versions of GAP,
the PARI/GP interpreter, Maxima, or Singular etc. (by typing e.g.
just 'gap' or 'gp') into a standard 'bin' directory, start Sage
by typing 'sage' (or './sage') and enter something like

install_scripts('/usr/local/bin')

at the Sage command prompt ('sage:').


-- 
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: linear transformations (by jason Grout)

2017-09-09 Thread HG
John's suggestion works for me on local sage-8.1beta 4

Le vendredi 8 septembre 2017 16:00:27 UTC+2, HG a écrit :
>
> https://wiki.sagemath.org/interact/linear_algebra
> @interact
> def linear_transformation(A=matrix([[1,-1],[-1,1/2]]),theta=slider(0, 
> 2*pi, .1), r=slider(0.1, 2, .1, default=1)):
> v=vector([r*cos(theta), r*sin(theta)])
> w = A*v
> circles = sum([circle((0,0), radius=i, color='black') for i in [1..2]])
> pretty_print(html("$%s %s=%s$"%tuple(map(latex, [A, v.column().n(4), 
> w.column().n(4)]
> show(v.plot(color='red')+w.plot(color='blue')+circles,aspect_ratio=1)
>
> I got this error in sagemath 8.1(beta4)
>
> Any help ?
>
>Traceback (most recent call 
> last)/home/pi/sage/local/lib/python2.7/site-packages/ipywidgets/widgets/interaction.pyc
>  in update(self, *args)215 value = 
> widget.get_interact_value()216 
> self.kwargs[widget._kwarg] = value--> 217 self.result = 
> self.f(**self.kwargs)218 if self.auto_display and 
> self.result is not None:219 display(self.result)
>  in linear_transformation(A, theta, r)  4   
>   w = A*v  5 circles = sum([circle((Integer(0),Integer(0)), radius=i, 
> color='black') for i in 
> (ellipsis_range(Integer(1),Ellipsis,Integer(2)))])> 6 
> pretty_print(html("$%s %s=%s$"%tuple(map(latex, [A, v.column().n(Integer(4)), 
> w.column().n(Integer(4))]  7 
> show(v.plot(color='red')+w.plot(color='blue')+circles,aspect_ratio=Integer(1))
> /home/pi/sage/src/sage/structure/element.pyx in 
> sage.structure.element.Element.__getattr__ 
> (/home/pi/sage/src/build/cythonized/sage/structure/element.c:4286)()477   
>   AttributeError: 'LeftZeroSemigroup_with_category.element_class' 
> object has no attribute 'blah_blah'478 """--> 479 return 
> self.getattr_from_category(name)480 481 cdef 
> getattr_from_category(self, name):
> /home/pi/sage/src/sage/structure/element.pyx in 
> sage.structure.element.Element.getattr_from_category 
> (/home/pi/sage/src/build/cythonized/sage/structure/element.c:4395)()490   
>   else:491 cls = P._abstract_element_class--> 492 
> return getattr_from_other_class(self, cls, name)493 494 def 
> __dir__(self):
> /home/pi/sage/src/sage/cpython/getattr.pyx in 
> sage.cpython.getattr.getattr_from_other_class 
> (/home/pi/sage/src/build/cythonized/sage/cpython/getattr.c:1822)()252 
> dummy_error_message.cls = type(self)253 
> dummy_error_message.name = name--> 254 raise dummy_attribute_error
> 255 attribute = attr256 # Check for a descriptor (__get__ 
> in Python)
> AttributeError: 'sage.rings.real_mpfr.RealNumber' object has no attribute 
> 'column'
>
>
> ​
>
>

-- 
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: linear transformations (by jason Grout)

2017-09-09 Thread HG


Le vendredi 8 septembre 2017 16:00:27 UTC+2, HG a écrit :
>
> https://wiki.sagemath.org/interact/linear_algebra
> @interact
> def linear_transformation(A=matrix([[1,-1],[-1,1/2]]),theta=slider(0, 
> 2*pi, .1), r=slider(0.1, 2, .1, default=1)):
> v=vector([r*cos(theta), r*sin(theta)])
> w = A*v
> circles = sum([circle((0,0), radius=i, color='black') for i in [1..2]])
> pretty_print(html("$%s %s=%s$"%tuple(map(latex, [A, v.column().n(4), 
> w.column().n(4)]
> show(v.plot(color='red')+w.plot(color='blue')+circles,aspect_ratio=1)
>
> I got this error in sagemath 8.1(beta4)
>
> Any help ?
>
>Traceback (most recent call 
> last)/home/pi/sage/local/lib/python2.7/site-packages/ipywidgets/widgets/interaction.pyc
>  in update(self, *args)215 value = 
> widget.get_interact_value()216 
> self.kwargs[widget._kwarg] = value--> 217 self.result = 
> self.f(**self.kwargs)218 if self.auto_display and 
> self.result is not None:219 display(self.result)
>  in linear_transformation(A, theta, r)  4   
>   w = A*v  5 circles = sum([circle((Integer(0),Integer(0)), radius=i, 
> color='black') for i in 
> (ellipsis_range(Integer(1),Ellipsis,Integer(2)))])> 6 
> pretty_print(html("$%s %s=%s$"%tuple(map(latex, [A, v.column().n(Integer(4)), 
> w.column().n(Integer(4))]  7 
> show(v.plot(color='red')+w.plot(color='blue')+circles,aspect_ratio=Integer(1))
> /home/pi/sage/src/sage/structure/element.pyx in 
> sage.structure.element.Element.__getattr__ 
> (/home/pi/sage/src/build/cythonized/sage/structure/element.c:4286)()477   
>   AttributeError: 'LeftZeroSemigroup_with_category.element_class' 
> object has no attribute 'blah_blah'478 """--> 479 return 
> self.getattr_from_category(name)480 481 cdef 
> getattr_from_category(self, name):
> /home/pi/sage/src/sage/structure/element.pyx in 
> sage.structure.element.Element.getattr_from_category 
> (/home/pi/sage/src/build/cythonized/sage/structure/element.c:4395)()490   
>   else:491 cls = P._abstract_element_class--> 492 
> return getattr_from_other_class(self, cls, name)493 494 def 
> __dir__(self):
> /home/pi/sage/src/sage/cpython/getattr.pyx in 
> sage.cpython.getattr.getattr_from_other_class 
> (/home/pi/sage/src/build/cythonized/sage/cpython/getattr.c:1822)()252 
> dummy_error_message.cls = type(self)253 
> dummy_error_message.name = name--> 254 raise dummy_attribute_error
> 255 attribute = attr256 # Check for a descriptor (__get__ 
> in Python)
> AttributeError: 'sage.rings.real_mpfr.RealNumber' object has no attribute 
> 'column'
>
>
> ​
>
>

-- 
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] linear transformations (by jason Grout)

2017-09-08 Thread HG
https://wiki.sagemath.org/interact/linear_algebra
@interact
def linear_transformation(A=matrix([[1,-1],[-1,1/2]]),theta=slider(0, 2*pi, 
.1), r=slider(0.1, 2, .1, default=1)):
v=vector([r*cos(theta), r*sin(theta)])
w = A*v
circles = sum([circle((0,0), radius=i, color='black') for i in [1..2]])
pretty_print(html("$%s %s=%s$"%tuple(map(latex, [A, v.column().n(4), 
w.column().n(4)]
show(v.plot(color='red')+w.plot(color='blue')+circles,aspect_ratio=1)

I got this error in sagemath 8.1(beta4)

Any help ?

   Traceback (most recent call 
last)/home/pi/sage/local/lib/python2.7/site-packages/ipywidgets/widgets/interaction.pyc
 in update(self, *args)215 value = 
widget.get_interact_value()216 
self.kwargs[widget._kwarg] = value--> 217 self.result = 
self.f(**self.kwargs)218 if self.auto_display and 
self.result is not None:219 display(self.result)
 in linear_transformation(A, theta, r)  4 
w = A*v  5 circles = sum([circle((Integer(0),Integer(0)), radius=i, 
color='black') for i in (ellipsis_range(Integer(1),Ellipsis,Integer(2)))])> 
6 pretty_print(html("$%s %s=%s$"%tuple(map(latex, [A, 
v.column().n(Integer(4)), w.column().n(Integer(4))]  7 
show(v.plot(color='red')+w.plot(color='blue')+circles,aspect_ratio=Integer(1))
/home/pi/sage/src/sage/structure/element.pyx in 
sage.structure.element.Element.__getattr__ 
(/home/pi/sage/src/build/cythonized/sage/structure/element.c:4286)()477 
AttributeError: 'LeftZeroSemigroup_with_category.element_class' object 
has no attribute 'blah_blah'478 """--> 479 return 
self.getattr_from_category(name)480 481 cdef 
getattr_from_category(self, name):
/home/pi/sage/src/sage/structure/element.pyx in 
sage.structure.element.Element.getattr_from_category 
(/home/pi/sage/src/build/cythonized/sage/structure/element.c:4395)()490 
else:491 cls = P._abstract_element_class--> 492 
return getattr_from_other_class(self, cls, name)493 494 def 
__dir__(self):
/home/pi/sage/src/sage/cpython/getattr.pyx in 
sage.cpython.getattr.getattr_from_other_class 
(/home/pi/sage/src/build/cythonized/sage/cpython/getattr.c:1822)()252   
  dummy_error_message.cls = type(self)253 dummy_error_message.name 
= name--> 254 raise dummy_attribute_error255 attribute = 
attr256 # Check for a descriptor (__get__ in Python)
AttributeError: 'sage.rings.real_mpfr.RealNumber' object has no attribute 
'column'


​

-- 
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: For info ?

2017-09-03 Thread HG
Well after crashing with SID i came back to the old formula : I compiled.
I tried  something else because my computer crashed each time I compiled 
sage-8.0, maybe I have a RAM problem...
This time I do it with a yakkety clean install. I worked then my problem is 
solved

Le samedi 2 septembre 2017 17:17:49 UTC+2, HG a écrit :
>
> I would like to know when sage -8.0 will be in ppa AIMS ?
> best
>

-- 
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: For info ?

2017-09-02 Thread HG
Thanks... As I am on arfull I added SID but I am not sure that a good thing 
?

Le samedi 2 septembre 2017 17:17:49 UTC+2, HG a écrit :
>
> I would like to know when sage -8.0 will be in ppa AIMS ?
> best
>

-- 
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] For info ?

2017-09-02 Thread HG
I would like to know when sage -8.0 will be in ppa AIMS ?
best

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

2017-08-11 Thread HG
Hi,
https://cocalc.com/projects/a29d19b9-8c4e-4c7e-a06d-8ae10c53a33f/files/yysagegrid.sagews

I share this yin -yang... The mesh=True doesn't appear on the second 
picture mais does on the first ?

Any help ?

Thanks

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] Re: Error in graphic

2017-07-11 Thread HG
agemath-pAXPW_/sagemath-7.6/sage/src/build/cythonized/sage/ext/fast_callable.c:5988)
  File "sage/symbolic/expression.pyx", line 11367, in 
sage.symbolic.expression.Expression._fast_callable_ 
(/build/sagemath-pAXPW_/sagemath-7.6/sage/src/build/cythonized/sage/symbolic/expression.cpp:62885)
  File 
"/usr/lib/python2.7/dist-packages/sage/symbolic/expression_conversions.py", 
line 1676, in fast_callable
return FastCallableConverter(ex, etb)()
  File 
"/usr/lib/python2.7/dist-packages/sage/symbolic/expression_conversions.py", 
line 217, in __call__
return self.arithmetic(div, div.operator())
  File 
"/usr/lib/python2.7/dist-packages/sage/symbolic/expression_conversions.py", 
line 1604, in arithmetic
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
  File 
"/usr/lib/python2.7/dist-packages/sage/symbolic/expression_conversions.py", 
line 1604, in 
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
  File "sage/ext/fast_callable.pyx", line 734, in 
sage.ext.fast_callable.ExpressionTreeBuilder.call 
(/build/sagemath-pAXPW_/sagemath-7.6/sage/src/build/cythonized/sage/ext/fast_callable.c:6984)
  File "sage/ext/fast_callable.pyx", line 609, in 
sage.ext.fast_callable.ExpressionTreeBuilder.__call__ 
(/build/sagemath-pAXPW_/sagemath-7.6/sage/src/build/cythonized/sage/ext/fast_callable.c:5988)
  File "sage/symbolic/expression.pyx", line 11367, in 
sage.symbolic.expression.Expression._fast_callable_ 
(/build/sagemath-pAXPW_/sagemath-7.6/sage/src/build/cythonized/sage/symbolic/expression.cpp:62885)
  File 
"/usr/lib/python2.7/dist-packages/sage/symbolic/expression_conversions.py", 
line 1676, in fast_callable
return FastCallableConverter(ex, etb)()
  File 
"/usr/lib/python2.7/dist-packages/sage/symbolic/expression_conversions.py", 
line 226, in __call__
return self.composition(ex, operator)
  File 
"/usr/lib/python2.7/dist-packages/sage/symbolic/expression_conversions.py", 
line 1642, in composition
return self.etb.call(function, *ex.operands())
  File "sage/ext/fast_callable.pyx", line 734, in 
sage.ext.fast_callable.ExpressionTreeBuilder.call 
(/build/sagemath-pAXPW_/sagemath-7.6/sage/src/build/cythonized/sage/ext/fast_callable.c:6984)
  File "sage/ext/fast_callable.pyx", line 609, in 
sage.ext.fast_callable.ExpressionTreeBuilder.__call__ 
(/build/sagemath-pAXPW_/sagemath-7.6/sage/src/build/cythonized/sage/ext/fast_callable.c:5988)
  File "sage/symbolic/expression.pyx", line 11367, in 
sage.symbolic.expression.Expression._fast_callable_ 
(/build/sagemath-pAXPW_/sagemath-7.6/sage/src/build/cythonized/sage/symbolic/expression.cpp:62885)
  File 
"/usr/lib/python2.7/dist-packages/sage/symbolic/expression_conversions.py", 
line 1676, in fast_callable
return FastCallableConverter(ex, etb)()
  File 
"/usr/lib/python2.7/dist-packages/sage/symbolic/expression_conversions.py", 
line 217, in __call__
return self.arithmetic(div, div.operator())
  File 
"/usr/lib/python2.7/dist-packages/sage/symbolic/expression_conversions.py", 
line 1604, in arithmetic
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
  File 
"/usr/lib/python2.7/dist-packages/sage/symbolic/expression_conversions.py", 
line 1604, in 
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
  File "sage/ext/fast_callable.pyx", line 734, in 
sage.ext.fast_callable.ExpressionTreeBuilder.call 
(/build/sagemath-pAXPW_/sagemath-7.6/sage/src/build/cythonized/sage/ext/fast_callable.c:6984)
  File "sage/ext/fast_callable.pyx", line 609, in 
sage.ext.fast_callable.ExpressionTreeBuilder.__call__ 
(/build/sagemath-pAXPW_/sagemath-7.6/sage/src/build/cythonized/sage/ext/fast_callable.c:5988)
  File "sage/symbolic/expression.pyx", line 11367, in 
sage.symbolic.expression.Expression._fast_callable_ 
(/build/sagemath-pAXPW_/sagemath-7.6/sage/src/build/cythonized/sage/symbolic/expression.cpp:62885)
  File 
"/usr/lib/python2.7/dist-packages/sage/symbolic/expression_conversions.py", 
line 1676, in fast_callable
return FastCallableConverter(ex, etb)()
  File 
"/usr/lib/python2.7/dist-packages/sage/symbolic/expression_conversions.py", 
line 212, in __call__
return self.symbol(ex)
  File 
"/usr/lib/python2.7/dist-packages/sage/symbolic/expression_conversions.py", 
line 1625, in symbol
return self.etb.var(SR(ex))
  File "sage/ext/fast_callable.pyx", line 681, in 
sage.ext.fast_callable.ExpressionTreeBuilder.var 
(/build/sagemath-pAXPW_/sagemath-7.6/sage/src/build/cythonized/sage/ext/fast_callable.c:6565)
ValueError: Variable 't' not found



Le vendredi 30 juin 2017 09:21:18 UTC+2, HG a écrit :
>
> Hi,
>  I got this example from here :
>
> http://arachnoid.com/sage/differential1.html
>
> For many years 

[sage-support] Here is an example

2017-07-10 Thread HG
Hi,
This is a mathematica example, but I am not able to do something 
ressembling this yin yang grid a challenger ?
https://github.com/aishenri/sage/blob/master/gridyy.pdf
the cdf and noteboob are on the same dir.
As sagemath seems to be an alternative would be great ?
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.


[sage-support] Re: How to write 10exp(-5) in SAGEMATH

2017-07-03 Thread HG
I would to the first or the second 
n(10^(-8))
n(10**(-8))
the third I think it's not right but I am an expert

Le lundi 3 juillet 2017 16:39:54 UTC+2, Fjordforsk A/S a écrit :
>
> Hi, how does one write 10^(-8) ?
>
> Is it as the conventional way 10**(-8) or is it 10exp(-8) ?
>

-- 
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: Still unable to plot long function

2017-07-03 Thread HG
What are you expecting to get ? I see inside few times the speed of light 
... What 's the meaning of the equation ?

Le lundi 3 juillet 2017 15:46:37 UTC+2, Fjordforsk A/S a écrit :
>
> Hi, I tried many re-edits, and found a few errors along the way, however, 
> there seems not to be any errors left, still nothing happens when issuing 
> the plot3d command:
>
> plot3d(lambda x,y:(exp(I*2000*(1.60217662*10**(-19))/(299792458*6.6260700*
> : 
> 10**(-34)))-(sqrt(I*(1.60217662*10**(-19))/(4*6.62607004*10**(-34)*2997924
> : 
> 58*2000))-1.60217662*10**(-19))**2)*2000**2)/(((6.62607004*10**(-34))*
> : 
> *2)**299792458**2)))*(x**2+y**2)).real_part(),(x,-3*pi,3*pi),(y,0,2), adap
> : tive=True, color=cmsel)
>
>
> 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.


[sage-support] Re: Still unable to plot long function

2017-07-03 Thread HG


Graphics3d Object
I don't know why it doesn't display inline



%matplotlib inline
var("y")
a=plot3d(lambda x,y:(exp(I*2000*(1.60217662*10**(-19))\
   
/(299792458*6.6260700*10**(-34)))-(sqrt(I*(1.60217662*10**(-19))\
   
/(4*6.62607004*10**(-34)*299792458*2000))-1.60217662*10**(-19))**2)*2000**2)\

  
/(((6.62607004*10**(-34))*2)**299792458**2)))*(x**2+y**2)).real_part(),
   (x,-3*pi,3*pi),(y,0,2),adaptive=True, color="red")
a.show()


Le lundi 3 juillet 2017 15:46:37 UTC+2, Fjordforsk A/S a écrit :
>
> Hi, I tried many re-edits, and found a few errors along the way, however, 
> there seems not to be any errors left, still nothing happens when issuing 
> the plot3d command:
>
> plot3d(lambda x,y:(exp(I*2000*(1.60217662*10**(-19))/(299792458*6.6260700*
> : 
> 10**(-34)))-(sqrt(I*(1.60217662*10**(-19))/(4*6.62607004*10**(-34)*2997924
> : 
> 58*2000))-1.60217662*10**(-19))**2)*2000**2)/(((6.62607004*10**(-34))*
> : 
> *2)**299792458**2)))*(x**2+y**2)).real_part(),(x,-3*pi,3*pi),(y,0,2), adap
> : tive=True, color=cmsel)
>
>
> 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.


[sage-support] Re: (sagetex vs pythontex)+foreach

2017-07-03 Thread HG
I used circuitikz with sage and it's fine ?
Can you detailed what you mean with tikz ?
I can't use sagetex, so I will try pythontex


Le lundi 3 juillet 2017 11:00:38 UTC+2, Oguz Kurt a écrit :
>
> Hi:
>
> I typed a single page of basic math randomly. While doing so, I used 
> sagetex for randomization mostly. However, I realized a few things:
>
> 1. sagetex does not interact well with many environments including TIKZ. 
>
> 2. It does not really nicely plug-into other environments in general 
> (newcommand included).
>
> 3. Pythontex does these better. 
>
> 4. do not try to use pythontex and sagetex packages at the same time.
>
> Any suggestions?
>
> Thanks,
> Kurt
>

-- 
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: Error in graphic

2017-07-02 Thread HG
allable.pyx", line 734, in 
sage.ext.fast_callable.ExpressionTreeBuilder.call 
(/usr/lib/sagemath//src/build/cythonized/sage/ext/fast_callable.c:6981)
  File "sage/ext/fast_callable.pyx", line 609, in 
sage.ext.fast_callable.ExpressionTreeBuilder.__call__ 
(/usr/lib/sagemath//src/build/cythonized/sage/ext/fast_callable.c:5985)
  File "sage/symbolic/expression.pyx", line 11261, in 
sage.symbolic.expression.Expression._fast_callable_ 
(/usr/lib/sagemath//src/build/cythonized/sage/symbolic/expression.cpp:62249)
  File 
"/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py",
 line 1579, in fast_callable
return FastCallableConverter(ex, etb)()
  File 
"/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py",
 line 217, in __call__
return self.arithmetic(div, div.operator())
  File 
"/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py",
 line 1507, in arithmetic
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
  File 
"/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py",
 line 1507, in 
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
  File "sage/ext/fast_callable.pyx", line 734, in 
sage.ext.fast_callable.ExpressionTreeBuilder.call 
(/usr/lib/sagemath//src/build/cythonized/sage/ext/fast_callable.c:6981)
  File "sage/ext/fast_callable.pyx", line 609, in 
sage.ext.fast_callable.ExpressionTreeBuilder.__call__ 
(/usr/lib/sagemath//src/build/cythonized/sage/ext/fast_callable.c:5985)
  File "sage/symbolic/expression.pyx", line 11261, in 
sage.symbolic.expression.Expression._fast_callable_ 
(/usr/lib/sagemath//src/build/cythonized/sage/symbolic/expression.cpp:62249)
  File 
"/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py",
 line 1579, in fast_callable
return FastCallableConverter(ex, etb)()
  File 
"/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py",
 line 226, in __call__
return self.composition(ex, operator)
  File 
"/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py",
 line 1545, in composition
return self.etb.call(function, *ex.operands())
  File "sage/ext/fast_callable.pyx", line 734, in 
sage.ext.fast_callable.ExpressionTreeBuilder.call 
(/usr/lib/sagemath//src/build/cythonized/sage/ext/fast_callable.c:6981)
  File "sage/ext/fast_callable.pyx", line 609, in 
sage.ext.fast_callable.ExpressionTreeBuilder.__call__ 
(/usr/lib/sagemath//src/build/cythonized/sage/ext/fast_callable.c:5985)
  File "sage/symbolic/expression.pyx", line 11261, in 
sage.symbolic.expression.Expression._fast_callable_ 
(/usr/lib/sagemath//src/build/cythonized/sage/symbolic/expression.cpp:62249)
  File 
"/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py",
 line 1579, in fast_callable
return FastCallableConverter(ex, etb)()
  File 
"/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py",
 line 217, in __call__
return self.arithmetic(div, div.operator())
  File 
"/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py",
 line 1507, in arithmetic
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
  File 
"/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py",
 line 1507, in 
return reduce(lambda x,y: self.etb.call(operator, x,y), operands)
  File "sage/ext/fast_callable.pyx", line 734, in 
sage.ext.fast_callable.ExpressionTreeBuilder.call 
(/usr/lib/sagemath//src/build/cythonized/sage/ext/fast_callable.c:6981)
  File "sage/ext/fast_callable.pyx", line 609, in 
sage.ext.fast_callable.ExpressionTreeBuilder.__call__ 
(/usr/lib/sagemath//src/build/cythonized/sage/ext/fast_callable.c:5985)
  File "sage/symbolic/expression.pyx", line 11261, in 
sage.symbolic.expression.Expression._fast_callable_ 
(/usr/lib/sagemath//src/build/cythonized/sage/symbolic/expression.cpp:62249)
  File 
"/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py",
 line 1579, in fast_callable
return FastCallableConverter(ex, etb)()
  File 
"/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py",
 line 212, in __call__
return self.symbol(ex)
  File 
"/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/symbolic/expression_conversions.py",
 line 1528, in symbol
return self.etb.var(SR(ex))
  File "sage/ext/fast_callable.pyx", line 681, in 
sage.ext.fast_callable.ExpressionTreeBuilder.var 
(/usr/lib/sagemath//src

[sage-support] Error in graphic

2017-06-30 Thread HG
Hi,
 I got this example from here :

http://arachnoid.com/sage/differential1.html

For many years it was working, I use now sage 7.6 or sage 8 but I go the 
same error it can get the variable t, as  I know it's working, any help ? 


# r = 1000 ohms, c = 0.5e-6 farads, f = 440
r = 1000
c = 0.5e-6
f = 440
omega = 2*pi*f
pa = 
plot(sin(omega*t),(t,0,.005),rgbcolor=('#80'),axes_labels=['time','v'])
pb = plot(df(r,c,omega,t),(t,0,.005),rgbcolor=('#008000'))
lbl = text("$f = %.0f Hz \,r = %.0f \Omega \, c = %.1f {\mu}f$"
 % (f,r,c*1e6),(.0025,1.2),fontsize=12,rgbcolor='black')
show(pa+pb+lbl,figsize=(4,3))

error :
. I cut here as it is too large Only the end.

/home/pi/sage/src/sage/ext/fast_callable.pyx in 
sage.ext.fast_callable.ExpressionTreeBuilder.var 
(/home/pi/sage/src/build/cythonized/sage/ext/fast_callable.c:6657)()696 
ind = self._vars.index(var_name)697 except ValueError:--> 
698 raise ValueError("Variable '%s' not found" % var_name)699   
  return ExpressionVariable(self, ind)700 
ValueError: Variable 't' not found




-- 
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: Sage for Windows, when?

2017-04-29 Thread HG
I installed it on w10 and w7 works fine in sagenb, jupyper notebook runs 
but do no calculation. It's a bit slow because my pc-s are really old 
stuff, but better that virtualbox and I am unpatient to test sage-8 (linux 
sage-8 beta 4 works fine )
Le lundi 24 avril 2017 11:54:31 UTC+2, Jim Mooney a écrit :
>
> Sage is so painfully slow on win 8.1 since it's run in a virtualbox, I had 
> to fall back to Maxima (which is fine for now, but I'll want Sage 
> eventually). I don't want to partition and dual-boot linux, and running 
> linux from a flash drive only allows a tiny amount of storage for Sage, 
> even with a big flash drive. Is there any progress on Sage for Windows? Or 
> an ETA?
>

-- 
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] sage days 74

2017-04-12 Thread HG
Hi,
I tried to include k3d-jupyter in sage making make install-user make 
install-global but sage doesn't find it. Apparently ./sage --python -m 
easy_install can't find it.
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.


[sage-support] note exactly a question ! (sorry if it's not the place)

2017-03-08 Thread HG
But I wanted to express myself on the subject :

http://sagemath.blogspot.fr/2014/08/you-dont-really-think-that-sage-has.html

Personnly I am not a mathematician, but I like it very much !
I am french 72 this years and if I hadn't known sagemath I wouldn't have 
realized my hobby... And now with sagemanifolds included it's the 
excellence !

SMC is not very usefull here in france, it's to slow and sometimes can't 
get it. I just hope and wish that sage will everlasting for next 
generations to come to maths another way that traditionnal scolar one.

Thanks all for your good job :)

With jupyterlab now I can work on sage/julia/ruby/ in the same application 
its a wonderfull dream realized

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] Re: For those interested

2017-02-03 Thread HG
I forget my question : video is working but not audio, someone knows how to 
do it ?

Le vendredi 3 février 2017 21:14:14 UTC+1, HG a écrit :
>
>
> http://louistiao.me/posts/notebooks/embedding-matplotlib-animations-in-jupyter-notebooks/
>
> Working fine in sagemath 7.6 beta2
>

-- 
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] For those interested

2017-02-03 Thread HG
http://louistiao.me/posts/notebooks/embedding-matplotlib-animations-in-jupyter-notebooks/

Working fine in sagemath 7.6 beta2

-- 
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] ubuntu installing sage

2017-01-19 Thread HG
Ubuntu install software in /usr (but apparently not sage : 
/usr/lib/sagemath) I compiled sage  this way : ./configure --prefix=/usr 
then make, I don't dare to do sudo make install is it possible to do it ?
As I am not sure what it will do I don't want to break my sage installation
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.


[sage-support] text3d

2016-12-05 Thread HG
Hi,
Is there any way to get a latex text3d in sagemath graphic ?
Regards

-- 
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: sagemath-dev ppa

2016-11-07 Thread HG
back (most recent call last):
  File "setup.py", line 106, in 
raise DistutilsSetupError("{} failed".format(make_cmdline))
DistutilsSetupError: make -f generate_py_source.mk 
SAGE_SRC=/usr/lib/sagemath/src failed

Error building the Sage library

Makefile:34 : la recette pour la cible « sage » a échouée
make: *** [sage] Erreur 1

Installation of SageManifolds 0.9.1 completed!






Le samedi 5 novembre 2016 16:48:25 UTC+1, HG a écrit :
>
> Just for my info :
>
> I am using yakkety and I choose xenial for getting sagemath-dev from ppa 
> where I saw it can be installed from there. But xenial repos didn't  give 
> me 7.4 but 7.3 so I tried with trusty and it did work ?
>
> Where is the problem ?
>
> 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] sagemath-dev ppa

2016-11-05 Thread HG
Just for my info :

I am using yakkety and I choose xenial for getting sagemath-dev from ppa 
where I saw it can be installed from there. But xenial repos didn't  give 
me 7.4 but 7.3 so I tried with trusty and it did work ?

Where is the problem ?

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

2016-09-29 Thread HG
Hi,
Started with sage-7.3 I got this waring but I don't know what it means and 
I prefer get rid of it... Ho to do that ?

%matplotlib inline

%display latex

/usr/lib/sagemath/local/lib/python2.7/site-packages/traitlets/traitlets.py:770: 
DeprecationWarning: A parent of InlineBackend._config_changed has adopted the 
new @observe(change) API
  clsname, change_or_name), DeprecationWarning)

​



-- 
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] sagemanifolds "conformal_minkowski" set_axes_labels error

2016-09-24 Thread HG
Hi,
I uncommented the lines because I don't see where is the error, thank for 
your help.

I got this error in the above worksheet :

graph = plot3d(Omega.expr(XC),
   (tau,-pi,pi),
   (ch,0,pi), 
   adaptive=True) + plot3d(0,
   (tau,-pi,pi),
   (ch,0,pi), 
   color='yellow',
   opacity=0.7)
#graph = set_axes_labels(graph, 'tau', 'chi', '')
show(graph, aspect_ratio=1)


---NameError
 Traceback (most recent call 
last) in ()  7   
 color='yellow',  8
opacity=RealNumber('0.7'))> 9 graph = set_axes_labels (graph, 'tau', 'chi', 
'') 10 show(graph, aspect_ratio=Integer(1))
NameError: name 'set_axes_labels' is not defined



-- 
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] EMsage.ipynb

2016-09-21 Thread HG
 Hi,
I ran many times this worksheet and I had no problem. Today I update to new 
sagemanifolds 0.9.1 and sage-7.3 from sagemath binary (I can 't get it 
working with ppa AIMS I got rights problems)  and ran into this error :
EM_F.exterior_der()[:]
All with exterior_der have errors, is there a way to correct it ?
Best regards
Henri

---AttributeError
Traceback (most recent call 
last) in ()> 1 EM_F.exterior_der()[:]
/home/pi/sage/src/sage/structure/element.pyx in 
sage.structure.element.Element.__getattr__ 
(/home/pi/sage/src/build/cythonized/sage/structure/element.c:4152)()317 
dummy_error_message.name = name318 raise 
dummy_attribute_error--> 319 return getattr_from_other_class(self, 
P._abstract_element_class, name)320 321 def __dir__(self):
/home/pi/sage/src/sage/structure/misc.pyx in 
sage.structure.misc.getattr_from_other_class 
(/home/pi/sage/src/build/cythonized/sage/structure/misc.c:1772)()251
 dummy_error_message.cls = type(self)252 dummy_error_message.name = 
name--> 253 raise dummy_attribute_error254 try:255 
attribute = getattr(cls, name)
AttributeError: 'DiffFormFreeModule_with_category.element_class' object has no 
attribute 'exterior_der'




-- 
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: plotting ln(x) graph on sagemath

2016-09-20 Thread HG
syntax should be show(P)

or P 

but not print P which gives you your result

Le samedi 17 septembre 2016 23:13:05 UTC+2, Anoz a écrit :
>
> I'm trying to plot the graph ln(1+x/1-x) how do I do this on sagemath , I 
> just need the correct syntax.
>

-- 
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: plotting ln(x) graph on sagemath

2016-09-20 Thread HG
On mine sage 7.3 it does it straight

Le samedi 17 septembre 2016 23:13:05 UTC+2, Anoz a écrit :
>
> I'm trying to plot the graph ln(1+x/1-x) how do I do this on sagemath , I 
> just need the correct syntax.
>

-- 
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: plotting ln(x) graph on sagemath

2016-09-20 Thread HG
Maybe fist write %matplotlib inline
Sometimes I got the same problem 
I do it first with python2 kernel and after I do it with sagemath again

Le samedi 17 septembre 2016 23:13:05 UTC+2, Anoz a écrit :
>
> I'm trying to plot the graph ln(1+x/1-x) how do I do this on sagemath , I 
> just need the correct syntax.
>

-- 
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: How to "publish" a sage worksheet permanently?

2016-08-26 Thread HG
Yes... But I have read somewhere there is a convert tool ? As I need to 
practice I did it by hand.
I know that smc  can convert them in smc file and maybe you can download it 
in ipynb because SMC is well develop in this domain.
Cheers 
Henri

Le vendredi 26 août 2016 10:55:17 UTC+2, Stan Schymanski a écrit :
>
> Dear all,
>
> I have been using sagemath for research for many years now, and I am 
> extremely happy with it. For my latest papers, I would like to make the 
> sage code available to the public, so that people can follow through what I 
> did and re-use the code for their own data. The journal's guidelines also 
> ask to make any relevant data and code available. Of course, I could just 
> upload it to some generic data server, but it would be so great to also 
> make it available on a sage server, which would render the worksheets 
> correctly and where people could start working with it straight away. I 
> believe that this would make a lot more scientists aware of the benefits of 
> sagemath. 
>
> There used to be several open sagemath servers around, but the ones I used 
> previously have disappeared, probably at the same time as sagemath cloud 
> (SMC) made its appearance. I gather that SMC is commercial, meant to 
> generate funds for the further development of sagemath. I hope it takes 
> off. However, this also means that SMC is likely not the right place to 
> permanently publish worksheets, as they would be taken down once I stop 
> paying the fees for some reason. Can anyone suggest a suitable place for 
> that? The minimum requirement is that the worksheet can be viewed and 
> downloaded. Being able to execute and modify cells would be a bonus, and 
> long-term availability (permalink?) would be another bonus. I haven't seen 
> any "public" worksheets on SMC, in the way the old sage servers worked. 
> Would there be scope to create such a space in SMC, so to say as an 
> advertisement? 
>
>

-- 
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: error using simple solve example

2016-08-24 Thread HG
I forgot : try x=var("x")

Le mercredi 24 août 2016 11:47:40 UTC+2, Paul Johnson a écrit :
>
> Hi, 
>
> I've just started using Sage (sage-7.3-OSX_10.11.6-x86_64.app.dmg) on Mac 
> OS X 10.11.6. The first solve example...
>
> x = var('x')
> solve([x^2 - 3 == 0], x)
> ...gives the error below. Any advice greatly appreciated.
>
> Best wishes,
> Paul
>
>
> Traceback (most recent call last):
>   File "", line 1, in 
>   File "_sage_input_20.py", line 10, in 
> exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 
> -*-\\n" + 
> _support_.preparse_worksheet_cell(base64.b64decode("eCA9IHZhcigneCcpCnNvbHZlKHheMiArIDMqeCArIDIsIHgp"),globals())+"\\n");
>  execfile(os.path.abspath("___code___.py"))
>   File "", line 1, in 
> 
>   File 
> "/private/var/folders/rk/qdw3mmfx7b953w6h3zyh287mgn/T/tmpgKDgig/___code___.py",
>  line 4, in 
> exec compile(u'solve(x**_sage_const_2  + _sage_const_3 *x + _sage_const_2 
> , x)
>   File "", line 1, in 
> 
>   File 
> "/Applications/SageMath-7.3.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/symbolic/relation.py",
>  line 800, in solve
> ans = f.solve(*args,**kwds)
>   File "sage/symbolic/expression.pyx", line 10679, in 
> sage.symbolic.expression.Expression.solve 
> (/Applications/SageMath-7.3.app/Contents/Resources/sage/src/build/cythonized/sage/symbolic/expression.cpp:53735)
>   File "sage/symbolic/expression.pyx", line 802, in 
> sage.symbolic.expression.Expression._maxima_ 
> (/Applications/SageMath-7.3.app/Contents/Resources/sage/src/build/cythonized/sage/symbolic/expression.cpp:7281)
>   File "sage/structure/sage_object.pyx", line 673, in 
> sage.structure.sage_object.SageObject._interface_ 
> (/Applications/SageMath-7.3.app/Contents/Resources/sage/src/build/cythonized/sage/structure/sage_object.c:5506)
>   File "sage/misc/lazy_import.pyx", line 354, in 
> sage.misc.lazy_import.LazyImport.__getattr__ 
> (/Applications/SageMath-7.3.app/Contents/Resources/sage/src/build/cythonized/sage/misc/lazy_import.c:3486)
>   File "sage/misc/lazy_import.pyx", line 246, in 
> sage.misc.lazy_import.LazyImport._get_object 
> (/Applications/SageMath-7.3.app/Contents/Resources/sage/src/build/cythonized/sage/misc/lazy_import.c:2241)
>   File 
> "/Applications/SageMath-7.3.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/interfaces/maxima_lib.py",
>  line 105, in 
> ecl_eval("(set-locale-subdir)")
>   File "sage/libs/ecl.pyx", line 1315, in sage.libs.ecl.ecl_eval 
> (/Applications/SageMath-7.3.app/Contents/Resources/sage/src/build/cythonized/sage/libs/ecl.c:10158)
>   File "sage/libs/ecl.pyx", line 1330, in sage.libs.ecl.ecl_eval 
> (/Applications/SageMath-7.3.app/Contents/Resources/sage/src/build/cythonized/sage/libs/ecl.c:10097)
>   File "sage/libs/ecl.pyx", line 343, in sage.libs.ecl.ecl_safe_eval 
> (/Applications/SageMath-7.3.app/Contents/Resources/sage/src/build/cythonized/sage/libs/ecl.c:5162)
> RuntimeError: ECL says: The function SET-LOCALE-SUBDIR is undefined.
>
>
>
>
> 
>
>

-- 
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: error using simple solve example

2016-08-24 Thread HG
I tried your example on ubuntu 7.3 there is not problem. Seems to be a 
problem of locale (utf8), but sorry I don't know mac.

Le mercredi 24 août 2016 11:47:40 UTC+2, Paul Johnson a écrit :
>
> Hi, 
>
> I've just started using Sage (sage-7.3-OSX_10.11.6-x86_64.app.dmg) on Mac 
> OS X 10.11.6. The first solve example...
>
> x = var('x')
> solve([x^2 - 3 == 0], x)
> ...gives the error below. Any advice greatly appreciated.
>
> Best wishes,
> Paul
>
>
> Traceback (most recent call last):
>   File "", line 1, in 
>   File "_sage_input_20.py", line 10, in 
> exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 
> -*-\\n" + 
> _support_.preparse_worksheet_cell(base64.b64decode("eCA9IHZhcigneCcpCnNvbHZlKHheMiArIDMqeCArIDIsIHgp"),globals())+"\\n");
>  execfile(os.path.abspath("___code___.py"))
>   File "", line 1, in 
> 
>   File 
> "/private/var/folders/rk/qdw3mmfx7b953w6h3zyh287mgn/T/tmpgKDgig/___code___.py",
>  line 4, in 
> exec compile(u'solve(x**_sage_const_2  + _sage_const_3 *x + _sage_const_2 
> , x)
>   File "", line 1, in 
> 
>   File 
> "/Applications/SageMath-7.3.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/symbolic/relation.py",
>  line 800, in solve
> ans = f.solve(*args,**kwds)
>   File "sage/symbolic/expression.pyx", line 10679, in 
> sage.symbolic.expression.Expression.solve 
> (/Applications/SageMath-7.3.app/Contents/Resources/sage/src/build/cythonized/sage/symbolic/expression.cpp:53735)
>   File "sage/symbolic/expression.pyx", line 802, in 
> sage.symbolic.expression.Expression._maxima_ 
> (/Applications/SageMath-7.3.app/Contents/Resources/sage/src/build/cythonized/sage/symbolic/expression.cpp:7281)
>   File "sage/structure/sage_object.pyx", line 673, in 
> sage.structure.sage_object.SageObject._interface_ 
> (/Applications/SageMath-7.3.app/Contents/Resources/sage/src/build/cythonized/sage/structure/sage_object.c:5506)
>   File "sage/misc/lazy_import.pyx", line 354, in 
> sage.misc.lazy_import.LazyImport.__getattr__ 
> (/Applications/SageMath-7.3.app/Contents/Resources/sage/src/build/cythonized/sage/misc/lazy_import.c:3486)
>   File "sage/misc/lazy_import.pyx", line 246, in 
> sage.misc.lazy_import.LazyImport._get_object 
> (/Applications/SageMath-7.3.app/Contents/Resources/sage/src/build/cythonized/sage/misc/lazy_import.c:2241)
>   File 
> "/Applications/SageMath-7.3.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/interfaces/maxima_lib.py",
>  line 105, in 
> ecl_eval("(set-locale-subdir)")
>   File "sage/libs/ecl.pyx", line 1315, in sage.libs.ecl.ecl_eval 
> (/Applications/SageMath-7.3.app/Contents/Resources/sage/src/build/cythonized/sage/libs/ecl.c:10158)
>   File "sage/libs/ecl.pyx", line 1330, in sage.libs.ecl.ecl_eval 
> (/Applications/SageMath-7.3.app/Contents/Resources/sage/src/build/cythonized/sage/libs/ecl.c:10097)
>   File "sage/libs/ecl.pyx", line 343, in sage.libs.ecl.ecl_safe_eval 
> (/Applications/SageMath-7.3.app/Contents/Resources/sage/src/build/cythonized/sage/libs/ecl.c:5162)
> RuntimeError: ECL says: The function SET-LOCALE-SUBDIR is undefined.
>
>
>
>
> 
>
>

-- 
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: how to make a toc in sagemath jupyter (link toc)

2016-08-24 Thread HG
I show you how I did as I never had answer about it... Maybe there is other 
way to do it ?

I got the idea from jupyter vpython.zip :
the TOC
Jupyter VPython: navigable real-time 3D animations, done simply¶ 
<http://localhost:8001/inotebook/notebooks/index.ipynb#Jupyter-VPython:-navigable-real-time-3D-animations,-done-simply>
See vpython.org for how to obtain and use the vpython module

Right button drag or Ctrl-drag to rotate "camera" to view scene.
To zoom, drag with middle button or Alt/Option depressed, or use scroll 
wheel.
  On a two-button mouse, middle is left + right.
Touch screen: pinch/extend to zoom, swipe or two-finger rotate.

If asked to pick a notebook type, choose VPython.

Atomic solid 
<http://localhost:8001/inotebook/notebooks/Demos/AtomicSolid.ipynb>: 
ball-and-spring model of a solid

The code (code cell) :

### Jupyter VPython: navigable real-time 3D animations, done simply
# See [vpython.org](http://vpython.org) for how to obtain and use the 
vpython module

>Right button drag or Ctrl-drag to rotate "camera" to view scene.  
To zoom, drag with middle button or Alt/Option depressed, or use scroll 
wheel.  
  On a two-button mouse, middle is left + 
right.  
Touch screen: pinch/extend to zoom, swipe or two-finger rotate.

# If asked to pick a notebook type, choose VPython.

[Atomic solid](Demos/AtomicSolid.ipynb): ball-and-spring model of a solid

Either you make a new one and write your text, or change the text in the 
TOC 

Here is the cell (markdown) :

### Jupyter VPython: navigable real-time 3D animations, done simply
# See [vpython.org](http://vpython.org) for how to obtain and use the 
vpython module

>Right button drag or Ctrl-drag to rotate "camera" to view scene.  
To zoom, drag with middle button or Alt/Option depressed, or use scroll 
wheel.  
  On a two-button mouse, middle is left + 
right.  
Touch screen: pinch/extend to zoom, swipe or two-finger rotate.

# If asked to pick a notebook type, choose VPython.

[Atomic solid](Demos/AtomicSolid.ipynb): ball-and-spring model of a solid

Hope it's clear enaugh 

Henri






Le lundi 22 août 2016 10:31:43 UTC+2, HG a écrit :
>
> Hi,
> I don't know how to make a toc of sagemath workshit 
> Kind of index.ipynb with a link to different 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.


[sage-support] how to make a toc in sagemath jupyter (link toc)

2016-08-22 Thread HG
Hi,
I don't know how to make a toc of sagemath workshit 
Kind of index.ipynb with a link to different 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.


[sage-support] Re: jupyter lab

2016-08-20 Thread HG
Yes in fact I haven't a sage kernel only octave and vpython

Le samedi 20 août 2016 08:09:07 UTC+2, HG a écrit :
>
> I am testing jupyter lab, all my kernels are recognized except one : sage ?
> Is there a way to config it manually to be used in jupyterlab ?
> 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.


[sage-support] Re: jupyter lab

2016-08-20 Thread HG
It's alpha preview but I can use it for my needs. (jupyter project )
Thanks for your explanations 

Le samedi 20 août 2016 08:09:07 UTC+2, HG a écrit :
>
> I am testing jupyter lab, all my kernels are recognized except one : sage ?
> Is there a way to config it manually to be used in jupyterlab ?
> 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.


[sage-support] jupyter lab

2016-08-19 Thread HG
I am testing jupyter lab, all my kernels are recognized except one : sage ?
Is there a way to config it manually to be used in jupyterlab ?
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.


[sage-support] axes_color

2016-06-14 Thread HG
Axes color doesn't change, any help ?
thanks 
HG


var('x');f(x)=sin(10*x)/(1+x^2)

p=plot(f,(-3,3),color="green",plot_points=400,
figsize=(4,3),frame=True,gridlines=True);
p.tick_label_color('red');
p.fontsize(7);p.axes_color=((1,0,0));
p.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.


[sage-support] sage mesh doesn't work in ipynb

2016-05-04 Thread HG
Hi,
Is there a way to get a nice rainbow mesh on sagemath jupyter notebook ?
Mesh doesn't work on jnb, the following works on sagenb but not in jnb

Best regards,
Henri

x, y = var('x y') 
plot3d(sin(pi*(x^2+y^2))/sqrt(x^2+y^2),
   (x,-1.5,1.5),(y,-1.5,1.5),
   mesh=True,color='yellow')

-- 
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: SMC vpython/ivisual

2016-03-07 Thread HG
Hi,
Do you mean I have to pay to get connected ?
Well I am doing this in open source, I thaught SMC is open source, I surely 
am wrong !
So forget about my asking...
Best regards
Henri

Le samedi 5 mars 2016 09:52:09 UTC+1, HG a écrit :
>
> Hi,
> In an imput jupyter on SMC I tried :
> !pip install vpython 
> !pip install ivisual
> I have connect out ?
> 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.


[sage-support] SMC vpython/ivisual

2016-03-05 Thread HG
Hi,
In an imput jupyter on SMC I tried :
!pip install vpython 
!pip install ivisual
I have connect out ?
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.


[sage-support] Re: how to get vpython-jupyter working in SMC ?

2016-02-29 Thread HG

This is a new example :

https://cloud.sagemath.com/projects/1e1bd552-1b18-46e2-841c-d4e34d53f383/files/bobaimant.html

To work it needs only the vpython-jupyter installed.

I installed it on local on ubuntu 16.04 : pip install vpython but should 
work with any recent version


Le dimanche 28 février 2016 11:17:14 UTC+1, HG a écrit :
>
> Hi,
> I have this example I would like to show working in SMC how can I do this 
> Best regards
> Henri
>
> https://cloud.sagemath.com/projects/1e1bd552-1b18-46e2-841c-d4e34d53f383/files/waveivisualmatplotlib.html
>  
> <https://www.google.com/url?q=https%3A%2F%2Fcloud.sagemath.com%2Fprojects%2F1e1bd552-1b18-46e2-841c-d4e34d53f383%2Ffiles%2Fwaveivisualmatplotlib.html&sa=D&sntz=1&usg=AFQjCNEmbZz5zCZgr7P-QDWGUYijNvdSdA>
>
>

-- 
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: how to get vpython-jupyter working in SMC ?

2016-02-29 Thread HG
This is a new exa

Le dimanche 28 février 2016 11:17:14 UTC+1, HG a écrit :
>
> Hi,
> I have this example I would like to show working in SMC how can I do this 
> Best regards
> Henri
>
> https://cloud.sagemath.com/projects/1e1bd552-1b18-46e2-841c-d4e34d53f383/files/waveivisualmatplotlib.html
>  
> <https://www.google.com/url?q=https%3A%2F%2Fcloud.sagemath.com%2Fprojects%2F1e1bd552-1b18-46e2-841c-d4e34d53f383%2Ffiles%2Fwaveivisualmatplotlib.html&sa=D&sntz=1&usg=AFQjCNEmbZz5zCZgr7P-QDWGUYijNvdSdA>
>
>

-- 
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: how to get vpython-jupyter working in SMC ?

2016-02-29 Thread HG
To be more precise, ivisual won't be continued jupyter-vpython is the right 
one. Ivisual is just used for looking at former lectures done with it. I 
have both installed in local and I trying to see what's difference there is 
between both. Vpython-jupyter has quiet a lot of interesting 3D animations 
about physics (well that's what I am interested in) and vecteurs.

Le dimanche 28 février 2016 11:17:14 UTC+1, HG a écrit :
>
> Hi,
> I have this example I would like to show working in SMC how can I do this 
> Best regards
> Henri
>
> https://cloud.sagemath.com/projects/1e1bd552-1b18-46e2-841c-d4e34d53f383/files/waveivisualmatplotlib.html
>  
> <https://www.google.com/url?q=https%3A%2F%2Fcloud.sagemath.com%2Fprojects%2F1e1bd552-1b18-46e2-841c-d4e34d53f383%2Ffiles%2Fwaveivisualmatplotlib.html&sa=D&sntz=1&usg=AFQjCNEmbZz5zCZgr7P-QDWGUYijNvdSdA>
>
>

-- 
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: i have installed sagemath 7 via mathbuntu using source file but as i starting the program it crashes

2016-02-28 Thread HG


*Just install this : apt-add-repository ppa:aims/sagemath-dev and leave it 
in its path !*(/usr/lib/sagemath)


Le samedi 27 février 2016 12:58:08 UTC+1, Arindam kumar chatterjee a écrit :
>
> and i also installed sage on my desktop in ubuntu it work perfectly but as 
> i have move the directory it crashes...and the default installation 
> directory via mathbuntu is /opt/mathbuntu/sage/sage-7.0 here is my crash 
> report please help i am a regular sage user and never faced such a problem 
> before...
>

-- 
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] how to get vpython-jupyter working in SMC ?

2016-02-28 Thread HG
Hi,
I have this example I would like to show working in SMC how can I do this 
Best regards
Henri
https://cloud.sagemath.com/projects/1e1bd552-1b18-46e2-841c-d4e34d53f383/files/waveivisualmatplotlib.html
 


-- 
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: Is there a way to install the sage kernel in a (system-wide, possibly remote) Jupyter ?

2016-02-19 Thread HG
Would you be so kind to explain me (or us) how you can make maxima running 
in notebook, I didnt understand how to configure recent maxima kernel.

Le jeudi 22 octobre 2015 15:02:17 UTC+2, Emmanuel Charpentier a écrit :
>
> Dear List,
>
> I have some prblems running the Jupyter notebook as installed by sage (see 
> other posts).
>
> Furthermore, I'd like to try some interesting kernels (such as Robert 
> Dodier's recent Maxima kernel), which depend on a Python3-Jupyter 
> installation.
>
> Is there a way to install the Sage kernel (with its extensions such as 
> preparser, graphics, etc...) in a Jupyter/Python3 installation ?
>
> --
> Emmanuel Charpentier
>
>

-- 
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] I wrote wrong sage /maxima answer

2016-02-17 Thread HG
This is about circuitikz : I didn't try it on SMC, but importing git clone  
http://github.com/jrjohansson/ipython-circuitikz 
or simply 
 

%install_ext 
http://raw.github.com/jrjohansson/ipython-circuitikz/master/circuitikz.py
might work ?

This message is to correct the one i wrote in maxima more as sage.

-- 
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: graphic conversion from maxima to sage

2016-02-16 Thread HG
At the moment I couldn't use circuitikz/tiks on SMC, but on local 
installation it works fine in sagemath ipython notebook sage-7 (probably 
sage-6.10 too... I haven't tried).
William could you install tikz and circuitikz on SMC or tell us how to do 
it ?
Best regards
Henri
(I am quiet buzy trying to use vpython on sage, it works on jupyter 
notebook)

Le mardi 25 mars 2014 09:50:38 UTC+1, HG a écrit :
>
>
>
> Hi, 
> I got this yin-yang from 
> http://riotorto.users.sourceforge.net/gnuplot/func2d/index.html (thanks 
> for it !) : 
>
> draw2d( 
> proportional_axes = xy, 
> title = "Ying-Yang", 
> ellipse(0,0,2,2,0,360), 
> fill_color= black, 
> filled_func   = -sqrt(4-x^2), 
> explicit(if x < 0 then sqrt(-x^2-2*x) else -sqrt(-x^2+2*x),x,-2,2) ) 
> $ 
>
>
> But I need it in sagemath to get it well embedd in texmacs. 
> After long trying I didn't not success, my main problem is conditions. 
> If a good soul could do it for me all my thanks. 
> Kind regards, 
> HG 
>
> I have done this which is not really good :
> y=sqrt(4-x^2);b=y
> r=sqrt(-x^2-2*x);q=-sqrt(-x^2+2*x)
> e=solve(b==r,y)
>
> c=plot(b,(y,-2,2),fill=True,fillcolor="black",color="black",figsize=3,aspect_ratio=1);
>
> c+=plot(r,(y,-2,2),fill=True,fillcolor="red",color="red",figsize=3,aspect_ratio=1)
>
> d=plot(-b,(y,-2,2),fill=True,fillcolor="red",color="red",figsize=3,aspect_ratio=1);
>
> d+=plot(-r,(y,-2,2),fill=True,fillcolor="red",color="red",figsize=3,aspect_ratio=1);
> p=plot(q,(y,-2,2),fill=True,fillcolor="red",color="red",figsize=3);
> p+=plot(q,(y,-2,2),fill=True,fillcolor="black",color="red",figsize=3)
> plot(c+d+p,figsize=2,aspect_ratio=1,axes=False)
>

-- 
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: recent woes with relocation of SageMath installation directory

2016-02-04 Thread HG
Following the ppa sage link, I tried to install sage-7, it works fine. Time 
for patching, but no problem.
I use two version of sagemath the ppa and developer one (which I compile) 
and after I compile sagemanifolds (which I can't do at the moment with the 
ppa because it's installed system-wide).
Thanks for this good work
Henri 

Le mardi 2 février 2016 18:16:12 UTC+1, slelievre a écrit :
>
> Dear sage-support (cc: sage-release, sage-devel) 
> (please reply on sage-support only) 
>
> I received the following question after announcing 
> Sage 7.0 on sage-announce. 
>
> This is one of many such questions I am reading on 
> various lists and sites recently. 
>
> Something needs to be more clearly documented, 
> or refactored. 
>
> Can someone answer this question by replying to 
> this post on sage-support? 
>
> Thanks! 
> Samuel 
>
> -- Forwarded message -- 
> Date: Mon, 1 Feb 2016 23:32:31 -0600 
> To: Samuel Lelievre > 
> Subject: Installing upgraded SageMath 
>
> I tried installing sagemath-upstream-binary on my Ubuntu Trusty Tahr 
> system and saw this: 
>
> Rewriting paths for your new installation directory 
> === 
>
> This might take a few minutes but only has to be done once. 
>
> patching 
> /usr/lib/sagemath/src/build/cythonized/sage/structure/list_clone.c 
> Traceback (most recent call last): 
>   File "/usr/lib/sagemath/relocate-once.py", line 85, in  
> 
> p('src/build/cythonized/sage/structure/list_clone.c').substitute().save() 
>   File "/usr/lib/sagemath/relocate-once.py", line 70, in __call__ 
> return FilePatch(self, filename) 
>   File "/usr/lib/sagemath/relocate-once.py", line 21, in __init__ 
> self.st = os.stat(filename) 
> OSError: [Errno 2] No such file or directory: 
> '/usr/lib/sagemath/src/build/cythonized/sage/structure/list_clone.c' 
>
> Any idea what is up? 
>
> Dale Amon 
>

-- 
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] sagenb still nice days...

2016-02-02 Thread HG
Hi,
It's not really a question, but I didn't know where I could send it as it 
is about sagenb and jupyter. 
https://sage2.icse.us.edu.pl/home/pub/687/
I don't know polish but this work it's so excellent it can be used for 
tutorials. Babelfish translates quiet well, enaugh to read text and for 
maths depends on everybody's knowledge.
Enjoy

-- 
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: sagenb /sage -n=jupyter

2016-01-19 Thread HG
It's %display latex which makes matplotlib inline not working 


Le lundi 18 janvier 2016 17:40:26 UTC+1, HG a écrit :
>
> Hi,
> I can't get no maplotlib graphic inline , is it possible to do it ?
> %display latex
> %matplotlib inline
> import matplotlib.pyplot as plt
> import numpy as np
> x=np.linspace(-5,5,100)
> plt.plot(x,np.sin(x))  # on utilise la fonction sinus de Numpy
> plt.ylabel('fonction sinus')
> plt.xlabel("l'axe des abcisse
> Any help
> Regards
>
>

-- 
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: sagenb /sage -n=jupyter

2016-01-19 Thread HG
I forget... To improve  my english : what "arse" mean  ? is it "behind" ? 
lol 
And sorry again, I tried it in sagenb !
But now I am convinced it wouldn't work !


Le lundi 18 janvier 2016 17:40:26 UTC+1, HG a écrit :
>
> Hi,
> I can't get no maplotlib graphic inline , is it possible to do it ?
> %display latex
> %matplotlib inline
> import matplotlib.pyplot as plt
> import numpy as np
> x=np.linspace(-5,5,100)
> plt.plot(x,np.sin(x))  # on utilise la fonction sinus de Numpy
> plt.ylabel('fonction sinus')
> plt.xlabel("l'axe des abcisse
> Any help
> Regards
>
>

-- 
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: sagenb /sage -n=jupyter

2016-01-19 Thread HG
Thanks... I am confused ?
I tried your jupyter/ipython example in sage -n=ipython (version 7 rc1 ) 
and it does work !
I use %display latex in sage -n=ipython to have latex displayed.
Sorry for cuting the example I didn't even notice it. 
Best
Henri

Le lundi 18 janvier 2016 17:40:26 UTC+1, HG a écrit :
>
> Hi,
> I can't get no maplotlib graphic inline , is it possible to do it ?
> %display latex
> %matplotlib inline
> import matplotlib.pyplot as plt
> import numpy as np
> x=np.linspace(-5,5,100)
> plt.plot(x,np.sin(x))  # on utilise la fonction sinus de Numpy
> plt.ylabel('fonction sinus')
> plt.xlabel("l'axe des abcisse
> Any help
> Regards
>
>

-- 
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] sagenb /sage -n=jupyter

2016-01-18 Thread HG
Hi,
I can't get no maplotlib graphic inline , is it possible to do it ?
%display latex
%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
x=np.linspace(-5,5,100)
plt.plot(x,np.sin(x))  # on utilise la fonction sinus de Numpy
plt.ylabel('fonction sinus')
plt.xlabel("l'axe des abcisse
Any help
Regards

-- 
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: Packages needed for self-compiled Sage on Ubuntu

2016-01-08 Thread HG
That's a very good idea : I got all suggested files and with one sudo 
apt-get install g++ gfortran m4 liblapack-dev libgsl0-dev libfftw3-dev 
libssl-dev libav-tools pandoc libffi-dev libssl-dev texlive-latex-extra 
lrzip autotools-dev tig openssh-client build-essential, compiling 

Le mercredi 6 janvier 2016 11:10:17 UTC+1, jori.ma...@uta.fi a écrit :
>
> Is there a list somewhere on Ubuntu packages that are needed to install 
> fully working Sage from source? 
>
> For example now I have a machine where view() does not work as LaTeX has 
> no tikz. Instead of every admin to do the same job it would be nice to 
> have a copy-and-paste help. 
>
> -- 
> Jori Mäntysalo 
>

-- 
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] Is there a solution ?

2016-01-03 Thread HG
Hi,
I got this balanced ternary file from rosetta, it works fine in python2 but 
not completly in sage : b variable which convert number in ternary is 
failing, a problem of conversion but I don't know how to correct it ?
Any help ?
Thanks
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.


ternarypy.ipynb
Description: Binary data


[sage-support] firefox glib not found

2015-12-17 Thread HG


Fresh ubuntu installation and sagemath ppa (but the sage 15.04 binary does 
the same) I wonder why is this ?

Use Control-C to stop this server and shut down all kernels (twice to skip 
confirmation).
/usr/lib/sagemath/local/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not 
found (required by /usr/lib/x86_64-linux-gnu/libproxy.so.1)
Failed to load module: 
/usr/lib/x86_64-linux-gnu/gio/modules/libgiolibproxy.so
/usr/lib/firefox/firefox: /usr/lib/sagemath/local/lib64/libstdc++.so.6: 
version `GLIBCXX_3.4.21' not found (required by /usr/lib/firefox/firefox)
^C[I 21:13:23.057 NotebookApp] interrupted
Serving notebooks from local directory: /home/riri
0 active kernels 
The IPython Notebook is running at: http://localhost:/
Shutdown this notebook server (y/[n])? y
Any help welcome

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

2015-10-28 Thread HG
Hi,

\sagestr{(polytopes.permutahedron(4)).projection().tikz([4,5,6],45,scale=0.75, 
facet_color='red',vertex_color='yellow',opacity=0.3)}
\newcommand{\polytopeimg}[4]{\sagestr{(#1).projection().tikz(#2,#3,#4)}}
\newcommand{\polytopeimgopt}[9]{\sagestr{(#1).projection().tikz(#2,#3,#4,#5,#6,#7,#8,#9)}}
Polytope = polytopes.great_rhombicuboctahedron()
plot(Polytope)

It works fine in sage -n, I want to try RLC circuitikz but I have found 
nothing about doing it in sage notebook. It works with  ipython python2 but 
as it is latex it should work like polytope.
Anybody has tried it ?

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 http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] worksheet about parameters /legends

2015-10-26 Thread HG
Hi,
I am beginning a collection of tips about **params **legends and others, 
does someone knows about similarly work done in english or french ?
I read sage's graphic objects, but it's a manual and I want to write the 
code so one can see what the command do.
Any suggestion is welcome
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 http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: legend options **kwds

2015-10-24 Thread HG
Thank you very much, you answered two questions : legend ones and 
O=graphics() which seems to be unecessary !
tuts or tut is short for tutorials indeed.
Henri

Le samedi 24 octobre 2015 10:13:33 UTC+2, HG a écrit :
>
> Hi,
> I don't see this oportunity anywhere in tuts.
> That's how I used it below but now (sage-6.9/6.10beta1) it doesn't work 
>
> legend_opts = { 'back_color': 'salmon', 'shadow': False,'fancybox': 
> 'True','fontsize': '6','loc': '1','borderaxespad': '1'};
> O.set_legend_options(**legend_opts);
>
> 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 http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] %matplotlib inline

2015-10-24 Thread HG
Hi,
In sage -n=ipython matplotlib doesn't display embedded figure but just 
object.
But python does it : How can we do it with matplotlib ?

In [2]:

%display latex
%matplotlib inline

import numpy as np
import matplotlib.pyplot as plt
​
# Make some fake data.
a = b = np.arange(0,3, .02)
c = np.exp(a)
d = c[::-1]
​
# Create plots with pre-defined labels.
plt.plot(a, c, 'k--', label='Model length')
plt.plot(a, d, 'k:', label='Data length')
plt.plot(a, c+d, 'k', label='Total message length')
​
legend = plt.legend(loc='upper center', shadow=True, fontsize='x-large')
​
# Put a nicer background color on the legend.
legend.get_frame().set_facecolor('#00FFCC')
​
plt.show()

In [ ]:


-- 
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 http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] legend options **kwds

2015-10-24 Thread HG
Hi,
I don't see this oportunity anywhere in tuts.
That's how I used it below but now (sage-6.9/6.10beta1) it doesn't work 

legend_opts = { 'back_color': 'salmon', 'shadow': False,'fancybox': 
'True','fontsize': '6','loc': '1','borderaxespad': '1'};
O.set_legend_options(**legend_opts);

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 http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: ppa sage-6.9 and sagemanifolds

2015-10-21 Thread HG
Everything works fine now (I did as you suggested Jan)
Thank you very much.
I am sorry I might have done this mailing on sage-dev as I used ppa 
sage-dev ?
Best regards
Henri

Le mercredi 21 octobre 2015 08:57:47 UTC+2, HG a écrit :
>
> Hi,
> Usually I do sudo bash sm-install.sh and I got sagemanifolds installing. 
> With this ppa sage-6.9 ppa it doesn't work after compiling a first time I 
> got this error message :
> Running ./sage -b to re-build Sage.
> python -u setup.py install
> sys:1: RuntimeWarning: not adding directory '/usr/lib/sagemath/src' to 
> sys.path since it's not owned by a trusted user.
> Untrusted users could put files in this directory which might then be 
> imported by your Python code. As a general precaution from similar 
> exploits, you should not execute Python code from this directory
> 
> Traceback (most recent call last):
>   File "setup.py", line 47, in 
> from module_list import ext_modules, library_order, aliases
> ImportError: No module named module_list
> 
> Error building the Sage library
> 
> Makefile:6: recipe for target 'sage' failed
> make: *** [sage] Error 1
> As the compiling went on I waited it's finished and testing sagemanifolds 
> didn't work :
> error message :
> sys:1: RuntimeWarning: not adding directory '' to sys.path since everybody 
> can write to it.
> Untrusted users could put files in this directory which might then be 
> imported by your Python code. As a general precaution from similar 
> exploits, you should not execute Python code from this directory
> ┌┐
> │ SageMath Version 6.9, Release Date: 2015-10-10 │
> │ Type "notebook()" for the browser-based notebook interface.│
> │ Type "help()" for help.│
> └┘
> sage: Manifold(2,'M')
> ---
> NameError Traceback (most recent call last)
>  in ()
> > 1 Manifold(Integer(2),'M')
>
> NameError: name 'Manifold' is not defined
> sage: 
> Any ideas how to get it working ? with binary I haven't this problem.
> 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 http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: ppa sage-6.9 and sagemanifolds

2015-10-21 Thread HG
Hi Jan,
Yes you are right... I forget it but I had the same problem with previous 
sage, I remenber I posted a problem with texmacs.
I am trying your solution 
Thanks
Henri

Le mercredi 21 octobre 2015 08:57:47 UTC+2, HG a écrit :
>
> Hi,
> Usually I do sudo bash sm-install.sh and I got sagemanifolds installing. 
> With this ppa sage-6.9 ppa it doesn't work after compiling a first time I 
> got this error message :
> Running ./sage -b to re-build Sage.
> python -u setup.py install
> sys:1: RuntimeWarning: not adding directory '/usr/lib/sagemath/src' to 
> sys.path since it's not owned by a trusted user.
> Untrusted users could put files in this directory which might then be 
> imported by your Python code. As a general precaution from similar 
> exploits, you should not execute Python code from this directory
> 
> Traceback (most recent call last):
>   File "setup.py", line 47, in 
> from module_list import ext_modules, library_order, aliases
> ImportError: No module named module_list
> 
> Error building the Sage library
> 
> Makefile:6: recipe for target 'sage' failed
> make: *** [sage] Error 1
> As the compiling went on I waited it's finished and testing sagemanifolds 
> didn't work :
> error message :
> sys:1: RuntimeWarning: not adding directory '' to sys.path since everybody 
> can write to it.
> Untrusted users could put files in this directory which might then be 
> imported by your Python code. As a general precaution from similar 
> exploits, you should not execute Python code from this directory
> ┌┐
> │ SageMath Version 6.9, Release Date: 2015-10-10 │
> │ Type "notebook()" for the browser-based notebook interface.│
> │ Type "help()" for help.│
> └┘
> sage: Manifold(2,'M')
> ---
> NameError Traceback (most recent call last)
>  in ()
> > 1 Manifold(Integer(2),'M')
>
> NameError: name 'Manifold' is not defined
> sage: 
> Any ideas how to get it working ? with binary I haven't this problem.
> 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 http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] ppa sage-6.9 and sagemanifolds

2015-10-20 Thread HG
Hi,
Usually I do sudo bash sm-install.sh and I got sagemanifolds installing. 
With this ppa sage-6.9 ppa it doesn't work after compiling a first time I 
got this error message :
Running ./sage -b to re-build Sage.
python -u setup.py install
sys:1: RuntimeWarning: not adding directory '/usr/lib/sagemath/src' to 
sys.path since it's not owned by a trusted user.
Untrusted users could put files in this directory which might then be 
imported by your Python code. As a general precaution from similar 
exploits, you should not execute Python code from this directory

Traceback (most recent call last):
  File "setup.py", line 47, in 
from module_list import ext_modules, library_order, aliases
ImportError: No module named module_list

Error building the Sage library

Makefile:6: recipe for target 'sage' failed
make: *** [sage] Error 1
As the compiling went on I waited it's finished and testing sagemanifolds 
didn't work :
error message :
sys:1: RuntimeWarning: not adding directory '' to sys.path since everybody 
can write to it.
Untrusted users could put files in this directory which might then be 
imported by your Python code. As a general precaution from similar 
exploits, you should not execute Python code from this directory
┌┐
│ SageMath Version 6.9, Release Date: 2015-10-10 │
│ Type "notebook()" for the browser-based notebook interface.│
│ Type "help()" for help.│
└┘
sage: Manifold(2,'M')
---
NameError Traceback (most recent call last)
 in ()
> 1 Manifold(Integer(2),'M')

NameError: name 'Manifold' is not defined
sage: 
Any ideas how to get it working ? with binary I haven't this problem.
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 http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: 6.9rc3 : Ipython notebook seems seriously out of whack.

2015-10-17 Thread HG
J'ai remarqué que si le fichier est dans home alors il trouve bien mathjax, 
donc c'est un problème de chemin vers un sous répertoire mais je ne sais 
pas comment le régler.

Le samedi 10 octobre 2015 21:24:51 UTC+2, Emmanuel Charpentier a écrit :
>
> I just found another nice one with 6.9rc3.
>
> Not only it has problems with $SAGE_ROOT/local/lib/libtinfo* (see here 
> ), but 
> it also spews nonsense :
> In [2]:
> %display simple
>
> solve(x^2+1==0,x,to_poly_solve="force")
> Out[2]:
>
> []
>
>
> Huh ?
>
> Command-line sage :
> sage: solve(x^2+1==0, x)
> [x == -I, x == I]
>
> Sage via emacs :
> sage: solve(x^2+1==0,x)
> [x == -I, x == I]
>
> This is nicely typeset in the emacs window, BTW...).
>
> I also checked that the sage notebook is indemn of this folly...
>
> And, BTW, I also tried Trac#19374  
> with the same result (and no typeset output, by the way !).
>
> I think this should be a blocker...
>
> For the record : this is on a tree resulting from a fresh tarball, where I 
> moved $SAGE_ROOT/local/lib/libtinfo* out of the way, which passes 
> ptestlong, and where I did git trac chechout 19374.
>  
> Any idea/opinion on how to write the ticket ?
>
> HTH,
>
> --
> Emmanuel Charpentier
>
>

-- 
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 http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] no matplotlib inline

2015-10-16 Thread HG
Hi,
I tried few sage -n=ipython and I can't get graphic inline I got a message 
with drawing dimensions instead. I am using sage-6.9, it's the first time I 
use it so I don't know if it's right ?
If I use python2 kernel graphic is well inline.
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 http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


  1   2   >