I would like to start the GUI of Paraview with some python functions loaded in memory.
Now I’m using the following command to open Paraview and execute a script (that also contains some python functions)
In this case I can automatically execute all the commands in the script (that uses its python functions) when the GUI opens, however once the script is executed, if I click the pythonShell of Paraview, it seems like the environment is initialized and that the python functions of the script don’t exists: they are not loaded.
On the other hand If I manually open Paraview and load the script using the “Run script” button , then I can use the functions in the script.
I would like to open the GUI with the previous bash command and once the script terminates I would line to use the function inside it from the phytonShell, without having to re-load the script with the button.
Is it possible?