remote server - Plotting remotely using mayavi and python -


i have massive file need parse , render on remote machine, have scripts written using mayavi this. i'd save image png , copy image on , view locally. pretty simple matplotlib setting backend 'agg', i'm having serious problems doing mayavi. i've followed guide here

http://docs.enthought.com/mayavi/mayavi/tips.html

but problem importing mlab alone requires access xdisplay, can't turn on virtual window suggested.

to reproduce this, access machine through ssh , run simple python script like:

#!/usr/bin/python mayavi import mlab 

and error out standard;

unable access x display, $display set properly?

if has fix this, or alternative route rendering 3d image remotely i'd appreciate it. 3d rendering provided matplotlib insufficient need suggestions working alternatives mayavi appreciated well.

if on *nix platform running x server, use solution in documentation under rendering using virtual framebuffer dpinte commented above. have used method before run mayavi scripts headlessly.

the basic idea start virtual x server such xvfb, , invoke mayavi in display context of virtual x server (and yes explanation not quite right, suffice).


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -