Ask Your Question

enedene's profile - activity

2021-07-24 14:22:54 +0200 received badge  Notable Question (source)
2013-02-21 07:39:52 +0200 received badge  Popular Question (source)
2011-10-26 18:42:38 +0200 commented answer Mathematica graphics in a sage notebook - second take

@kcirsman no problem, you tried to help, I respect that.

2011-10-25 18:45:21 +0200 commented answer Mathematica graphics in a sage notebook - second take

@kcrisman exactly I'm using web interface notebook, and there I can't get a graphical output. Since sage can find Mathematica to calculate N[Pi,10], it should do so for graphics. And the process can be seen if I connect to server via ssh and run top command.

2011-10-25 12:16:55 +0200 commented answer Mathematica graphics in a sage notebook - second take

I would really like to have the output in web interface, otherwise it's more practical to connect to mathematica via shell.

2011-10-22 18:56:42 +0200 received badge  Student (source)
2011-10-22 13:00:48 +0200 received badge  Editor (source)
2011-10-22 12:59:45 +0200 asked a question Mathematica graphics in a sage notebook - second take

This question was already asked, but the answer doesn't work for me so I was suggested that I ask it again with the specifics of my problem. So here goes.
To quote Simons's answer:
In SAGE_ROOT/devel/sage/sage/interfaces/mathematica.py you find the show() function:

def show(self, filename=None, ImageSize=600):
r"""
Show a mathematica expression or plot in the Sage notebook.

EXAMPLES::

    sage: P = mathematica('Plot[Sin[x],{x,-2Pi,4Pi}]')   # optional - mathematica
    sage: show(P)                                        # optional - mathematica
    sage: P.show(ImageSize=800)                          # optional - mathematica
    sage: Q = mathematica('Sin[x Cos[y]]/Sqrt[1-x^2]')   # optional - mathematica
    sage: show(Q)                                        # optional - mathematica
    <html><div class="math">\frac{\sin (x \cos (y))}{\sqrt{1-x^2}}</div></html>
"""

I'm not sure should I use sage input method or mathematica so I'll do both.
sage input method:
For test that MathKernel works:

mathematica('N[Pi,10]')

returns

3.141592654

Now if I try the first example:

P = mathematica('Plot[Sin[x],{x,-2Pi,4Pi}]')
show(P)

I get nothing, it just appears to work (waiting cursor) but no output. By checking the process list on server, MathKernel is shown.

Next I tried mathematica input method:

N[Pi,10]

returns

3.141592654

Test works.

Plot[Sin[x],{x,-2Pi,4Pi}]

returns

-Graphics-

EDIT: Ubuntu Server 10.04 without GUI, Mathematica 8.0, Sage 4.7.1

2011-10-21 19:05:14 +0200 commented answer Mathematica graphics in a sage notebook

@kcrisman, I'll ask another question first thing tomorrow. Thank you for your interest.

2011-10-20 09:56:01 +0200 commented answer Mathematica graphics in a sage notebook

It still doesn't work for me, here's what I get for: mathematica -Graphics- Out[3]= mathematica show -Graphics-

2011-10-19 21:12:57 +0200 commented answer Public interactive not working

Thank you @Jason, interesting indeed.

2011-10-19 11:23:17 +0200 commented answer Public interactive not working

While I think sagenb.org is a great thing, I'd rather have sage on my own server.

2011-10-19 11:22:28 +0200 commented answer Public interactive not working

Thank you. I could test this particular option, however I was just trying Sage as an option. I'll probably not be working with it seriously for next few months.

2011-10-18 18:32:23 +0200 asked a question Public interactive not working

When working on my notebook as an user I see interactive graphs. When I publish them I just see the sliders.
Version 4.7.1 running on Ubuntu 10.04 server.

2011-10-18 17:48:42 +0200 received badge  Supporter (source)