No 3d graphics with sage 9.8 using conda-forge
I have a problem with an installation of sage-9.8 using conda-forge on Ubuntu 23.04. Following the installation guide for a complete installation I can run sage successfully. 2d graphics work, the png viewer launches, but trying an example using plot3d, nothing happens---that is sage replies it has lanuched the viewer but neither the web browser nor the jmol applet launches.
(base) rquint@LunarBox:~$ mamba activate sage
(sage) rquint@LunarBox:~$ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.8, Release Date: 2023-02-11 │
│ Using Python 3.10.10. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
sage: 2+3
5
sage: var('x y')
(x, y)
sage: plot3d(x*y^3, (-1,1), (-1,1))
Launched html viewer for Graphics3d Object
sage: plot3d(x*y^3, (-1,1), (-1,1), viewer="jmol")
Launched jmol viewer for Graphics3d Object
sage: plot(x^3*sin(x), (-pi,pi))
Launched png viewer for Graphics object consisting of 1 graphics primitive
sage: exit
(sage) rquint@LunarBox:~$ mamba deactivate
(base) rquint@LunarBox:~$
Is there something else to install? If so, what are the requisite commands? (Thanks @slelievre for how to include code blocks.)
To display code blocks properly, indent them by four spaces.
The solutions using alternative settings for TMPDIR and DOT_SAGE or a non-snap browser have all worked with installations of sage-9.8 built from source. There's something else going on with my installation using conda-forge. the jmol viewer worked straight out of the box with the installation build from source, but it doesn't with the conda-forge install. I'll try again as soon as sage-10 is out, but for now I have wiped the conda-forge install and have gone back to building from source.
Sorry, I forgot to address the jmol part of the question. I can also confirm it fails for me.
Even with TMPDIR set to
~/tmp
, plotting with jmol fails for me in conda-installed Sage 9.8.