## Visualization using Ubuntu

Questions and problems about using polymake go here.
kgrace
Posts: 2
Joined: 26 Aug 2019, 15:15

### Visualization using Ubuntu

I'm using Polymake on Ubuntu 18.04 LTS on Windows 10.

I'm trying to use the visualization features. When I run:

polytope > simplex(3)->VISUAL;

I get:

polymake: used package ppl
The Parma Polyhedra Library (PPL): A C++ library for convex polyhedra
and other numerical abstractions.
http://www.cs.unipr.it/ppl/

polytope > Couldn't get a file descriptor referring to the console

Other aspects of Polymake seem to be working well. Thanks for any help you can give.

joswig
Main Author
Posts: 247
Joined: 24 Dec 2010, 11:10

### Re: Visualization using Ubuntu

From your description alone it is impossible to say what went wrong. Among other details, in particular, the polymake version number is missing. Most likely, however, it will be a java related issue.

Maybe you can try

Code: Select all

> threejs(simplex(3)->VISUAL); 
If this is working then you can set

Code: Select all

> prefer("threejs"); 
to make this your permanent preference for visualization.

kgrace
Posts: 2
Joined: 26 Aug 2019, 15:15

### Re: Visualization using Ubuntu

I tried:

polytope > threejs(simplex(3)->VISUAL);

and got:

polymake: used package ppl
The Parma Polyhedra Library (PPL): A C++ library for convex polyhedra
and other numerical abstractions.
http://www.cs.unipr.it/ppl/

polymake: used package threejs
Three.js is a lightweight cross-browser JavaScript library/API used to create and display animated 3D computer graphics on a Web browser.
See http://github.com/mrdoob for the source code.

I visited those web addresses but am not quite sure what to do.

loewe
Developer
Posts: 1
Joined: 03 Sep 2019, 10:39

### Re: Visualization using Ubuntu

I'm using Polymake on Ubuntu 18.04 LTS on Windows 10.
It seems that you are using a Linux Subsystem on Windows 10. Unfortunately, in this case visualization does not work out of the box.
Let us know if this works for you.

Cheers,
Robert

mjs
Posts: 9
Joined: 15 Mar 2019, 04:15

### Re: Visualization using Ubuntu

I tried to implement the workaround for visualization mentioned in the previous reply, but it didn't do anything. After doing a little bit of troubleshooting on my own, I managed to get Chrome to open up every time I attempt to visualize something, but that's it -- no picture appears. Are there any other steps I should be taking? I am using Ubuntu with the Linux subsystem for Windows 10 and version 4.0 of polymake.

gawrilow
Main Author
Posts: 386
Joined: 25 Dec 2010, 17:40

### Re: Visualization using Ubuntu

Due to an editing mishap, the page where the workaround script is presented was referring to a wrong file. The instructions have been corrected. Please have a try. Sorry for the mistake!

mjs
Posts: 9
Joined: 15 Mar 2019, 04:15

### Re: Visualization using Ubuntu

It works now! Thanks so much!