But if I pass --help argument, I don’t see --force-offscreen-rendering or something similar.
python -m paraview.simple --trame-app pv_visualizer.app --help
Kitware trame
options:
-h, --help show this help message and exit
--server Prevent your browser from opening at startup
--banner Print trame banner
--app Use OS built-in browser
--no-http Do not serve anything over http
--authKeyFile AUTHKEYFILE
Path to a File that contains the Authentication key for clients to connect to the WebSocket. This takes precedence over '-a, --authKey' from wslink.
--hot-reload Automatically reload state/controller callback functions for every function call. This allows live editing of the functions. Functions located in the site-packages directories are skipped.
--trame-args TRAME_ARGS
If specified, trame will ignore all other arguments, and only the contents of the `--trame-args` will be used. For example: `--trame-args="-p 8081 --server"`. Alternatively, the environment variable
`TRAME_ARGS` may be set instead.
--debug log debugging messages to stdout
--nosignalhandlers Prevent installation of signal handlers so server can be started inside a thread.
--host HOST the interface for the web-server to listen on (default: 0.0.0.0)
-p PORT, --port PORT port number for the web-server to listen on (default: 8080)
--timeout TIMEOUT timeout for reaping process on idle in seconds (default: 300s, 0 to disable)
--content CONTENT root for web-pages to serve (default: none)
--authKey AUTHKEY Authentication key for clients to connect to the WebSocket.
--ws-endpoint WS Specify WebSocket endpoint. (e.g. foo/bar/ws, Default: ws)
--no-ws-endpoint If provided, disables the websocket endpoint
--fs-endpoints FSENDPOINTS
add another fs location to a specific endpoint (i.e: data=/Users/seb/Download|images=/Users/seb/Pictures)
--reverse-url REVERSE_URL
Make the server act as a client to connect to a ws relay
--ssl SSL add a tuple file [certificate, key] (i.e: --ssl 'certificate,key') or adhoc string to generate temporary certificate (i.e: --ssl 'adhoc')
--data DATA Path to browse
--plugins PLUGINS List of distributed plugins to load
Those are pvpython options not regular python. Sorry I skipped conda environment. In the code, you could make the view offscreen, but that would require code change. With conda, you don’t have much other options unfortunately.