Visualization using Ubuntu

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

Visualization using Ubuntu

Postby kgrace » 27 Aug 2019, 09:53

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.

User avatar
joswig
Main Author
Posts: 279
Joined: 24 Dec 2010, 11:10

Re: Visualization using Ubuntu

Postby joswig » 27 Aug 2019, 13:32

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.

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

Re: Visualization using Ubuntu

Postby kgrace » 30 Aug 2019, 00:01

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.

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

Re: Visualization using Ubuntu

Postby loewe » 03 Sep 2019, 10:53

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

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

Re: Visualization using Ubuntu

Postby mjs » 26 Feb 2021, 06:16

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.

User avatar
gawrilow
Main Author
Posts: 422
Joined: 25 Dec 2010, 17:40

Re: Visualization using Ubuntu

Postby gawrilow » 03 Mar 2021, 00:11

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

Postby mjs » 03 Mar 2021, 19:18

It works now! Thanks so much!


Return to “Helpdesk”