[Paraview] Paraview: python script from the command line

Rick Angelini rick.angelini at us.army.mil
Thu May 6 12:19:00 EDT 2010


I've done some testing, and I agree that it does appear to be working 
correctly with 3.8.0RC1 and with a recent build of 3.9.0.   I tested 
with "--state=" and "--script=" and both are behaving correctly.     I'd 
say that this ticket can be closed.

Robert Maynard wrote:
> I have updated the bug with my testing. I was unable to reproduce on 
> Windows 7 64bit and Linuxwith 3.8.0RC1 and Git Head. Tested reverse 
> connection as both manual and command startup.
>
> Can you confirm that the reverse server setting is saved in one of the 
> pvsc files (http://www.paraview.org/Wiki/ParaView:Server_Configuration 
> <blockedhttp://www.paraview.org/Wiki/ParaView:Server_Configuration> )  for 
> the user launching paraview, and provide more information on the 
> reverse connection you are using please.
>
>
> On Mon, Mar 29, 2010 at 2:15 PM, Utkarsh Ayachit 
> <utkarsh.ayachit at kitware.com 
> <blockedmailto:utkarsh.ayachit at kitware.com>> wrote:
>
>     Ah! But of course :). I am adding it to the bug tracker.
>     http://paraview.org/Bug/view.php?id=10480
>     <blockedhttp://paraview.org/Bug/view.php?id=10480>
>
>     Utkarsh
>
>     On Fri, Mar 26, 2010 at 1:44 PM, Rick Angelini
>     <rick.angelini at us.army.mil
>     <blockedmailto:rick.angelini at us.army.mil>> wrote:
>     > Utkarsh - this also works well under some circumstances, but
>     leave it to the
>     > customers to figure out how to break it.   If we startup paraview:
>     >
>     > paraview --server=Host --script=myscript.py
>     >
>     > And "Host" is a reverse-connection, the python script executes
>     locally
>     > without waiting for the remote server to start up.
>     > Utkarsh Ayachit wrote:
>     >>
>     >> I've added a new --script option to specify python script to be
>     run on
>     >> startup.
>     >>
>     >> Utkarsh
>     >>
>     >> On Fri, Mar 19, 2010 at 3:49 PM, Utkarsh Ayachit
>     >> <utkarsh.ayachit at kitware.com
>     <blockedmailto:utkarsh.ayachit at kitware.com>> wrote:
>     >> > That's a reasonable request. We don't have such an option
>     currently.
>     >> > Let me see if I can add it before 3.8.
>     >> >
>     >> > Utkarsh
>     >> >
>     >> > On Fri, Mar 19, 2010 at 3:42 PM, Rick Angelini
>     >> > <rick.angelini at us.army.mil
>     <blockedmailto:rick.angelini at us.army.mil>> wrote:
>     >> >> Is there a way to startup paraview and have it run a python
>     script from
>     >> >> the
>     >> >> command line?   I know that I can load a state with the
>     "--state" flag.
>     >> >>  And, I can run a python script from within ParaView by
>     going to the
>     >> >> python
>     >> >> tool and running the script.     As far as I can tell, I'm
>     limited to
>     >> >> running the python script after ParaView GUI starts up.  
>      It would be
>     >> >> nice
>     >> >> to be able to load that same script from the command line.
>     >> >> _______________________________________________
>     >> >> Powered by www.kitware.com <blockedhttp://www.kitware.com>
>     >> >>
>     >> >> Visit other Kitware open-source projects at
>     >> >> http://www.kitware.com/opensource/opensource.html
>     <blockedhttp://www.kitware.com/opensource/opensource.html>
>     >> >>
>     >> >> Please keep messages on-topic and check the ParaView Wiki at:
>     >> >> http://paraview.org/Wiki/ParaView
>     <blockedhttp://paraview.org/Wiki/ParaView>
>     >> >>
>     >> >> Follow this link to subscribe/unsubscribe:
>     >> >> http://www.paraview.org/mailman/listinfo/paraview
>     <blockedhttp://www.paraview.org/mailman/listinfo/paraview>
>     >> >>
>     >> >
>     >>
>     >
>     _______________________________________________
>     Powered by www.kitware.com <blockedhttp://www.kitware.com>
>
>     Visit other Kitware open-source projects at
>     http://www.kitware.com/opensource/opensource.html
>     <blockedhttp://www.kitware.com/opensource/opensource.html>
>
>     Please keep messages on-topic and check the ParaView Wiki at:
>     http://paraview.org/Wiki/ParaView
>     <blockedhttp://paraview.org/Wiki/ParaView>
>
>     Follow this link to subscribe/unsubscribe:
>     http://www.paraview.org/mailman/listinfo/paraview
>     <blockedhttp://www.paraview.org/mailman/listinfo/paraview>
>
>
>
>
> -- 
> Robert Maynard


More information about the ParaView mailing list