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

2015-10-11 Thread HG
I did the same with sage 6.9 and sagemanifold, some command are working 
other not.
I got this message if I try a worksheet done :

Failed to retrieve MathJax from '../nbextensions/mathjax/MathJax.js'

Math/LaTeX rendering will be disabled.

If you have administrative access to the notebook server and a working 
internet connection, you can install a local copy of MathJax for offline 
use with the following command on the server at a Python or Jupyter prompt:

>>> from Jupyter.external import mathjax; mathjax.install_mathjax()

This will try to install MathJax into the Jupyter source directory.

If Jupyter is installed to a location that requires administrative 
privileges to write, you will need to make this call as an administrator, 
via 'sudo'.

When you start the notebook server, you can instruct it to disable MathJax 
support altogether:

$ ipython notebook --no-mathjax

which will prevent this dialog from appearing.


Used from git with a new worksheet some commands works

But not very stable at the moment

ubuntu 14.04 fresh install with git sage and sagemanifold


regards

Henri


Le dimanche 11 octobre 2015 15:12:06 UTC+2, Eric Gourgoulhon a écrit :
>
>
> Le dimanche 11 octobre 2015 09:53:49 UTC+2, Emmanuel Charpentier a écrit :
>>
>> And #19374 still doesn't work for me neither in the "old" or the "new" 
>> sheet).
>>
>>
> Works fine for me with the just released sage 6.9 (which includes #19374). 
>
> - System: Ubuntu 14.04 LTS 64bits with libssl-dev package installed
> - Installation of sage 6.9 and launch of Jupyter notebook:
> git clone git://github.com/sagemath/sage.git
> cd sage
> make
> ./sage -n jupyter
>  
> Best wishes,
>
> Eric.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To 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] use sage ipython

2015-09-19 Thread HG
Hi,
I would like to use sage -notebook=ipython to be able to have sage kernel 
so that I can use this kind of ipython worksheet :
https://raw.githubusercontent.com/sagemanifolds/SageManifolds/master/Worksheets/v0.8/SM_hyperbolic_plane.ipynb
I don't know how to do it if possible in SMC
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.


Re: [sage-support] Re: graphic conversion from maxima to sage

2014-04-23 Thread HG

It's perfect ! I prefer an one line command in texmacs !
Thanks
Henri
Le 22/04/2014 22:24, Emmanuel Charpentier a écrit :

plot(sqrt(-x^2+2*abs(x))*sgn(-x),[x,-2,2] ,figsize=4,
  xmin=-2,  xmax=2, ymin=-2, ymax=2, aspect_ratio=1, axes=False,
  fill=-sqrt(4-x^2), color=black, fillcolor=black, fillalpha=1) +
plot(sqrt(-x^2+2*abs(x))*sgn(-x),[x,-2,2], figsize=4
 xmin=-2, xmax=2, ymin=-2, ymax=2, aspect_ratio=1, axes=False,
 fill=sqrt(4-x^2), color=red, fillcolor=red, fillalpha=1)


--
You received this message because you are subscribed to the Google Groups 
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.


Re: [sage-support] legend

2014-04-19 Thread HG

Hi,
Sorry I mistaken : Your suggestion does work but apparently some 
commands don't work.

I am trying further...
Thanks
Henri
Le 17/04/2014 14:48, Michael Orlitzky a écrit :

On 04/17/2014 06:32 AM, HG wrote:

Hi,
I do a plot with **params which is quiete usefull to have it as a
compact style.
After googling a lot I was trying to see if one can do the same with
**legend ? or other keyword ?
I didn't find any answer, is it possible ?
   it would be easier to put all in a command ?

The same syntax should work:

   legend_opts = { 'back_color': 'white', 'shadow': True }

   p.set_legend_options(**legend_opts)




--
You received this message because you are subscribed to the Google Groups 
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.


Re: [sage-support] legend

2014-04-18 Thread HG
It doesn't work ... It seems to be a matplotlib options which I can't 
use inside texmacs directly.

Strange that **params works and not **legend.

Le 17/04/2014 14:48, Michael Orlitzky a écrit :

On 04/17/2014 06:32 AM, HG wrote:

Hi,
I do a plot with **params which is quiete usefull to have it as a
compact style.
After googling a lot I was trying to see if one can do the same with
**legend ? or other keyword ?
I didn't find any answer, is it possible ?
   it would be easier to put all in a command ?

The same syntax should work:

   legend_opts = { 'back_color': 'white', 'shadow': True }

   p.set_legend_options(**legend_opts)




--
You received this message because you are subscribed to the Google Groups 
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

2014-04-17 Thread HG


Hi,
I do a plot with **params which is quiete usefull to have it as a 
compact style.
After googling a lot I was trying to see if one can do the same with 
**legend ? or other keyword ?

I didn't find any answer, is it possible ?
 it would be easier to put all in a command ?
regards
Henri

p=plot(sin(x*5), legend_label='sin', 
legend_color='red',frame=True,figsize=3,fontsize=6);

p.set_legend_options(font_size=6);
p.set_legend_options(back_color=(0.9,0.9,0.9));
p.set_legend_options(loc=(1));
p.set_legend_options(shadow=True);
p.set_legend_options(borderaxespad=1);
p.set_legend_options(fancybox=False); p



--
You received this message because you are subscribed to the Google Groups 
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.


Re: [sage-support] legend

2014-04-17 Thread HG
I forget to say I can't use the show command because the plot is 
external in a texmacs session,

this one should work I try it.
thanks
Henri
Le 17/04/2014 14:48, Michael Orlitzky a écrit :

On 04/17/2014 06:32 AM, HG wrote:

Hi,
I do a plot with **params which is quiete usefull to have it as a
compact style.
After googling a lot I was trying to see if one can do the same with
**legend ? or other keyword ?
I didn't find any answer, is it possible ?
   it would be easier to put all in a command ?

The same syntax should work:

   legend_opts = { 'back_color': 'white', 'shadow': True }

   p.set_legend_options(**legend_opts)




--
You received this message because you are subscribed to the Google Groups 
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] graphic conversion from maxima to sage

2014-03-25 Thread HG


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


Re: [sage-support] Re: graphic conversion from maxima to sage

2014-03-25 Thread HG
Yes thanks but I tried I can't set conditions in the equation (I am not 
an expert at all !)

Le 25/03/2014 15:28, kcrisman a écrit :



On Tuesday, March 25, 2014 10:21:29 AM UTC-4, kcrisman wrote:


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


Does

http://www.sagemath.org/doc/reference/plotting/sage/plot/contour_plot.html#sage.plot.contour_plot.region_plot

http://www.sagemath.org/doc/reference/plotting/sage/plot/contour_plot.html#sage.plot.contour_plot.region_plot
help?


Okay, or http://sagecell.sagemath.org/?q=pwwdqz should help. 
 Personally, I don't like this parametrization; it doesn't seem to 
look right at the origin, not smooth enough.

--
You received this message because you are subscribed to a topic in the 
Google Groups sage-support group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/sage-support/s0uAGNAVWtw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
sage-support+unsubscr...@googlegroups.com 
mailto:sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com 
mailto:sage-support@googlegroups.com.

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


--
You received this message because you are subscribed to the Google Groups 
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: graphic conversion from maxima to sage

2014-03-25 Thread HG
Sorry I answer you too quickly and had not seen the link you send to me, 
which is exactly what I want !

Thanks for your help
Henri
Le 25/03/2014 15:28, kcrisman a écrit :



On Tuesday, March 25, 2014 10:21:29 AM UTC-4, kcrisman wrote:


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


Does

http://www.sagemath.org/doc/reference/plotting/sage/plot/contour_plot.html#sage.plot.contour_plot.region_plot

http://www.sagemath.org/doc/reference/plotting/sage/plot/contour_plot.html#sage.plot.contour_plot.region_plot
help?


Okay, or http://sagecell.sagemath.org/?q=pwwdqz should help. 
 Personally, I don't like this parametrization; it doesn't seem to 
look right at the origin, not smooth enough.

--
You received this message because you are subscribed to a topic in the 
Google Groups sage-support group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/sage-support/s0uAGNAVWtw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
sage-support+unsubscr...@googlegroups.com 
mailto:sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com 
mailto:sage-support@googlegroups.com.

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


--
You received this message because you are subscribed to the Google Groups 
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: rainbow fill color

2013-12-08 Thread HG
Thanks... That exactly what I wanted but I was ,ot able to find the way of 
doing it !


Le jeudi 5 décembre 2013 13:37:38 UTC+1, HG a écrit :

 Hi,
 I plot a blackbody curve and the filling is palegoldenrod.
 I would like to get a rainbow filling  for each color.
 I tried fillalpha= with x y but that doesn't work is there a way of doing 
 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 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/groups/opt_out.


[sage-support] rainbow fill color

2013-12-05 Thread HG
Hi,
I plot a blackbody curve and the filling is palegoldenrod.
I would like to get a rainbow filling  for each color.
I tried fillalpha= with x y but that doesn't work is there a way of doing 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 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/groups/opt_out.


[sage-support] Re: rainbow fill color

2013-12-05 Thread HG


Le jeudi 5 décembre 2013 13:37:38 UTC+1, HG a écrit :

 Hi,
 I plot a blackbody curve and the filling is palegoldenrod.
 I would like to get a rainbow filling  for each color.
 I tried fillalpha= with x y but that doesn't work is there a way of doing 
 it ?


sure ...
 Sage]  c=4e8;h=5e-34;k=3e-23 # constante

Sage]  k1=8*pi*h*c;k2=(h*c)/k

Sage]  O=Graphics()

Sage]  
params=dict(figsize=(3,2),axes=False,fontsize=8,frame=True,gridlines=True,gridlinesstyle={color:(0.3,0.3,0.3)},axes_labels=($Lambda[nm]$,$E(Lambda)[KJ/nm$),legend_font_size=6
 
)

Sage]  E(l,T)=k1*(l*1e-9)^-5*(1/(exp(k2/((l*1e-9)*T))-1))

Sage]  
a=plot(E(l,3500),l,10,1000,figsize=(3,2),frame=True,rgbcolor=hue(0.2));
b=plot(E(l,4000),l,10,1000,figsize=(3,2),frame=True,rgbcolor=hue(0.4));
d=plot(E(l,4500),l,10,1000,figsize=(3,2),frame=True,rgbcolor=hue(0.6));
j=plot(E(l,5000),l,10,1000,figsize=(3,2),frame=True,rgbcolor=hue(0.8));
m=plot(E(l,5500),l,10,1000,figsize=(3,2),frame=True,
rgbcolor=hue(1.0),fill=True,fillcolor=hue(0.1),fillalpha=0.1);

Sage]  O=plot(a+b+d+j+m, **params);O.axes_width(1/4); 
O.set_legend_options(font_size='small');
O.set_legend_options(back_color=(0.9,0.9,0.9))  ;
O.set_legend_options(loc=1)  ;
O.set_legend_options(shadow=False);
O.set_legend_options(borderaxespad=1);
O.set_legend_options(fancybox=True);
O.axes_color((0.2,0.5,0.5));O.tick_label_color('brown')  

Sage]  O
Its done with texmacs session
I want the background rainbow ? If possible

-- 
You received this message because you are subscribed to the Google Groups 
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/groups/opt_out.


<    1   2