run paraview py script with ssh

Hello, I am trying to run the .py script made from the trace on the cluster of my university.

I can run it from the command line successfully using pybatch file.py , and I can run it as bash script.

However, while running in the background a window displaying the image that is saved pop up and then closes. If I submit the bash script, my terminal needs to be opened otherwise the script does not work (does not export what is needed). Is there a way to make it 100% in background? By not needing to display anything? ( I am going to run things that will be very large and want to avoid needing a good internet and a long wait time with my terminal opened). Cheers

here is the end of the .py trace if that helps:

get opacity transfer function/opacity map for ‘EP_G’

eP_GPWF = GetOpacityTransferFunction(‘EP_G’)
eP_GPWF.Points = [0.9979066252708435, 0.0, 0.5, 0.0, 1.0, 1.0, 0.5, 0.0]
eP_GPWF.AllowDuplicateScalars = 1
eP_GPWF.ScalarRangeInitialized = 1

Rescale transfer function

eP_GPWF.RescaleTransferFunction(0.9999, 1.0)

Rescale transfer function

eP_GLUT.RescaleTransferFunction(0.999, 1.0)

Rescale transfer function

eP_GPWF.RescaleTransferFunction(0.999, 1.0)

current camera placement for renderView1

renderView1.InteractionMode = ‘2D’
renderView1.CameraPosition = [7.444136548470577, 0.4049599060192654, 24.745090265683924]
renderView1.CameraFocalPoint = [7.444136548470577, 0.4049599060192654, -0.019999999552965077]
renderView1.CameraParallelScale = 7.755709187334878

save animation

SaveAnimation(’/projects/dufeklab/ebreard/BENCMARK/SIMULATION_2_BIS/EXP_TEST/EP_G.png’, renderView1, ImageResolution=[1082, 833],
FontScaling=‘Scale fonts proportionally’,
OverrideColorPalette=’’,
StereoMode=‘No change’,
TransparentBackground=0,
ImageQuality=100,
FrameRate=1,
FrameWindow=[79, 79])

saving camera placements for all active views

current camera placement for renderView1

renderView1.InteractionMode = ‘2D’
renderView1.CameraPosition = [7.444136548470577, 0.4049599060192654, 24.745090265683924]
renderView1.CameraFocalPoint = [7.444136548470577, 0.4049599060192654, -0.019999999552965077]
renderView1.CameraParallelScale = 7.755709187334878

uncomment the following to render all views

RenderAllViews()

alternatively, if you want to write images, you can use SaveScreenshot(…).

Have you tried pvbatch --force-offscreen-rendering yourFile.py ?

Thank you so much. It worked (sorry totally forgot to reply last year…)