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)
paraview --script=pws_auto.py
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.
Thanks for your reply.
If I open the Paraview GUI I’m already able to load my python script and functions from the Python Shell (using the run script button).
So using this xml test is possible to open the Paraview GUI with already the functions loaded?
Can you provide a small example or suggest me how to create this xml file?
Thanks, it works!
Now I can find my functions loaded in the python shell.
There is another little problem. Now the Paraview GUI opens however the Python shell does not appear at startup as before. I must activate it from View/python Shell (and the functions are correctly loaded inside it).
How can I force Paraview to start with already the shell active as before?