ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 24 Dec 2022 13:48:04 +0100How to show PNG viewer from WSL with X server?https://ask.sagemath.org/question/65505/how-to-show-png-viewer-from-wsl-with-x-server/There is a similar question: Why is a png viewer not loading?(question/63924). The answer in that post only gave an alternative instead of answering the original question. I don't want to execute sagemath with Jupyter notebook. The first comment in that post asked the OP to install X server. I have install X server and I also can see the windows on my Windows when typing these commands from my WSL
```
xeyes
xclock -update 1
```
However, I still cannot see the PNG viewer when I execute this command in Sage.
```
show(plot(sin(x) + sin(1.6*x), 0, 40))
```
The command above was got from the tour of Sage. How can I show the PNG view in Windows with Sage installed in WSL?
## System Information
WSL version: WSL2
Windows: Windows 11
Ubuntu 20.04
Sage was installed by `sudo apt-get install sagemath`IvanaGyroSat, 24 Dec 2022 13:48:04 +0100https://ask.sagemath.org/question/65505/png viewer not openinghttps://ask.sagemath.org/question/54175/png-viewer-not-opening/ Using Linux subsystem for windows with ubuntu 20.04 and sagemath 9.0
When I try to open a png plot from sagemath I get the message that it opens however nothing happens.
Launched png viewer for Graphics object consisting of 1 graphics primitive
However sagemath viewer is configured correctly
sage: viewer.png_viewer()
'xdg-open'
And the most peculiar thing is that by attempting to open a png file from shell trough sagemath it can with an error that persists even if I open the png without sagemath.
sage -sh xdg-open test.png
or
xdg-open test.png
Opens the png successfully and returns this error message
Error: no "view" rule for type "image/png" passed its test case
(for more information, add "--debug=1" on the command line)
And when I add `--debug=1` the command is no longer recognized
DariusMon, 09 Nov 2020 14:05:00 +0100https://ask.sagemath.org/question/54175/in command mode plot3d not displaying - only says "Graphics3d Object"https://ask.sagemath.org/question/45905/in-command-mode-plot3d-not-displaying-only-says-graphics3d-object/ - I use sagemath in a virtual machine
(osboxes.org). To get a text copy of
the output, and some latex and TikZ
code it is convenient for me to use a
*linux* terminal and launching something like
/home/osboxes/SageMath/./sage /FilesSage/GSphereShowTest.sage | tee /FilesSage/GSphereShowTestOutput.txt
the problem is I do not have a
3dplot: the terminal only states
"Graphics3d Object".
- To simplify I tried just
/home/osboxes/SageMath/./sage
/FilesSage/GSphereShowTest.sage
to no avail.
- There is already a question with a
similar problem ([plot3d not
displaying - only says "Graphics3d
Object"?!](https://ask.sagemath.org/question/41731/plot3d-not-displaying-only-says-graphics3d-object/)) but the solution does not
apply. Here there is no max min.
The same test works without any problem with a *sage* terminal
The test code is just:
G=sphere((0,0,0),1)
show(G, viewer='jmol')
print 'say Hello'``
What should be done to get access to the viewer in a linux terminal?
c05772Mon, 25 Mar 2019 23:32:26 +0100https://ask.sagemath.org/question/45905/how to produce graphics from clihttps://ask.sagemath.org/question/32151/how-to-produce-graphics-from-cli/i have just installed sage to ubuntu 15.10, and have been following along the 'tour of sage' and have been trying to get graphics to be produced from different functions, for example
sage: show(plot(sin(x) + sin(1.6*x), 0, 40))
Launched png viewer for Graphics object consisting of 1 graphics primitive
but not png viewer was launched. am i missing something?alienfetuseaterMon, 11 Jan 2016 19:57:10 +0100https://ask.sagemath.org/question/32151/What is a good 2D viewer for Ubuntu for Sage interactive mode?https://ask.sagemath.org/question/9264/what-is-a-good-2d-viewer-for-ubuntu-for-sage-interactive-mode/I'm running Ubuntu. By default from interactive mode, when I write a command like `plot(x)` it opens in the GNOME image viewer. If I run another `plot` function, it will open a separate window. I've tried setting it to firefox, but that grabs the focus and also leads to a proliferation of tabs.
I also note that this [question](http://ask.sagemath.org/question/947/how-to-change-the-default-program-which-open-the) sets out how to specify the viewer.
Ideally, I'd like a viewer that
1. I could put on one of the desktop and it would stay there
2. All 2d plots would open in the same window
3. some form of history mechanism for plots was provided
If anyone has used the plotting tool, in RStudio, you'll know what I'm talking about.
Thus, **Is there a good 2D viewer for Ubuntu for interactive mode?**
Jeromy AnglimThu, 23 Aug 2012 04:23:59 +0200https://ask.sagemath.org/question/9264/