Page 1 of 1

Visualization using Ubuntu

Posted: 27 Aug 2019, 09:53
by kgrace
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.

Re: Visualization using Ubuntu

Posted: 27 Aug 2019, 13:32
by joswig
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);
which triggers basic visualization through your web browser.
If this is working then you can set

Code: Select all

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

Re: Visualization using Ubuntu

Posted: 30 Aug 2019, 00:01
by kgrace
Thanks for your reply. I'm using polymake version 3.2.

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.

Re: Visualization using Ubuntu

Posted: 03 Sep 2019, 10:53
by loewe
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.
The current workaround is now explained here: https://polymake.org/doku.php/download/ ... _subsystem
Let us know if this works for you.

Cheers,
Robert

Re: Visualization using Ubuntu

Posted: 26 Feb 2021, 06:16
by mjs
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.

Re: Visualization using Ubuntu

Posted: 03 Mar 2021, 00:11
by gawrilow
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!

Re: Visualization using Ubuntu

Posted: 03 Mar 2021, 19:18
by mjs
It works now! Thanks so much!