ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 26 Nov 2012 03:33:53 -0600Interactive 3D plotshttp://ask.sagemath.org/question/9563/interactive-3d-plots/Hello - I have recently installed Sage 5.4.1, on a Ubuntu 12.04 machine, from both tarred binaries
*sage-5.4-linux-32bit-ubuntu_12.04.1_lts-i686-Linux.tar.lxma*
and again from the packages at aims/sagemath.
Also I have experimented with multiple (both Oracle and openjdk) versions of java, and also with both chromium and firefox browsers.
In all combinations yet tried, I get exactly the same result. Which is: most sage functionality that I try seem to work fine (and I like it!)
**but**
*I cannot interactively view any 3D plot*s, because of the "/cells/14/cells/14" path problem, which, frustratingly, my google searches indicate seems to have afflicted various people over a period of years. **[***Later clarification added:* I am new to sage and first began working only in notebook mode using my browser (after always starting sage using /usr/bin/sage -notebook). I have subsequently found that I can always enter the same 3D plotting commands directly into a sage session within the linux command console after starting sage with merely /usr/bin/sage without the -notebook switch. -That way I **am** able to interact with the 3D plot, since jmol starts up and displays it OK. In other words, my problem with accessing the 3D plots seems to be a sage notebook problem only. (But it is not simply an applet problem: the jmol applet seems to work fine, with interaction, when I browse to non-sage-related 3D jmol graphics using the same browser without use of sage.)**]**
Can anyone suggest what might be next for me to try - with the aim of getting a sage version in which I can view 3D plots interactively?
Thanks
PS A bit more detail on what I, above, called "/cells/14/cells/14" problem. You can find 500 hits on this by googling
"cells/14/cells/14" "sage"
The problem seems to be that when I request in a notebook to interact with a 3D plot, my installed sage writes some zipped jmol data, to a directory it creates, accompanied by a script that incorrectly doubles up part of the pathname that it has just created. The consequence seems to be that sage (or perhaps the jmol applet) cannot then find its own files, since it is referring to them with a wrong pathname.
E.g.
complete contents of the sage-created 2-line script file, named sage0-size500.jmol, are:
set defaultdirectory "/home/_sage_/38/cells/14/cells/14/sage0-size500-78692106.jmol.zip"
script SCRIPT
It is clear (from browsing my disk) that the immediate reason for the failure of the applet to display the plot is that the repetition of "/cells/14" in this path is incorrect.
Two supplementary questions relating to possible work-arounds, if it turns out that I cannot easily fix this on my machine:
1. Is there a way to export its 3d plots out of sage and then view them directly with jmol? **[***Update:* My bold square-bracketed insertion above provides a sort of partial answer here.**]**
2. Are there ubuntu 12.04 tarred binaries of earlier sage versions around somewhere, that might be worth experimentally installing in case they do not suffer this same problem on my machine?Sun, 25 Nov 2012 10:49:23 -0600http://ask.sagemath.org/question/9563/interactive-3d-plots/Comment by kcrisman for <div class="snippet"><p>Hello - I have recently installed Sage 5.4.1, on a Ubuntu 12.04 machine, from both tarred binaries</p>
<p><em>sage-5.4-linux-32bit-ubuntu_12.04.1_lts-i686-Linux.tar.lxma</em></p>
<p>and again from the packages at aims/sagemath.</p>
<p>Also I have experimented with multiple (both Oracle and openjdk) versions of java, and also with both chromium and firefox browsers. </p>
<p>In all combinations yet tried, I get exactly the same result. Which is: most sage functionality that I try seem to work fine (and I like it!)
<strong>but</strong>
<em>I cannot interactively view any 3D plot</em>s, because of the "/cells/14/cells/14" path problem, which, frustratingly, my google searches indicate seems to have afflicted various people over a period of years. <strong>[<em></em></strong><em>Later clarification added:</em> I am new to sage and first began working only in notebook mode using my browser (after always starting sage using /usr/bin/sage -notebook). I have subsequently found that I can always enter the same 3D plotting commands directly into a sage session within the linux command console after starting sage with merely /usr/bin/sage without the -notebook switch. -That way I <strong>am</strong> able to interact with the 3D plot, since jmol starts up and displays it OK. In other words, my problem with accessing the 3D plots seems to be a sage notebook problem only. (But it is not simply an applet problem: the jmol applet seems to work fine, with interaction, when I browse to non-sage-related 3D jmol graphics using the same browser without use of sage.)<strong>]</strong></p>
<p>Can anyone suggest what might be next for me to try - with the aim of getting a sage version in which I can view 3D plots interactively?
Thanks</p>
<p>PS A bit more detail on what I, above, called "/cells/14/cells/14" problem. You can find 500 hits on this by googling
"cells/14/cells/14" "sage"</p>
<p>The problem seems to be that when I request in a notebook to interact with a 3D plot, my installed sage writes some zipped jmol data, to a directory it creates, accompanied by a script that incorrectly doubles up part of the pathname that it has just created. The consequence seems to be that sage (or perhaps the jmol applet) cannot then find its own files, since it is referring to them with a wrong pathname.</p>
<p>E.g.</p>
<p>complete contents of the sage-created 2-line script file, named sage0-size500.jmol, are:</p>
<p>set defaultdirectory "/home/_sage_/38/cells/14/cells/14/sage0-size500-78692106.jmol.zip"
script SCRIPT</p>
<p>It is clear (from browsing my disk) that the immediate reason for the failure of the applet to display the plot is that the repetition of "/cells/14" in this path is incorrect. </p>
<p>Two supplementary questions relating to possible work-arounds, if it turns out that I cannot easily fix this on my machine:</p>
<ol>
<li><p>Is there a way to export its 3d plots out of sage and then view them directly with jmol? <strong>[<em></em></strong><em>Update:</em> My bold square-bracketed insertion above provides a sort of partial answer here.<strong>]</strong></p></li>
<li><p>Are there ubuntu 12 ...</p></li></ol><span class="expander"> <a>(more)</a></span></div>http://ask.sagemath.org/question/9563/interactive-3d-plots/?comment=18649#post-id-18649If you could update the Google search, that would be helpful; I didn't get many useful results with the one you suggest. That said, your example makes the problem very clear, thanks for the specificity!Mon, 26 Nov 2012 03:33:53 -0600http://ask.sagemath.org/question/9563/interactive-3d-plots/?comment=18649#post-id-18649