Re: [sage-support] use sage ipython

2015-09-19 Thread Henri Girard

Thank you very much :)
Have a nice day
Henri

Le 20/09/2015 02:01, William Stein a écrit :

On Sat, Sep 19, 2015 at 5:00 PM, HG  wrote:

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

The sage ipython notebook isn't supported yet in SMC.  It will be when
I upgrade SMC to a newer version of Sage.

William


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.





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

2015-09-19 Thread William Stein
On Sat, Sep 19, 2015 at 5:00 PM, HG  wrote:
> 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

The sage ipython notebook isn't supported yet in SMC.  It will be when
I upgrade SMC to a newer version of Sage.

William

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



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

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


[sage-support] Re: Sage and python subprocess

2015-09-19 Thread Paul Royik
UPDATE:

I've managed to get the error:


Setting permissions of DOT_SAGE directory so only you can read and write it.
os.chmod(DOT_SAGE, _desired_mode)\nOSError: [Errno 1]
 Operation not permitted: \'/var/www/.sage/

How can I fix 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/d/optout.


[sage-support] Sage and python subprocess

2015-09-19 Thread Paul Royik
Just installed sage-6.8

>From python program I run the following command:

res = 
check_output(["/opt/mathenv/sage-6.8/sage","/opt/mathenv/mathsite/mathsite/scripts/eq_solver.sage","x-5",
 
"x",'-oo', '1', 'oo', '1', '14'])

But this piece of code gives me the following error: 

CalledProcessError: Command '['/opt/mathenv/sage-6.8/sage', 
'/opt/mathenv/mathsite/mathsite/scripts/eq_solver.sage', 'x-5', 'x', '-oo', 
'1', 'oo', '1', '14']' returned non-zero exit status 1

It works perfectly if I enter the command directly in shell, so there are 
no errors with the script.
Moreover if I modify script, so that it doesn't contain sage code (pure 
python) and run 
check_output(["python","/opt/mathenv/mathsite/mathsite/scripts/eq_solver.sage","x-5",
 
"x",'-oo', '1', 'oo', '1', '14']), then it works.
That's why I think that the problem is with /opt/mathenv/sage-6.8/sage. 
Maybe it is virtual environment or something else?

The only difference is that I upgraded from 6.5 to 6.8.

Can somebody advise me what to do or where to find 6.5 distribution?

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