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

Sebastien,


Ah, so it was just the same path to the visualizer I was using before. I've played around with it some. With the http server running on port 9600 and the web visualizer running on port 9601:


http://localhost:9601/apps/Visualizer?sessionURL=ws://localhost:9601/ws gives me a normal Web Visualizer with nothing inside it.


http://localhost:9601/apps/Visualizer?sessionURL=ws://loca​lhost:9600/ws gives me a loading screen which never ends.


I'm also not sure how to specify which particular view from the http server I want loaded into the Web Visualizer. Say I have two files open simultaneously in different views on the http server and press the open Web Visualizer button on one of them. How do I let the Web Visualizer know to sync up with that session instead of the other one?


Robert


From: Sebastien Jourdain <sebastien.jourdain@xxxxxxxxxxx>
Sent: Friday, April 22, 2016 4:14 PM
To: Smith, Robert W.
Cc: ice-dev@xxxxxxxxxxx
Subject: Re: ParaView Web Visualizer shared sessions
 
I don't think so... But I believe you must know what page you are opening right? If not, you need to find out and just add at the end the following String. "?sessionURL=ws://localhost:{same_port}/ws" and that's it.

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

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