Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ice-dev] ParaView Web Visualizer shared sessions

So the url to use the pre-existing session would be something like http://localhost:$9600:$/www?sessionURL=ws://localhost:$9600/ws​ ?


From: Sebastien Jourdain <sebastien.jourdain@xxxxxxxxxxx>
Sent: Friday, April 22, 2016 4:04 PM
To: Smith, Robert W.
Cc: ice-dev@xxxxxxxxxxx
Subject: Re: ParaView Web Visualizer shared sessions
 
Ok looking back at your command line I believe the url you are using is http://localhost:{port}/apps/Visualizer

Which mean that when you start your own script, you need to also add the following set of args:

--content ~/www

On Fri, Apr 22, 2016 at 2:01 PM, Sebastien Jourdain <sebastien.jourdain@xxxxxxxxxxx> wrote:
I'm not sure either as I don't know what is the URL that you are opening... 

On Fri, Apr 22, 2016 at 2:01 PM, Smith, Robert W. <smithrw@xxxxxxxx> wrote:

​Sebastien,


I'm not sure what "your_enpoint_xxx" is supposed to be. Is it the view ID for the file that we already have open?


Robert


From: Sebastien Jourdain <sebastien.jourdain@xxxxxxxxxxx>
Sent: Friday, April 22, 2016 3:55 PM

To: Smith, Robert W.
Cc: ice-dev@xxxxxxxxxxx
Subject: Re: ParaView Web Visualizer shared sessions
 
Ok then,

1) To auto load the file with that pv_web_visualizer.py just add that extra argument --load-file xxx
2) To use the same session, you should use something along those lines: http://localhost:${portNumber}/${your_enpoint_xxx}?sessionURL=ws://localhost:${portNumber}/ws

Let me know if that doesn't work...

Seb

On Fri, Apr 22, 2016 at 1:49 PM, Smith, Robert W. <smithrw@xxxxxxxx> wrote:

Sebastien,


When the user establishes a connection to ParaView, we run


~/pvpython ~/http_pvw_server.py --host localhost --port (portNumber)


Then we connect to that server and use it for our embedded visualizations.


When they click the Open in Web Visualizer button, we check to see if the web visualizer is already running. If not, we run 


~/pvpython ~/pv_web_visualizer.py --content ~/www --data-dir (path to a folder in the current Eclipse workspace named ItemDB. All files for visualization will be placed in this folder.) --port (portNumber2)


Then we open an internal web browser opened to localhost:(portNumber2)/apps/Visualizer 


Thanks in advance for the help.


Robert


From: Sebastien Jourdain <sebastien.jourdain@xxxxxxxxxxx>
Sent: Friday, April 22, 2016 3:32 PM
To: Smith, Robert W.
Cc: ice-dev@xxxxxxxxxxx
Subject: Re: ParaView Web Visualizer shared sessions
 
Hi Robert,

I guess before answering, I should ask you first how do you start the python script in both of your use case (inside Ice / PVW Visualizer)?
And how do you setup the --data-dir argument?

Then from that, I can explain what actually make sense for you. Otherwise I way assume something different and get you more confused.

Seb 

On Fri, Apr 22, 2016 at 1:09 PM, Smith, Robert W. <smithrw@xxxxxxxx> wrote:

Hello ​Sebastien,


Thank you for mentioning the ability to have a shared session between the http web server and the web visualizer in ParaView. I'd like to get a record of how to do this for the dev list, so could you please instructions on how to run them both from the same session?


Thank you,

Robert Smith






Back to the top