Re: [Paraview] vtu and/or vtu to vtp file

2018-02-02 Thread Sebastien Jourdain
Yes, you might need to "Extract Surface" filter, then select the new output
and save the dataset from the menu.

On Fri, Feb 2, 2018 at 8:52 AM, Daniel Zuidinga  wrote:

> Hi,
>
> is it possible to convert vtk and/or vtu to vtp file via paraview?
>
> br
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensou
> rce/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> https://paraview.org/mailman/listinfo/paraview
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://paraview.org/mailman/listinfo/paraview


Re: [Paraview] xml keywords

2018-01-15 Thread Sebastien Jourdain
Some more XML doc here too:

https://gitlab.kitware.com/paraview/paraview/blob/master/ParaViewCore/ServerManager/Core/vtkSMSessionProxyManager.h#L40-111
https://gitlab.kitware.com/paraview/paraview/blob/master/ParaViewCore/ServerManager/Core/vtkSMProxy.h#L55-124





On Mon, Jan 15, 2018 at 8:41 AM, Cory Quammen 
wrote:

> Felipe,
>
> Unfortunately, there is no one place that documents all the XML
> elements and attributes. There is some documentation on property
> attributes in [1], but I'm not sure this is an exhaustive list. Your
> user is doing one of the most effective things already, looking for
> desired functionality in an existing source/filter and looking at how
> it is done in the .xml files.
>
> Digging deeper, one can view the code in the methods ReadXMLAttributes
> in the various vtkSM*Proxy classes in ParaView, e.g.,
> vtkSMProxy::ReadXMLAttributes [2]., to understand which attributes are
> available in different proxies.
>
> Hope that helps,
> Cory
>
> [1] https://www.paraview.org/ParaView/Doc/Nightly/www/cxx-
> doc/classvtkSMProperty.html#details
>
> [2] https://gitlab.kitware.com/paraview/paraview/blob/master/
> ParaViewCore/ServerManager/Core/vtkSMProxy.cxx#L1439
>
> On Mon, Jan 15, 2018 at 10:18 AM, Felipe Bordeu 
> wrote:
> > Hi to all,
> >
> > I have a user that use intensively xml files to deploy and customise his
> > python programmable filters.
> > He would like to know if there is a list with all the xml keyword
> available
> > (for filters, readers,writers).
> > He uses the files in
> > "./ParaViewCore/ServerManager/SMApplication/Resources/*.xml"  for
> > inspiration but not actually sure about the potential and limits of the
> xml
> > customization.
> >
> > for info: We use also the wiki
> > (https://www.paraview.org/Wiki/ParaView/Plugin_HowTo#
> Adding_Categories_to_the_Filters_Menu)
> > for inspiration
> >
> > Felipe
> >
> >
> > ___
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the ParaView Wiki at:
> > http://paraview.org/Wiki/ParaView
> >
> > Search the list archives at: http://markmail.org/search/?q=ParaView
> >
> > Follow this link to subscribe/unsubscribe:
> > https://paraview.org/mailman/listinfo/paraview
> >
>
>
>
> --
> Cory Quammen
> Staff R Engineer
> Kitware, Inc.
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> https://paraview.org/mailman/listinfo/paraview
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://paraview.org/mailman/listinfo/paraview


Re: [Paraview] PV client-server: browsing remote files

2018-01-06 Thread Sebastien Jourdain
You can find another way to do it here as well:

https://github.com/Kitware/ParaView/blob/master/Web/Python/paraview/web/protocols.py#L2692-L2695
https://github.com/Kitware/ParaView/blob/master/Web/Python/paraview/web/protocols.py#L2715-L2716
[...]

On Sat, Jan 6, 2018 at 12:03 PM, Utkarsh Ayachit <
utkarsh.ayac...@kitware.com> wrote:

> Robert,
>
> Sorry I missed the email earlier. What you have as an alternative is
> indeed a reasonable approach. Once can also use ParaView's
> infrastructure used by the file dialog, but it's a little clunky
> currently, since it needs to be pythonified for easier user.
>
> Here's how you'd do this with 5.4.1.
>
> from paraview import servermanager as sm
>
> helper = sm.misc.FileInformationHelper()
> helper.DirectoryListing = 1
> helper.WorkingDirecotry = "'/path/to/data/on/remote"
>
> pvinfo = servermanager.vtkPVFileInformation()
> helper.GatherInformation(pvinfo)
> for a_pvinfo in pvinfo.GetConents():
>if a_pvinfo.GetType() == a_pvinfo.FILE_GROUP:
>  for b_pvinfo in a_pvinfo.GetContents():
> assert b_pvinfo.GetType() == b_pvinfo.SINGLE_FILE
> print (b_pvinfo.GetName(),  b_pvinfo.GetFullPath())
>elif a_pvinfo.GetType() ==  a_pvinfo.SINGLE_FILE
>   print (a_pvinfo.GetName(),  a_pvinfo.GetFullPath())
>
> This will print all files in the directory.
>
> See vtkPVFileInformation docs
> (https://www.paraview.org/ParaView3/Doc/Nightly/www/cxx-
> doc/classvtkPVFileInformation.html)
> for more API details.
>
> Hope that helps.
>
> Utkarsh
>
> On Fri, Jan 5, 2018 at 2:05 PM, Robert Sawko 
> wrote:
> > Hi,
> >
> > I will bump my own post from a month back (see below) and just will
> answer the
> > question in case anyone else was looking for something similar. I
> haven't found
> > a way to remotely navigate the file system through ParaView Python API
> objects,
> > but of course there are other Python packages which can achieve that. I
> used
> > paramiko. Below is my minimal example.
> >
> >
> > from paraview.simple import LegacyVTKReader, RenameSource, Connect
> > from paramiko import SSHClient, AutoAddPolicy
> >
> > '''
> > This script extracts the output of a remote ls command with to feed
> into
> > a LegacyVTKReader. The main use is it to make a collection of VTK
> files
> > into a time sequence inside PV.
> > '''
> >
> > # Inputs:
> > host = 'remote.host.com'
> > port = 22
> > username = 'me'
> > key_filename = '/path/to/private/key'
> >
> > pvhost = 'localhost'# I typically run pvserver through an ssh
> tunnel so
> > pvport = 7  # these are the parameters for local port
> forward
> >
> > data_dir = '/path/to/data/on/remote'
> >
> > # SSH part
> > # to get a list of files to open
> > client = SSHClient()
> > client.set_missing_host_key_policy(AutoAddPolicy())
> >
> > client.connect(
> > host, port=port,
> > username=username,
> > key_filename=key_filename)
> >
> > stdin, stdout, stderr = client.exec_command(
> > 'ls -1 {0}'.format(data_dir))
> > lslines = stdout.readlines()
> > client.close()
> >
> > # ParaView part
> > Connect('localhost', 7)
> > reader = LegacyVTKReader(FileNames=[
> >  'data/{0}'.format(l.strip()) for l in lslines])
> > RenameSource('source', reader)
> >
> > Hope this helps someone!
> > Robert
> >
> > On 12/01/17 at 07:18pm, Robert Sawko wrote:
> >> Dear ParaViewers,
> >>
> >>
> >> I am trying to use Python shell in Client-Server mode, but I am running
> into
> >> some difficulties. How can I actually browse the remote directories. I
> tried
> >> to use the `os` module, but that obviously ends up being all local.
> Here's a
> >> minimal example of what I am trying to achieve.
> >>
> >>
> >> from paraview.simple import Connect, LegacyVTKReader
> >> from os import listdir
> >>
> >> Connect('my_server', port)
> >> location = '/my/remote/location/'
> >>
> >> file_names = listdir(location).sort()
> >> reader = LegacyVTKReader(FileNames=file_names)
> >>
> >>
> >> Please let me know if it's at all possible to query the directory on
> the remote
> >> side through an established connection.
> >>
> >> Many thanks,
> >> Robert
> >> --
> >> Seems like the famous poem of turbulence comes from Jonathan Swift
> >> http://en.wikipedia.org/wiki/The_Siphonaptera
> >
> > --
> > Playing possum, opposable digit, climbing, swimming, omnivores...
> > Is there nothing they can't do?
> > http://en.wikipedia.org/wiki/Opossum
> > ___
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
> >
> > Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
> >
> > Search the list archives at: http://markmail.org/search/?q=ParaView
> >
> > Follow this link 

Re: [Paraview] PV4.10 extracting a surface

2017-12-21 Thread Sebastien Jourdain
Or two clip filter with scalar.

On Wed, Dec 20, 2017 at 11:03 PM, Andrew  wrote:

> Hello. Possibly the Slice filter with "Cylinder" and "Crinkle slice"
> options will produce the required result (I checked in ParaView 5.2).
>
> 2017-12-20 18:46 GMT+03:00 Andy Bauer :
>
>> The Threshold filter works by selecting cells that have cell data in the
>> selected range. If you're requesting to do thresholding on a point data
>> array then it will use the point data to cell data filter to create a cell
>> data array and threshold on that. With this, it's very unlikely that any
>> cell data ends up with exactly a value of .1. It sounds like what you want
>> is to use the Contour filter on your rad array.
>>
>> On Wed, Dec 20, 2017 at 10:32 AM, Utkarsh Ayachit <
>> utkarsh.ayac...@kitware.com> wrote:
>>
>>> I believe you're getting  the warning because the threshold ended up
>>> not producing any output. If you can attach the state/data file, I may
>>> be able to can give more info.
>>>
>>> Utkarsh
>>>
>>> On Wed, Dec 20, 2017 at 10:15 AM, Stephen Wornom
>>>  wrote:
>>> > The geometry is a cylinder.
>>> > Using the calculator I do
>>> > rad =sqrt( x**2+y**2)
>>> > I would like to extract the cylinder surface which is rad = 0.1
>>> > I click on threshold then information to see rad 0.1>> > I click on extract and enter the values min = 0.1 and max 0.1 for rad
>>> > I get this message
>>> > warning: In
>>> > /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuper
>>> build-Release/paraview/src/paraview/ParaViewCore/ServerManag
>>> er/Rendering/vtkSMPVRepresentationProxy.cxx,
>>> > line 279
>>> >
>>> > vtkSMPVRepresentationProxy (0x359fd080): Could not determine array
>>> range.
>>> >
>>> >
>>> > Any ideas to the solution of my problem?
>>> > Thanks in advance,
>>> > Stephen
>>> >
>>> > ___
>>> > Powered by www.kitware.com
>>> >
>>> > Visit other Kitware open-source projects at
>>> > http://www.kitware.com/opensource/opensource.html
>>> >
>>> > Please keep messages on-topic and check the ParaView Wiki at:
>>> > http://paraview.org/Wiki/ParaView
>>> >
>>> > Search the list archives at: http://markmail.org/search/?q=ParaView
>>> >
>>> > Follow this link to subscribe/unsubscribe:
>>> > https://paraview.org/mailman/listinfo/paraview
>>> >
>>> ___
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>>
>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> https://paraview.org/mailman/listinfo/paraview
>>>
>>
>>
>> ___
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> https://paraview.org/mailman/listinfo/paraview
>>
>>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> https://paraview.org/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://paraview.org/mailman/listinfo/paraview


[Paraview] ANN: vtk.js, an Open-Source Toolkit for SciVis on the Web

2017-11-28 Thread Sebastien Jourdain
The Kitware team is pleased to announce vtk.js, a WebGL library taking the
best of VTK to the Web.
To learn more, click on the link for our blog post.

https://blog.kitware.com/vtk-js-the-visualization-toolkit-on-the-web/

And if you want to follow along the progress of the project, star it on
github!

https://github.com/Kitware/vtk-js

Feel free to leave feedback on the mailing list or issue tracker.

Thank you all for making VTK such a great platform for SciViz!

Sebastien
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Specifying filters from plugins in ParaViewWeb Visualizer proxy file

2017-10-26 Thread Sebastien Jourdain
Another easy approach (not great but easy), is to check that plugin in
ParaView Qt ui as auto load and then make sure Visualizer is not started
with the "-dr" argument.
That way, the plugin will load at start time.

On Thu, Oct 26, 2017 at 10:06 AM,  wrote:

> Hi Scott,
>
>
>
> Yes, the ui item is there but all that happens is that the logo flickers
> for like a second then nothing.
>
>
>
> 1.   I have no log output other than the regular output I get via
> starting the server
>
> 2.   Running 5.4.1, compiled from source
>
> 3.   It’s an .mha file, looking at the file info gives “Image
> (Uniform Rectilinear Grid)”. Note that I’m using the flying edges filter as
> an example since it’s a standard plugin and I can get it to apply to this
> dataset in ParaView desktop, so I don’t think it is the datatype. It also
> doesn’t work if I use a Wavelet like specified in this blog post:
> https://blog.kitware.com/accelerated-filters-in-paraview-5/
>
>
>
> Louise
>
>
>
> *From:* Scott Wittenburg [mailto:scott.wittenb...@kitware.com]
> *Sent:* 26 October 2017 16:53
>
> *To:* Davies, Louise (STFC,RAL,SC) 
> *Cc:* paraview@paraview.org
> *Subject:* Re: [Paraview] Specifying filters from plugins in ParaViewWeb
> Visualizer proxy file
>
>
>
> I see, I read your first email a bit too quickly.  So you do see the
> filter appear in the web ui, but it just doesn't have any effect you can
> see.  A few more questions then: 1) Is there any log output you can
> share? 2) what version of paraview are you running?  3) what filter or
> dataset type are you giving as input to the flying edges filter?
>
>
>
> Scott
>
>
>
> On Thu, Oct 26, 2017 at 9:37 AM,  wrote:
>
> Hi Scott,
>
>
>
> I am using the default pvw-visualizer.py server file, which does register
> ParaViewWebStartupPluginLoader before ParaViewWebProxyManager.
>
>
>
> For clarification, this is what I’m adding to my json file (using the
> Flying Edges 3D example):
>
>
>
> In the “filters” section:
>
> { "name": "FlyingEdges3D", "label": "Flying Edges 3D"}
>
>
>
> Louise
>
>
>
> *From:* Scott Wittenburg [mailto:scott.wittenb...@kitware.com]
> *Sent:* 26 October 2017 16:30
> *To:* Davies, Louise (STFC,RAL,SC) 
> *Cc:* paraview@paraview.org
> *Subject:* Re: [Paraview] Specifying filters from plugins in ParaViewWeb
> Visualizer proxy file
>
>
>
> Hi Louise,
>
>
>
>Off the top of my head, I would think that what you are doing should
> work, but maybe Seb can chime in otherwise.  In your application server
> code, do you register the "ParaViewWebStartupPluginLoader" before the
> "ParaViewWebProxyManager"?
>
>
>
> Scott
>
>
>
> On Thu, Oct 26, 2017 at 9:24 AM,  wrote:
>
> Hello all,
>
>
>
> I’m specifying some plugins to load with Visualizer, and I want to be able
> to apply filters from these plugins in Visualizer. I’ve copied the
> defaultProxies.json
> 
> file from the ParaView source code and I don’t know how to get ParaView to
> recognise my plugin filter name.
>
>
>
> For example, I specify on the command line I want to load the default
> AcceleratedAlgorithms plugin. I want to expose the Flying Edges 3D filter
> in Visualizer. However, all of the names I can find related to the Flying
> Edges 3D filter in its .xml file
> 
> (e.g. FlyingEdges3D, vtkFlyingEdges3D) do not allow me to use the filter.
> When I click on the item in the filters pane it does nothing.
>
>
>
> Am I understanding this incorrectly? Does it work differently for filters
> loaded from plugins than from default ParaView filters?
>
>
>
> Kind Regards,
>
>
>
> Louise
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
>
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and 

Re: [Paraview] Tube around a center line

2017-10-26 Thread Sebastien Jourdain
The Tube filter is made for that.

On Thu, Oct 26, 2017 at 9:56 AM, Doina Gumeniuc (224252 MAHS) <224...@via.dk
> wrote:

> Hi all,
>
>
> I have got a tube with various diameters along its height. I have the
> coordinates of the points which form the center line and the scalar value
> of the diameters. IS there a way to generate the tube shape arounda centre
> line using diameter, in a vtk input file without having to show the
> point coordinates around the tube?
>
>
> Thank you!
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Overlapping ParaView windows obscuring each other in ParaViewWeb visualizer server

2017-10-12 Thread Sebastien Jourdain
Hi Louise,

Another option with the current binaries that you have is to ask for
offscreen rendering in the code (Python). The window will still pop-up but
will be black and the correct rendering pixels will be send to the web
client.

Just add those 2 lines

simple.GetRenderView().UseOffscreenRenderingForScreenshots = 1
simple.GetRenderView().UseOffscreenRendering = 1

After the line
https://github.com/Kitware/visualizer/blob/master/server/pvw-visualizer.py#L200
but in the Python script you use to start Visualizer.

Seb

On Thu, Oct 12, 2017 at 6:48 AM, Shawn Waldon 
wrote:

> Hi Louise,
>
> I have seen something like this before when using VTK render windows on
> Linux with NVidia drivers.  There is a bug/feature in the NVidia driver
> where it only renders the part of the window that is shown onscreen.  The
> workaround I used at the time was to enable offscreen rendering (which I
> think ParaView will do by default in the 5.5 when that is released in a few
> months).  In ParaView master/5.5 it will be a command line option too
> --force-offscreen-rendering, but I think for 5.4 and earlier you would need
> to build ParaView with offscreen rendering enabled and then use that
> ParaView for Visualizer.
>
> HTH,
> Shawn
>
> On Thu, Oct 12, 2017 at 5:54 AM,  wrote:
>
>> Hello all,
>>
>>
>>
>> I seem to be observing odd behaviour on my ParaViewWeb server, in that
>> the server works and a client can see their visualisation window fine
>> provided a window does not overlap the ParaView window that is spawned when
>> the user connects to the server. If a new user connects, a new ParaView
>> window is spawned in the exact same place as the previous one, and the
>> first user now sees the image displayed on the second user’s server –
>> seemingly because the first user’s ParaView window is underneath the new
>> user’s window.
>>
>>
>>
>> It’s not just overlapping ParaView windows either. If I connect to my
>> server via VNC and place any window on top, it also obscures the user’s
>> view, although it just blacks out the screen and doesn’t show the actual
>> window itself to the user. Attached are some screenshots of what I’m trying
>> to describe, showing what is happening on the server desktop and what the
>> result is in the Visualizer window.
>>
>>
>>
>> Any ideas on what could possibly be going wrong would be greatly
>> appreciated.
>>
>>
>>
>> Kind regards,
>>
>>
>>
>> Louise Davies
>>
>> ___
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>>
>>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ParaViewWeb Visualizer black screen

2017-10-10 Thread Sebastien Jourdain
Thanks Louise for your feedback and glad you figure it out.

Seb

On Tue, Oct 10, 2017 at 8:21 AM, <louise.dav...@stfc.ac.uk> wrote:

> Hi Seb,
>
>
>
> Thanks for your help. I was indeed having the same behaviour no matter
> whether I ran Visualizer by the command line. The problem was that my
> server had a screensaver that when activated made it so that ParaViewWeb
> could only display a black screen. So for future reference: if anyone else
> has problems with a pure black screen but no errors – check to see if you
> have a screensaver blacking out the screen!
>
>
>
> Kind Regards,
>
>
>
> Louise
>
>
>
> *From:* Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
> *Sent:* 02 October 2017 17:09
> *To:* Davies, Louise (STFC,RAL,SC) <louise.dav...@stfc.ac.uk>;
> paraview@paraview.org
>
> *Subject:* Re: [Paraview] ParaViewWeb Visualizer black screen
>
>
>
> Hi Louise,
>
>
>
> You are right, there is indeed more changes which might not be strait
> forward for you to fix. Even if in reality, it is only a bunch of import
> path to fix.
>
>
>
> Just out of curiosity, did you try to run the command line that the
> launcher is running by hand and see if you have the same behavior as well
> as maybe other error output?
>
>
>
> Otherwise, you right the screen size should be more than enough.
>
>
>
> Seb
>
>
>
> PS: I've added back the mailing list so others could benefit from our
> discussion.
>
>
>
> On Mon, Oct 2, 2017 at 10:02 AM, <louise.dav...@stfc.ac.uk> wrote:
>
> Hi Seb,
>
>
>
> The screen size is 1920 x 1080, which seems like it should be sufficiently
> large enough. It does seem as though that’s the problematic line from the
> logs though…
>
>
>
> I’m currently running 5.4.0 and not the nightly/master so testing out
> pvbatch over pvpython is difficult. I tried getting the nightly version
> working but it seems as though there are more changes involved than just
> that – half the paths I reference are wrong (probably due to stuff changing
> paths upstream, e.g. launcher.py is in a different location now) and it
> seems more trouble than it’s worth to test it.
>
>
>
> Louise
>
>
>
> *From:* Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
> *Sent:* 02 October 2017 14:47
> *To:* Davies, Louise (STFC,RAL,SC) <louise.dav...@stfc.ac.uk>
> *Cc:* paraview@paraview.org
> *Subject:* Re: [Paraview] ParaViewWeb Visualizer black screen
>
>
>
> Hi Louise,
>
>
>
> I'm wondering how big is the display on the remote server? Even if no
> screen is connected, you do need to define a display size which in your
> case may be tiny by default?
>
>
>
> Otherwise, if you use the nightly binaries or paraview/master, you can
> tweak your launcher config to use pvbatch instead of pvpython which
> leverage a true offscreen rendering which will be then independent of the
> screen resolution. But you will need to set the following environment
> variable. PV_ALLOW_BATCH_INTERACTION=1
>
>
>
> It might also be something else, but the message "window did not resize"
> looked suspicious.
>
>
>
> Seb
>
>
>
>
>
> On Mon, Oct 2, 2017 at 6:41 AM, <louise.dav...@stfc.ac.uk> wrote:
>
> Hello,
>
>
>
> I have been trying to set up a ParaViewWeb server on my CentOS 6 machine
> to run Visualizer. I have gotten to a point where the UI loads correctly
> but remote rendering only displays a black screen. Not even the axes in the
> bottom left are displayed. However, if I switch to local rendering mode it
> works as normal. There are no errors at all in the Apache logs and the
> session log starts fine but after the twisted server startup and the lines
> filled with plus signs, I get the lines:
>
>
>
> 2017-10-02 11:14:48+0100 [_GenericHTTPChannelProtocol,0,127.0.0.1] Client
> has reconnected, cancelling reaper
>
> 2017-10-02 11:14:48+0100 [_GenericHTTPChannelProtocol,0,127.0.0.1]
> on_connect: connection count = 1
>
> 2017-10-02 11:14:48+0100 [-] Property BeginValueCapture has no GetData()
> method, skipping
>
> 2017-10-02 11:14:48+0100 [-] Property CaptureValuesFloat has no GetData()
> method, skipping
>
> 2017-10-02 11:14:48+0100 [-] Property CaptureZBuffer has no GetData()
> method, skipping
>
> 2017-10-02 11:14:48+0100 [-] Property EndValueCapture has no GetData()
> method, skipping
>
> 2017-10-02 11:14:48+0100 [-] Property Send to OpenVR has no GetData()
> method, skipping
>
> 2017-10-02 11:14:48+0100 [-] Property StartCaptureLuminance has no
> GetData() method, skipping
>
> 2017-10-02 11:14:48+0100 [-] Prope

Re: [Paraview] ParaViewWeb Visualizer black screen

2017-10-02 Thread Sebastien Jourdain
Hi Louise,

You are right, there is indeed more changes which might not be strait
forward for you to fix. Even if in reality, it is only a bunch of import
path to fix.

Just out of curiosity, did you try to run the command line that the
launcher is running by hand and see if you have the same behavior as well
as maybe other error output?

Otherwise, you right the screen size should be more than enough.

Seb

PS: I've added back the mailing list so others could benefit from our
discussion.

On Mon, Oct 2, 2017 at 10:02 AM, <louise.dav...@stfc.ac.uk> wrote:

> Hi Seb,
>
>
>
> The screen size is 1920 x 1080, which seems like it should be sufficiently
> large enough. It does seem as though that’s the problematic line from the
> logs though…
>
>
>
> I’m currently running 5.4.0 and not the nightly/master so testing out
> pvbatch over pvpython is difficult. I tried getting the nightly version
> working but it seems as though there are more changes involved than just
> that – half the paths I reference are wrong (probably due to stuff changing
> paths upstream, e.g. launcher.py is in a different location now) and it
> seems more trouble than it’s worth to test it.
>
>
>
> Louise
>
>
>
> *From:* Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
> *Sent:* 02 October 2017 14:47
> *To:* Davies, Louise (STFC,RAL,SC) <louise.dav...@stfc.ac.uk>
> *Cc:* paraview@paraview.org
> *Subject:* Re: [Paraview] ParaViewWeb Visualizer black screen
>
>
>
> Hi Louise,
>
>
>
> I'm wondering how big is the display on the remote server? Even if no
> screen is connected, you do need to define a display size which in your
> case may be tiny by default?
>
>
>
> Otherwise, if you use the nightly binaries or paraview/master, you can
> tweak your launcher config to use pvbatch instead of pvpython which
> leverage a true offscreen rendering which will be then independent of the
> screen resolution. But you will need to set the following environment
> variable. PV_ALLOW_BATCH_INTERACTION=1
>
>
>
> It might also be something else, but the message "window did not resize"
> looked suspicious.
>
>
>
> Seb
>
>
>
>
>
> On Mon, Oct 2, 2017 at 6:41 AM, <louise.dav...@stfc.ac.uk> wrote:
>
> Hello,
>
>
>
> I have been trying to set up a ParaViewWeb server on my CentOS 6 machine
> to run Visualizer. I have gotten to a point where the UI loads correctly
> but remote rendering only displays a black screen. Not even the axes in the
> bottom left are displayed. However, if I switch to local rendering mode it
> works as normal. There are no errors at all in the Apache logs and the
> session log starts fine but after the twisted server startup and the lines
> filled with plus signs, I get the lines:
>
>
>
> 2017-10-02 11:14:48+0100 [_GenericHTTPChannelProtocol,0,127.0.0.1] Client
> has reconnected, cancelling reaper
>
> 2017-10-02 11:14:48+0100 [_GenericHTTPChannelProtocol,0,127.0.0.1]
> on_connect: connection count = 1
>
> 2017-10-02 11:14:48+0100 [-] Property BeginValueCapture has no GetData()
> method, skipping
>
> 2017-10-02 11:14:48+0100 [-] Property CaptureValuesFloat has no GetData()
> method, skipping
>
> 2017-10-02 11:14:48+0100 [-] Property CaptureZBuffer has no GetData()
> method, skipping
>
> 2017-10-02 11:14:48+0100 [-] Property EndValueCapture has no GetData()
> method, skipping
>
> 2017-10-02 11:14:48+0100 [-] Property Send to OpenVR has no GetData()
> method, skipping
>
> 2017-10-02 11:14:48+0100 [-] Property StartCaptureLuminance has no
> GetData() method, skipping
>
> 2017-10-02 11:14:48+0100 [-] Property StopCaptureLuminance has no
> GetData() method, skipping
>
> Warning: In /home/buildslave/dashboards/buildbot/paraview-pvbinsdash-
> linux-shared-release_superbuild/build/superbuild/
> paraview/src/VTK/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx, line 1093
>
> vtkXOpenGLRenderWindow (0x3e184d0): warning window did not resize in the
> allotted time
>
>
>
> Since it works with local rendering and not remote rendering I feel as
> though it must be a problem with OpenGL, but running glxinfo shows that the
> user running the launcher has access to direct rendering.
>
>
>
> Any suggestions on what could possibly be going wrong would be greatly
> appreciated.
>
>
>
> Kind Regards,
>
>
>
> Louise
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the l

Re: [Paraview] ParaView session state

2017-10-02 Thread Sebastien Jourdain
Hi Eduardo,

That message is indeed the state but only for the proxy object and the VTK
instance underneath. Unfortunately (for you) the state of the
vtkSMSessionProxyManager
is not the whole state of the application. Each state is specific to its
instance.

In order to get the full state of the application you will have to traverse
the tree of objects that compose the application and gather all the states
on the way.

Unfortunately I couldn't find the time to walk through the code to validate
what I'm saying.

Hope this help and sorry I could not get you a better answer or better
pointers on where to look at.

Seb




On Wed, Sep 27, 2017 at 3:26 PM,  wrote:

> Hi Aron and all,
>
> Following this discussion
>
> For what I can see, all the session state is stored in a variable called
> "State" inside Internals of vtkSMSessionProxyManager (
> vtkSMSessionProxyManagerInternals). This State is of type vtkSMMessage,
> which is a typedef of *paraview_protobuf::Message*.
>
> In other words, the state of the whole session is stored as a generated
> protobuf class (or package), which is defined in vtkPVMessage.proto. I
> guess this make sense as -- I image -- this makes read/write from a flat
> XML much easier (as well as transferring from client-to-server and vice
> versa). It would be great if someone with more knowledge on these details
> can clarify that I am in fact correct...
>
> Cheers,
> Eduardo.
>
> September 26, 2017 10:33 AM, "Aron Helser"  <%22aron%20helser%22%20%3caron.hel...@kitware.com%3E>> wrote:
>
> Hi Eduardo,
> I think you've basically got it, but the state is more complicated than
> you think. Basically everything has a vtkSMProxy, and those proxies contain
> the state of the pipeline, representation, and views. Anything that is
> modified from the defaults gets saved in the state file. The 
> vtkSMSessionProxyManager
> is the root of a session, as you've found.
> The input data is saved in the state file as absolute paths, and you do
> need the input data. When you read state, it has that intelligent option to
> search for the data files in another directory...
> I've just been learning this stuff trying to add dynamic lights to
> ParaView, so hopefully I'm close :)
> HTH, Regards,
> Aron
> On Tue, Sep 26, 2017 at 12:33 PM,  wrote:
>
> Hello list,
>
> Where is the data structure(s) in the code where all the objects for *the
> state* of a particular ParaView session are kept while it is running?. I
> have been reading the code, and I think it should be in the "internals" of
> vtkSMSessionProxyManager, but I am unsure. As far as I understand, the
> state (which can be saved to XML) is all it takes to recreate a session (Am
> I right here? Probably you need the input data as well, right?).
>
> Thanks for the help!,
> Eduardo.
>
> P.S.: Are my emails going to SPAM? Can someone respond ("hi") to this
> email to confirm otherwise? Thanks !.
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensou
> rce/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ParaViewWeb Visualizer black screen

2017-10-02 Thread Sebastien Jourdain
Hi Louise,

I'm wondering how big is the display on the remote server? Even if no
screen is connected, you do need to define a display size which in your
case may be tiny by default?

Otherwise, if you use the nightly binaries or paraview/master, you can
tweak your launcher config to use pvbatch instead of pvpython which
leverage a true offscreen rendering which will be then independent of the
screen resolution. But you will need to set the following environment
variable. PV_ALLOW_BATCH_INTERACTION=1

It might also be something else, but the message "window did not resize"
looked suspicious.

Seb


On Mon, Oct 2, 2017 at 6:41 AM,  wrote:

> Hello,
>
>
>
> I have been trying to set up a ParaViewWeb server on my CentOS 6 machine
> to run Visualizer. I have gotten to a point where the UI loads correctly
> but remote rendering only displays a black screen. Not even the axes in the
> bottom left are displayed. However, if I switch to local rendering mode it
> works as normal. There are no errors at all in the Apache logs and the
> session log starts fine but after the twisted server startup and the lines
> filled with plus signs, I get the lines:
>
>
>
> 2017-10-02 11:14:48+0100 [_GenericHTTPChannelProtocol,0,127.0.0.1] Client
> has reconnected, cancelling reaper
>
> 2017-10-02 11:14:48+0100 [_GenericHTTPChannelProtocol,0,127.0.0.1]
> on_connect: connection count = 1
>
> 2017-10-02 11:14:48+0100 [-] Property BeginValueCapture has no GetData()
> method, skipping
>
> 2017-10-02 11:14:48+0100 [-] Property CaptureValuesFloat has no GetData()
> method, skipping
>
> 2017-10-02 11:14:48+0100 [-] Property CaptureZBuffer has no GetData()
> method, skipping
>
> 2017-10-02 11:14:48+0100 [-] Property EndValueCapture has no GetData()
> method, skipping
>
> 2017-10-02 11:14:48+0100 [-] Property Send to OpenVR has no GetData()
> method, skipping
>
> 2017-10-02 11:14:48+0100 [-] Property StartCaptureLuminance has no
> GetData() method, skipping
>
> 2017-10-02 11:14:48+0100 [-] Property StopCaptureLuminance has no
> GetData() method, skipping
>
> Warning: In /home/buildslave/dashboards/buildbot/paraview-pvbinsdash-
> linux-shared-release_superbuild/build/superbuild/
> paraview/src/VTK/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx, line 1093
>
> vtkXOpenGLRenderWindow (0x3e184d0): warning window did not resize in the
> allotted time
>
>
>
> Since it works with local rendering and not remote rendering I feel as
> though it must be a problem with OpenGL, but running glxinfo shows that the
> user running the launcher has access to direct rendering.
>
>
>
> Any suggestions on what could possibly be going wrong would be greatly
> appreciated.
>
>
>
> Kind Regards,
>
>
>
> Louise
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Paraview Web bug on windows

2017-09-26 Thread Sebastien Jourdain
It was probably not back ported to the release branch of 5.4 when Aron
fixed it.

On Tue, Sep 26, 2017 at 9:31 AM, Daniel Zuidinga <i...@seoaachen.de> wrote:

> it works with the nightly build of pv
>
>
> Am 26.09.2017 um 15:23 schrieb Sebastien Jourdain:
>
> This might be related to https://github.com/Kitware/visualizer/issues/34
>
> On Tue, Sep 26, 2017 at 1:34 AM, Daniel Zuidinga <i...@seoaachen.de>
> wrote:
>
>> Hi,
>>
>> as soon as I select a dataset to colorize pvpython stops working (see
>> attached screenshot).
>>
>> I use the latest 5.4.1 windows 64bit pv.
>>
>> This happens with all example datasets.
>>
>> best regards
>>
>> --
>> Daniel Zuidinga
>> Dipl.-Ing.
>>
>> SEO Aachen
>> Passstr. 5
>> 52070 Aachen
>>
>> Tel   : 0241 / 450 912 67
>> E-Mail: i...@seoaachen.de
>> Web   : http://www.seoaachen.de
>> Blog  : https://zuidinga.de
>> Xing  : https://www.xing.com/profile/Daniel_Zuidinga
>>
>> Easy to use CAE, Finite Element Analysis in the browser and in the cloud:
>> https://simulaton.com
>>
>>
>> ___
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>>
>>
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Paraview Web bug on windows

2017-09-26 Thread Sebastien Jourdain
This might be related to https://github.com/Kitware/visualizer/issues/34

On Tue, Sep 26, 2017 at 1:34 AM, Daniel Zuidinga  wrote:

> Hi,
>
> as soon as I select a dataset to colorize pvpython stops working (see
> attached screenshot).
>
> I use the latest 5.4.1 windows 64bit pv.
>
> This happens with all example datasets.
>
> best regards
>
> --
> Daniel Zuidinga
> Dipl.-Ing.
>
> SEO Aachen
> Passstr. 5
> 52070 Aachen
>
> Tel   : 0241 / 450 912 67
> E-Mail: i...@seoaachen.de
> Web   : http://www.seoaachen.de
> Blog  : https://zuidinga.de
> Xing  : https://www.xing.com/profile/Daniel_Zuidinga
>
> Easy to use CAE, Finite Element Analysis in the browser and in the cloud:
> https://simulaton.com
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Convert VTU for Arctic Viewer

2017-09-21 Thread Sebastien Jourdain
How to you run ArcticViewer? Which OS are you on?

On Thu, Sep 21, 2017 at 1:01 PM, Chris Marsh <chris.ma...@usask.ca> wrote:

> Ah yes, that works. Thanks.
>
> I have modified the 2nd example (vtk) to work on a single vtu file I have
> (so no time) and output a single array. It appears to complete fully and it
> writes the the tar fiels to my data directory.
> When I try to serve up these data, I'm presented with a static image of
> the head sample dataset I had previously loaded. Rebooting and killall node
> did not resolve this.
> Using a different port shows a blank page.
>
> Thanks for the help,
>
> Cheers
> Chris
>
>
> On 21 September 2017 at 12:22, Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> Just download ParaView binary and use pvpython. You will have everything
>> required meaning both vtk and paraview side of things.
>>
>> On Thu, Sep 21, 2017 at 12:17 PM, Chris Marsh <chris.ma...@usask.ca>
>> wrote:
>>
>>> Hi Sebastien,
>>> This is very helpful, thanks!
>>>
>>> Current hangup is that vtk.web.* is not available. I've installed vtk
>>> --with-python via homebrew (I use vtk successfully from python regularly).
>>> However the web components do not seem available. Googling isn't helping
>>> me. Any suggestions?
>>>
>>> Cheers
>>> Chris
>>>
>>>
>>> On 21 September 2017 at 11:31, Sebastien Jourdain <
>>> sebastien.jourd...@kitware.com> wrote:
>>>
>>>> Hi Chris,
>>>>
>>>> Thanks for your interest. The following Python scripts provide an
>>>> example on how to generate such dataset.
>>>>
>>>> https://github.com/Kitware/arctic-viewer/blob/master/scripts
>>>> /examples/paraview/mpas/raw-probe-flat-earth.py
>>>> https://github.com/Kitware/arctic-viewer/blob/master/scripts
>>>> /examples/vtk/mpas/raw-probe-flat-earth.py
>>>>
>>>> Moreover, depending on your data structure, the way you want to iterate
>>>> through time may differ.
>>>> The example below show the can dataset with a geometry export. But at
>>>> least, it also show how to control time in ParaView when the reader is Time
>>>> aware.
>>>>
>>>> https://github.com/Kitware/arctic-viewer/blob/master/scripts
>>>> /examples/paraview/samples/VTKGeometry-can.py
>>>>
>>>> Let me know if you need additional information regarding that script
>>>> and what it is doing.
>>>>
>>>> Seb
>>>>
>>>> On Thu, Sep 21, 2017 at 10:59 AM, Chris Marsh <chris.ma...@usask.ca>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>> I have a set of vtu files that represent a time series of spatial
>>>>> data. I would like to visualize it via the arctic viewer. Ultimately, I'd
>>>>> like something similar to the Flat earth probing example given here (
>>>>> http://tonic.kitware.com/). However it's unclear how to convert a vtu
>>>>> to the required json format.
>>>>>
>>>>> The documentation is lacking in this regard and the example data is
>>>>> not helpful for reverse engineering what is needed.
>>>>>
>>>>> Would appreciate any insight.
>>>>>
>>>>> Cheers
>>>>> Chris
>>>>>
>>>>> ___
>>>>> Powered by www.kitware.com
>>>>>
>>>>> Visit other Kitware open-source projects at
>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>
>>>>> Please keep messages on-topic and check the ParaView Wiki at:
>>>>> http://paraview.org/Wiki/ParaView
>>>>>
>>>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>>>
>>>>> Follow this link to subscribe/unsubscribe:
>>>>> http://public.kitware.com/mailman/listinfo/paraview
>>>>>
>>>>>
>>>>
>>>
>>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Convert VTU for Arctic Viewer

2017-09-21 Thread Sebastien Jourdain
Just download ParaView binary and use pvpython. You will have everything
required meaning both vtk and paraview side of things.

On Thu, Sep 21, 2017 at 12:17 PM, Chris Marsh <chris.ma...@usask.ca> wrote:

> Hi Sebastien,
> This is very helpful, thanks!
>
> Current hangup is that vtk.web.* is not available. I've installed vtk
> --with-python via homebrew (I use vtk successfully from python regularly).
> However the web components do not seem available. Googling isn't helping
> me. Any suggestions?
>
> Cheers
> Chris
>
>
> On 21 September 2017 at 11:31, Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> Hi Chris,
>>
>> Thanks for your interest. The following Python scripts provide an example
>> on how to generate such dataset.
>>
>> https://github.com/Kitware/arctic-viewer/blob/master/scripts
>> /examples/paraview/mpas/raw-probe-flat-earth.py
>> https://github.com/Kitware/arctic-viewer/blob/master/scripts
>> /examples/vtk/mpas/raw-probe-flat-earth.py
>>
>> Moreover, depending on your data structure, the way you want to iterate
>> through time may differ.
>> The example below show the can dataset with a geometry export. But at
>> least, it also show how to control time in ParaView when the reader is Time
>> aware.
>>
>> https://github.com/Kitware/arctic-viewer/blob/master/scripts
>> /examples/paraview/samples/VTKGeometry-can.py
>>
>> Let me know if you need additional information regarding that script and
>> what it is doing.
>>
>> Seb
>>
>> On Thu, Sep 21, 2017 at 10:59 AM, Chris Marsh <chris.ma...@usask.ca>
>> wrote:
>>
>>> Hi,
>>> I have a set of vtu files that represent a time series of spatial data.
>>> I would like to visualize it via the arctic viewer. Ultimately, I'd like
>>> something similar to the Flat earth probing example given here (
>>> http://tonic.kitware.com/). However it's unclear how to convert a vtu
>>> to the required json format.
>>>
>>> The documentation is lacking in this regard and the example data is not
>>> helpful for reverse engineering what is needed.
>>>
>>> Would appreciate any insight.
>>>
>>> Cheers
>>> Chris
>>>
>>> ___
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>>
>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/paraview
>>>
>>>
>>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Convert VTU for Arctic Viewer

2017-09-21 Thread Sebastien Jourdain
Hi Chris,

Thanks for your interest. The following Python scripts provide an example
on how to generate such dataset.

https://github.com/Kitware/arctic-viewer/blob/master/scripts/examples/paraview/mpas/raw-probe-flat-earth.py
https://github.com/Kitware/arctic-viewer/blob/master/scripts/examples/vtk/mpas/raw-probe-flat-earth.py

Moreover, depending on your data structure, the way you want to iterate
through time may differ.
The example below show the can dataset with a geometry export. But at
least, it also show how to control time in ParaView when the reader is Time
aware.

https://github.com/Kitware/arctic-viewer/blob/master/scripts/examples/paraview/samples/VTKGeometry-can.py

Let me know if you need additional information regarding that script and
what it is doing.

Seb

On Thu, Sep 21, 2017 at 10:59 AM, Chris Marsh  wrote:

> Hi,
> I have a set of vtu files that represent a time series of spatial data. I
> would like to visualize it via the arctic viewer. Ultimately, I'd like
> something similar to the Flat earth probing example given here (
> http://tonic.kitware.com/). However it's unclear how to convert a vtu to
> the required json format.
>
> The documentation is lacking in this regard and the example data is not
> helpful for reverse engineering what is needed.
>
> Would appreciate any insight.
>
> Cheers
> Chris
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] New download page layout

2017-09-07 Thread Sebastien Jourdain
Thanks Mark for sharing your thoughts...
It is always nice to have positive feedback from the community. ;-)


On Thu, Sep 7, 2017 at 12:28 PM, Van Moer, Mark W 
wrote:

> Hi, just wanted to say I really like the new page layout at
> https://www.paraview.org/download/
>
> Mark
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ParaviewWeb Examples | Python Libraries | Import Error

2017-08-29 Thread Sebastien Jourdain
Hi Leo,

the documentation has been updated to match paraview/master from maybe 2
weeks ago.
If you have an older version of ParaView, you would have to look at an
older version of the ParaViewWeb documentation of that example.
Or update your ParaView to the current master.

Seb

On Tue, Aug 29, 2017 at 1:48 PM, Léo Pessanha 
wrote:

> Hi!
>
> I am trying to build the example:
>
>> https://kitware.github.io/paraviewweb/examples/RemoteRenderer.html
>>
>
> I can't get past the python script that serves ParaView as server
>
> The errors I have encountered are:
>
> 'No module named wslink found' that I managed to fix installing wslink
> trough pip with 'pip install wslink' and copying the wslink folder to one
> of  the folders in the path of pvpython
>
> Then the following one showed up to me
>
> from paraview.web import wslink  as pv_wslink
>> ImportError: cannot import name wslink
>>
>
> At first I tought it was a circular dependencie problem and tried
>
> import paraview.web.pv_wslink
>>
>
> But got:
>
> File "/home/leo/remoteRenderer/pv_server.py", line 10, in 
>> import paraview.web.pv_wslink
>>   File "/opt/pv52/lib/python2.7/site-packages/paraview/web/pv_wslink.py",
>> line 6, in 
>> from vtk.web import wslink as vtk_wslink
>> ImportError: cannot import name wslink
>>
>
>
> I believe I am missing an important step needed to code with pvpython
> without problems.
>
> Something like a 'build_essentials' package or 'paraview.web'/'vtk.web'
> ones
>
> How can I manage the *sys.path* of pvpython in order for it to find those
> modules(pv_wslink and vtk_wslink) that are missing? (Installing trough pip
> adds the modules to python executable and not to the pvpython one)
>
> Can someone help me with this?
>
> Thanks in advance!
>
> Leonardo Pessanha
> Laboratory of Computational Methods in Engineering
> Federal University of Rio de Janeiro - COPPE
> Rio de Janeiro, RJ, Brasil
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Running a simple example using ParaviewWeb

2017-08-22 Thread Sebastien Jourdain
Almost, the missing part is for "dataModel = new QueryDataModel(jsonData,
'path/to/dist/data')"

'path/to/dist/data' should be '/data' since your web server is serving
path/to/dist as /

On Tue, Aug 22, 2017 at 12:23 PM, Léo Pessanha <leonardopessanh...@gmail.com
> wrote:

> So, just to be clear in order for me to understand
>
> I should copy the content of 
> 'node_modules/tonic-arctic-sample-data/data/probe/'
> to 'dist/data' and use
>
> dataModel = new QueryDataModel(jsonData, 'path/to/dist/data'),
>>
>
> in the src/index.js ?
>
> Thanks in advance!
>
> Leonardo Pessanha
> Laboratory of Computational Methods in Engineering
> Federal University of Rio de Janeiro - COPPE
> Rio de Janeiro, RJ, Brasil
>
>
> 2017-08-22 15:01 GMT-03:00 Sebastien Jourdain <sebastien.jourdain@kitware.
> com>:
>
>> __BASE_PATH__ is meant to dynamically define the http endpoint. This
>> should not be a file path...
>> You can remove it from your code and provide a proper endpoint. For us it
>> is used on to allow local and github.io deployment.
>>
>> In your case, you need to copy that data by yourself to the dist/data
>> directory so you can access it via http...
>>
>> Hope that helps,
>>
>> Seb
>>
>> On Tue, Aug 22, 2017 at 11:45 AM, Léo Pessanha <
>> leonardopessanh...@gmail.com> wrote:
>>
>>> Thank you, Sebastien.
>>>
>>> I am able to build the example but the data don't show up yelding in the
>>> browser debugger
>>>
>>> ReferenceError: __BASE_PATH__ is not defined[Learn More]
>>>>
>>>
>>> In the following line of MyWebApp.js
>>>
>>> dataModel = new _QueryDataModel2.default(_index2.default, __BASE_PATH__
>>>> + '/data/probe/'),
>>>>
>>>
>>> Do you know what path should be resolved by (__BASE_PATH__ +
>>> 'data/probe') ?
>>>
>>> I looked upon the the example webpage and repositories of
>>> paraviewweb/vtk.js and in then the resolve is
>>>
>>>  dataModel = new _QueryDataModel2.default(_index2.default,
>>>> ('/paraviewweb') + '/data/probe/'),
>>>>
>>>
>>> but this path does not exists after
>>>
>>> npm install paraviewweb  --save
>>>> npm install kw-web-suite  --save-dev
>>>>
>>>
>>> In the repositories, __BASE_PATH__ shows up in karma.config. Not using
>>> and not knowing how to use karma the problem?
>>>
>>> I tried defining __BASE_PATH__ in
>>>
>>> var path = require('path'),
>>> webpack = require('webpack'),
>>> loaders = require('./node_modules/paravi
>>> ewweb/config/webpack.loaders.js'),
>>> plugins =
>>> [ new webpack.DefinePlugin(
>>>   {
>>> __BASE_PATH__: ''' a lot of paths '"
>>>   }),
>>> ],
>>>
>>>
>>> but of the lot of paths I tried, none worked.
>>>
>>> Hope you can help me here!
>>> Thanks in advance!
>>>
>>>
>>> Leonardo Pessanha
>>> Laboratory of Computational Methods in Engineering
>>> Federal University of Rio de Janeiro - COPPE
>>> Rio de Janeiro, RJ, Brasil
>>>
>>>
>>> 2017-08-14 18:38 GMT-03:00 Sebastien Jourdain <
>>> sebastien.jourd...@kitware.com>:
>>>
>>>> I think your import is correct.
>>>>
>>>> Regarding the sample data, this is the way you can download it via npm
>>>> (when doing "npm install")
>>>> => https://github.com/Kitware/paraviewweb/blob/master/package.json#L48
>>>>
>>>> On Mon, Aug 14, 2017 at 3:12 PM, Léo Pessanha <
>>>> leonardopessanh...@gmail.com> wrote:
>>>>
>>>>> Hi! Thank you for the help! Because of it I was able to build and
>>>>> start the example correctly. Now I am trying different examples such as
>>>>> MultiLayoutViewer https://kitware.github.io/para
>>>>> viewweb/examples/MultiLayoutViewer.html .
>>>>> I am still a little doubtful about my imports but I believe
>>>>>
>>>>> import MultiLayoutViewer from '..';
>>>>>>
>>>>> should be
>>>>>
>>>>> import MultiLayoutViewer from 'paraviewweb/src/React/Viewers
>>>>>> /MultiLayoutViewer'
>>>>>
>>>>>
>>>>> Right?
>>>>>
>>>>> I couldn't find the package *

Re: [Paraview] Running a simple example using ParaviewWeb

2017-08-22 Thread Sebastien Jourdain
__BASE_PATH__ is meant to dynamically define the http endpoint. This should
not be a file path...
You can remove it from your code and provide a proper endpoint. For us it
is used on to allow local and github.io deployment.

In your case, you need to copy that data by yourself to the dist/data
directory so you can access it via http...

Hope that helps,

Seb

On Tue, Aug 22, 2017 at 11:45 AM, Léo Pessanha <leonardopessanh...@gmail.com
> wrote:

> Thank you, Sebastien.
>
> I am able to build the example but the data don't show up yelding in the
> browser debugger
>
> ReferenceError: __BASE_PATH__ is not defined[Learn More]
>>
>
> In the following line of MyWebApp.js
>
> dataModel = new _QueryDataModel2.default(_index2.default, __BASE_PATH__ +
>> '/data/probe/'),
>>
>
> Do you know what path should be resolved by (__BASE_PATH__ + 'data/probe')
> ?
>
> I looked upon the the example webpage and repositories of
> paraviewweb/vtk.js and in then the resolve is
>
>  dataModel = new _QueryDataModel2.default(_index2.default,
>> ('/paraviewweb') + '/data/probe/'),
>>
>
> but this path does not exists after
>
> npm install paraviewweb  --save
>> npm install kw-web-suite  --save-dev
>>
>
> In the repositories, __BASE_PATH__ shows up in karma.config. Not using and
> not knowing how to use karma the problem?
>
> I tried defining __BASE_PATH__ in
>
> var path = require('path'),
> webpack = require('webpack'),
> loaders = require('./node_modules/paraviewweb/config/webpack.
> loaders.js'),
> plugins =
> [ new webpack.DefinePlugin(
>   {
> __BASE_PATH__: ''' a lot of paths '"
>   }),
> ],
>
>
> but of the lot of paths I tried, none worked.
>
> Hope you can help me here!
> Thanks in advance!
>
>
> Leonardo Pessanha
> Laboratory of Computational Methods in Engineering
> Federal University of Rio de Janeiro - COPPE
> Rio de Janeiro, RJ, Brasil
>
>
> 2017-08-14 18:38 GMT-03:00 Sebastien Jourdain <sebastien.jourdain@kitware.
> com>:
>
>> I think your import is correct.
>>
>> Regarding the sample data, this is the way you can download it via npm
>> (when doing "npm install")
>> => https://github.com/Kitware/paraviewweb/blob/master/package.json#L48
>>
>> On Mon, Aug 14, 2017 at 3:12 PM, Léo Pessanha <
>> leonardopessanh...@gmail.com> wrote:
>>
>>> Hi! Thank you for the help! Because of it I was able to build and start
>>> the example correctly. Now I am trying different examples such as
>>> MultiLayoutViewer https://kitware.github.io/para
>>> viewweb/examples/MultiLayoutViewer.html .
>>> I am still a little doubtful about my imports but I believe
>>>
>>> import MultiLayoutViewer from '..';
>>>>
>>> should be
>>>
>>> import MultiLayoutViewer from 'paraviewweb/src/React/Viewers
>>>> /MultiLayoutViewer'
>>>
>>>
>>> Right?
>>>
>>> I couldn't find the package *tonic-arctic-sample-data *that holds the
>>> content needed in MultiLayoutViewer, MultiLayoutRenderer and Probe3DViewer
>>> examples in trough npm.
>>>
>>> Do you know how to do proceed?
>>>
>>> Thanks in advance.
>>>
>>> Leonardo Pessanha
>>> Laboratory of Computational Methods in Engineering
>>> Federal University of Rio de Janeiro - COPPE
>>> Rio de Janeiro, RJ, Brasil
>>>
>>>
>>> 2017-08-10 11:35 GMT-03:00 Sebastien Jourdain <
>>> sebastien.jourd...@kitware.com>:
>>>
>>>> With ParaViewWeb, we force the user to pick the version of the
>>>> dependencies they wants to install instead of forcing them.
>>>>
>>>> Regarding your import path they are still wrong.
>>>>
>>>> from paraviewweb/src/Component/Native/Composite/example/index.js
>>>>
>>>> when you import '..' that resolve to paraviewweb/src/Component/Nati
>>>> ve/Composite
>>>>
>>>> which means your imports should be:
>>>>
>>>> import CompositeComponent   from 'paraviewweb/src/Component/Nat
>>>> ive/Composite';
>>>> import BGColorComponent from 'paraviewweb/src/Component/Nat
>>>> ive/BackgroundColor';
>>>>
>>>> On Wed, Aug 9, 2017 at 7:37 PM, Léo Pessanha <
>>>> leonardopessanh...@gmail.com> wrote:
>>>>
>>>>> So, I was able to build using 'paraviewweb/src/' and installing
>>>>> forcibly mout, axios and hammerjs p

Re: [Paraview] Running a simple example using ParaviewWeb

2017-08-14 Thread Sebastien Jourdain
I think your import is correct.

Regarding the sample data, this is the way you can download it via npm
(when doing "npm install")
=> https://github.com/Kitware/paraviewweb/blob/master/package.json#L48

On Mon, Aug 14, 2017 at 3:12 PM, Léo Pessanha <leonardopessanh...@gmail.com>
wrote:

> Hi! Thank you for the help! Because of it I was able to build and start
> the example correctly. Now I am trying different examples such as
> MultiLayoutViewer https://kitware.github.io/paraviewweb/examples/
> MultiLayoutViewer.html .
> I am still a little doubtful about my imports but I believe
>
> import MultiLayoutViewer from '..';
>>
> should be
>
> import MultiLayoutViewer from 'paraviewweb/src/React/
>> Viewers/MultiLayoutViewer'
>
>
> Right?
>
> I couldn't find the package *tonic-arctic-sample-data *that holds the
> content needed in MultiLayoutViewer, MultiLayoutRenderer and Probe3DViewer
> examples in trough npm.
>
> Do you know how to do proceed?
>
> Thanks in advance.
>
> Leonardo Pessanha
> Laboratory of Computational Methods in Engineering
> Federal University of Rio de Janeiro - COPPE
> Rio de Janeiro, RJ, Brasil
>
>
> 2017-08-10 11:35 GMT-03:00 Sebastien Jourdain <sebastien.jourdain@kitware.
> com>:
>
>> With ParaViewWeb, we force the user to pick the version of the
>> dependencies they wants to install instead of forcing them.
>>
>> Regarding your import path they are still wrong.
>>
>> from paraviewweb/src/Component/Native/Composite/example/index.js
>>
>> when you import '..' that resolve to paraviewweb/src/Component/Nati
>> ve/Composite
>>
>> which means your imports should be:
>>
>> import CompositeComponent   from 'paraviewweb/src/Component/Nat
>> ive/Composite';
>> import BGColorComponent from 'paraviewweb/src/Component/Nat
>> ive/BackgroundColor';
>>
>> On Wed, Aug 9, 2017 at 7:37 PM, Léo Pessanha <
>> leonardopessanh...@gmail.com> wrote:
>>
>>> So, I was able to build using 'paraviewweb/src/' and installing forcibly
>>> mout, axios and hammerjs packages.
>>>
>>> Now there's other js errors that I am going after like /plotly.js\ and
>>> global reference ones !
>>>
>>> It's definitely not a simple task to build an example of paraviewweb as
>>> a standalone app.
>>>
>>> Definitely will come back with updates.
>>>
>>> Best regards,
>>>
>>>
>>> Leonardo Pessanha
>>> Laboratory of Computational Methods in Engineering
>>> Federal University of Rio de Janeiro - COPPE
>>> Rio de Janeiro, RJ, Brasil
>>>
>>>
>>> 2017-08-09 19:58 GMT-03:00 Léo Pessanha <leonardopessanh...@gmail.com>:
>>>
>>>> So I am not sure of the first path yet. Is it 'paraviewweb/src/' or
>>>> 'paraviewweb/src/Component'?
>>>>
>>>> I have the exactly same result using full path or starting with
>>>> 'paraviewweb'
>>>>
>>>> Using:
>>>>
>>>> import CompositeComponent   from 'paraviewweb/src/';
>>>>> import BGColorComponent from 'paraviewweb/src/Component/Nat
>>>>> ive/BackgroundColor';
>>>>>
>>>>
>>>> Outputs a lot of:
>>>>
>>>> Module not found: Error: Can't resolve
>>>>>
>>>>
>>>> So I did a 'npm list x' with x being the modules it couldn't
>>>> resolve(axios, hammerjs and etc) and none of then was installed.
>>>>
>>>> root@PC:~/MyWebProject# npm list hammerjs
>>>>> projeto1@0.0.1 /home/gabriel/MyWebProject
>>>>> └── (empty)
>>>>>
>>>>> root@PC:~/MyWebProject# npm list axios
>>>>> projeto1@0.0.1 /home/gabriel/MyWebProject
>>>>> └── (empty)
>>>>>
>>>>
>>>>
>>>> Do you believe *npm install paraviewweb --save* and npm install 
>>>> *kw-web-suite
>>>> --save-dev* failed installing the dependencies correctly?
>>>>
>>>> Best regards,
>>>>
>>>> Leonardo Pessanha
>>>> Laboratory of Computational Methods in Engineering
>>>> Federal University of Rio de Janeiro - COPPE
>>>> Rio de Janeiro, RJ, Brasil
>>>>
>>>>
>>>> 2017-08-09 19:38 GMT-03:00 Sebastien Jourdain <
>>>> sebastien.jourd...@kitware.com>:
>>>>
>>>>> The import should start with 'paraviewweb' then you provide the full
>>>>

Re: [Paraview] ParaViewWeb/Visualizer file upload server

2017-08-14 Thread Sebastien Jourdain
Hi Louise,

The upload part can be managed by the launcher or the actual ParaViewWeb
server (the later require additional args at startup).
That part was meant to be a proof of concept so we could create a form and
let the user upload the dataset that he wanted to visualize with Visualizer
either before or while Visualizer was running.

If you are using Apache, that means you will also have to forward /upload
to the launcher like you did with /paraview.

On the other hand creating your own endpoint for uploading file, should not
be too difficult either.

Here is the relevant part of the code that will register /upload if the
configuration provide such thing:

https://github.com/Kitware/VTK/blob/v7.1.1/Web/Python/vtk/web/launcher.py#L622-L627

Seb


On Mon, Aug 14, 2017 at 7:46 AM,  wrote:

> Hello,
>
>
>
> I was reading the docs for ParaViewWeb and Visualizer and I see they both
> mention a file upload server. Specifically, this section (
> https://kitware.github.io/paraviewweb/docs/python_
> launcher.html#Optional-Upload-Server) gives basic details of how it works.
>
>
>
> My question is that I can’t seem to see any evidence that this is working.
> My launcher config code specifies an “upload_dir” in the “configuration”
> section as detailed in the example launcher config file in the example but
> trying to send a post request to the URL specified (“/upload” rather than
> “/visualizer” which I use to access the Visualizer app) just results in an
> Apache “request URL not found” error.
>
>
>
> Am I interpreting the documentation incorrectly? Additionally, what is the
> functionality of the file upload server/what are its limitations? Could it
> allow for a user to upload a file and then modify that file in the
> Visualizer app? Or am I better off implementing my own file upload server?
>
>
>
> Thanks in advance,
>
> Louise
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] vtk-js adding axes grid and labels

2017-08-14 Thread Sebastien Jourdain
Hi Mariana,

Questions about vtk.js can be done on the issue tracker of vtk.js as well.

Regarding the axis grid, vtk.js does not provide such filter/representation
yet.
Unfortunately we don't have a time frame of when that will be available.
On the other hand, if you feel like it, you can contribute it to the
repository or
we offer support contract which could then be used to tackle the pieces
that you would like to see in vtk.js sooner.

Thanks,

Seb

On Mon, Aug 14, 2017 at 6:34 AM, Danielová Mariana <
mariana.daniel...@eli-beams.eu> wrote:

> Hello all,
>
>
>
> I am using vtk-js for visualization of .vtk datasets. I would like to add
> axes grid and some labels to my project. Is it possible? I haven’t found
> anything in the documentation here https://kitware.github.io/vtk-js/api/.
>
> Is this the correct place to ask questions about vtk-js?
>
>
>
> Thank you
>
>
>
> Best regards
>
>
>
> Mariana Danielova
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Running a simple example using ParaviewWeb

2017-08-10 Thread Sebastien Jourdain
With ParaViewWeb, we force the user to pick the version of the dependencies
they wants to install instead of forcing them.

Regarding your import path they are still wrong.

from paraviewweb/src/Component/Native/Composite/example/index.js

when you import '..' that resolve to
paraviewweb/src/Component/Native/Composite

which means your imports should be:

import CompositeComponent   from 'paraviewweb/src/Component/Native/Composite
';
import BGColorComponent from 'paraviewweb/src/Component/
Native/BackgroundColor';

On Wed, Aug 9, 2017 at 7:37 PM, Léo Pessanha <leonardopessanh...@gmail.com>
wrote:

> So, I was able to build using 'paraviewweb/src/' and installing forcibly
> mout, axios and hammerjs packages.
>
> Now there's other js errors that I am going after like /plotly.js\ and
> global reference ones !
>
> It's definitely not a simple task to build an example of paraviewweb as a
> standalone app.
>
> Definitely will come back with updates.
>
> Best regards,
>
>
> Leonardo Pessanha
> Laboratory of Computational Methods in Engineering
> Federal University of Rio de Janeiro - COPPE
> Rio de Janeiro, RJ, Brasil
>
>
> 2017-08-09 19:58 GMT-03:00 Léo Pessanha <leonardopessanh...@gmail.com>:
>
>> So I am not sure of the first path yet. Is it 'paraviewweb/src/' or
>> 'paraviewweb/src/Component'?
>>
>> I have the exactly same result using full path or starting with
>> 'paraviewweb'
>>
>> Using:
>>
>> import CompositeComponent   from 'paraviewweb/src/';
>>> import BGColorComponent from 'paraviewweb/src/Component/Nat
>>> ive/BackgroundColor';
>>>
>>
>> Outputs a lot of:
>>
>> Module not found: Error: Can't resolve
>>>
>>
>> So I did a 'npm list x' with x being the modules it couldn't
>> resolve(axios, hammerjs and etc) and none of then was installed.
>>
>> root@PC:~/MyWebProject# npm list hammerjs
>>> projeto1@0.0.1 /home/gabriel/MyWebProject
>>> └── (empty)
>>>
>>> root@PC:~/MyWebProject# npm list axios
>>> projeto1@0.0.1 /home/gabriel/MyWebProject
>>> └── (empty)
>>>
>>
>>
>> Do you believe *npm install paraviewweb --save* and npm install *kw-web-suite
>> --save-dev* failed installing the dependencies correctly?
>>
>> Best regards,
>>
>> Leonardo Pessanha
>> Laboratory of Computational Methods in Engineering
>> Federal University of Rio de Janeiro - COPPE
>> Rio de Janeiro, RJ, Brasil
>>
>>
>> 2017-08-09 19:38 GMT-03:00 Sebastien Jourdain <
>> sebastien.jourd...@kitware.com>:
>>
>>> The import should start with 'paraviewweb' then you provide the full
>>> path from there like:
>>>
>>> import BGColorComponent from 'paraviewweb/src/Component/Native/
>>> BackgroundColor';
>>>
>>> On Wed, Aug 9, 2017 at 6:24 PM, Léo Pessanha <
>>> leonardopessanh...@gmail.com> wrote:
>>>
>>>> Hi! I did the changes. The only thing I am not sure it's the right
>>>> paths in the imports of ${ROOT}/src/index.js
>>>>
>>>> import CompositeComponent   from '..';
>>>>> import BGColorComponent from '../../BackgroundColor';
>>>>>
>>>>>
>>>> Should I change this paths?
>>>>
>>>> I did try
>>>>
>>>> import CompositeComponent   from '/home/user/MyWebProject/node_
>>>> modules/paraviewweb/src';
>>>> import BGColorComponent from '/home/user/MyWebProject/node_
>>>> modules/paraviewweb/src/Component/Native/BackgroundColor';
>>>>
>>>> and
>>>>
>>>> import CompositeComponent   from '/home/user/MyWebProject/node_
>>>> modules/paraviewweb/src/Component';
>>>> import BGColorComponent from '/home/user/MyWebProject/node_
>>>> modules/paraviewweb/src/Component/Native/BackgroundColor';
>>>>
>>>> and
>>>>
>>>> import CompositeComponent   from '/home/user/MyWebProject/node_
>>>> modules/paraviewweb/src/Component/Native';
>>>> import BGColorComponent from '/home/user/MyWebProject/node_
>>>> modules/paraviewweb/src/Component/Native/BackgroundColor';
>>>>
>>>> With the last 2 sucessfully building but with JS errors in Firefox
>>>>
>>>> TypeError: _Component2.default is not a constructor[Learn More]
>>>>>
>>>>
>>>> and
>>>>
>>>> TypeError: _Native2.default is not a constructor
>>>>>
>>>

Re: [Paraview] Running a simple example using ParaviewWeb

2017-08-09 Thread Sebastien Jourdain
The import should start with 'paraviewweb' then you provide the full path
from there like:

import BGColorComponent from 'paraviewweb/src/Component/Native/
BackgroundColor';

On Wed, Aug 9, 2017 at 6:24 PM, Léo Pessanha <leonardopessanh...@gmail.com>
wrote:

> Hi! I did the changes. The only thing I am not sure it's the right paths
> in the imports of ${ROOT}/src/index.js
>
> import CompositeComponent   from '..';
>> import BGColorComponent from '../../BackgroundColor';
>>
>>
> Should I change this paths?
>
> I did try
>
> import CompositeComponent   from '/home/user/MyWebProject/node_
> modules/paraviewweb/src';
> import BGColorComponent from '/home/user/MyWebProject/node_
> modules/paraviewweb/src/Component/Native/BackgroundColor';
>
> and
>
> import CompositeComponent   from '/home/user/MyWebProject/node_
> modules/paraviewweb/src/Component';
> import BGColorComponent from '/home/user/MyWebProject/node_
> modules/paraviewweb/src/Component/Native/BackgroundColor';
>
> and
>
> import CompositeComponent   from '/home/user/MyWebProject/node_
> modules/paraviewweb/src/Component/Native';
> import BGColorComponent from '/home/user/MyWebProject/node_
> modules/paraviewweb/src/Component/Native/BackgroundColor';
>
> With the last 2 sucessfully building but with JS errors in Firefox
>
> TypeError: _Component2.default is not a constructor[Learn More]
>>
>
> and
>
> TypeError: _Native2.default is not a constructor
>>
>
> and the first one not building and giving me a lot of
>
> Module not found: Error: Can't resolve
>>
>
>
> Thanks in advance!
>
>
> Leonardo Pessanha
> Laboratory of Computational Methods in Engineering
> Federal University of Rio de Janeiro - COPPE
> Rio de Janeiro, RJ, Brasil
>
>
> 2017-08-03 17:42 GMT-03:00 Sebastien Jourdain <sebastien.jourdain@kitware.
> com>:
>
>> If I get to it, I'll do what I've done with vtk.js to support both.
>>
>> See: https://github.com/Kitware/vtk-js/blob/master/Utilities
>> /config/dependency.js
>>
>> On Thu, Aug 3, 2017 at 1:49 PM, Léo Pessanha <
>> leonardopessanh...@gmail.com> wrote:
>>
>>> Thank you, Sebastien. I will give a try!
>>>
>>> Do you believe it's best to rollback webpack to 1.x or to change the
>>> webpack.config.js in order to fit webpack 2.x API?
>>>
>>> Leonardo Pessanha
>>> Laboratory of Computational Methods in Engineering
>>> Federal University of Rio de Janeiro - COPPE
>>> Rio de Janeiro, RJ, Brasil
>>>
>>>
>>> 2017-07-24 17:21 GMT-03:00 Sebastien Jourdain <
>>> sebastien.jourd...@kitware.com>:
>>>
>>>> Based on the path given in the setup guide, you should copy the example
>>>> you want to reproduce inside ${ROOT}/src/* where the main example file
>>>> should be named index.js.
>>>>
>>>> Then you should be able to build your example using the npm command:
>>>> "npm run build".
>>>>
>>>> Maybe the vtk.js explanation might be easier to follow (
>>>> https://kitware.github.io/vtk-js/docs/intro_vtk_as_es6_dependency.html),
>>>> but the concept is exactly the same.
>>>> As it is picking the example available here https://kitware.github.io
>>>> /vtk-js/examples/Cone.html | https://github.com/Kitware/v
>>>> tk-js/tree/master/Examples/WebGL/Cone
>>>> and making a standalone application from it.
>>>>
>>>> Just be aware that vtk.js is using webpack2 which is not the case for
>>>> ParaViewWeb.
>>>>
>>>> Hope that helps,
>>>>
>>>> Seb
>>>>
>>>>
>>>> On Mon, Jul 24, 2017 at 1:28 PM, Léo Pessanha <
>>>> leonardopessanh...@gmail.com> wrote:
>>>>
>>>>> Hi!
>>>>>
>>>>> I would like to know the steps in order to run simple example like the
>>>>> following one:
>>>>>
>>>>> https://kitware.github.io/paraviewweb/examples/Composite/index.html
>>>>>
>>>>> It doesn't need to be a really elaborated tutorial, but a simple one
>>>>> with the main things.
>>>>> I have little to no background in web development.
>>>>>
>>>>> What I managed to do so far was to create my own project and add
>>>>> paraviewweb to it like its described in https://kitware.github.io/para
>>>>> viewweb/docs/setup.html .
>>>>>
>>>>> 

Re: [Paraview] ParaviewWeb on EC2

2017-08-09 Thread Sebastien Jourdain
If you just want to run it on your desktop, just download a ParaView binary
and you will be all set.

The only thing with Ubuntu 16, is that the documentation explaining how to
make services and configure apache might be slightly off.
Also the ansible provisioning script won't work, but everything can be done
by hand without too much issue.

Seb

On Wed, Aug 9, 2017 at 12:19 PM, Evans, Llion <llion.ev...@ukaea.uk> wrote:

> Ok, thanks. I guess to get it to work on the free tier I’d need to rebuild
> with mesa. I’d rather not go down that path as I’m not knowledgeable enough.
>
>
>
> That means I need to go back to trying to install on my local machine, but
> I was having difficulty getting Visualizer to start properly on Ubuntu 16.
>
>
>
> I notice you mentioned a compatibility issue with 16. Will this work on a
> VM? If so, I could try copying some of the file structure from the AMI to a
> fresh Ubuntu 14 VM install?
>
>
>
> Llion
>
>
>
> *From:* Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
> *Sent:* 09 August 2017 17:07
>
> *To:* Evans, Llion
> *Cc:* paraview@paraview.org
> *Subject:* Re: [Paraview] ParaviewWeb on EC2
>
>
>
> Yes, you need a g2
>
>
>
> On Wed, Aug 9, 2017 at 10:10 AM, Evans, Llion <llion.ev...@ukaea.uk>
> wrote:
>
> I found the error below (there was a new entry for each time I refreshed
> the page on the browser).
>
>
>
> ERROR: In /home/kitware/Dashboards/buildbot/paraview-debian4dash-
> linux-shared-release_qt4_superbuild/source-paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx,
> line 333
>
> vtkXOpenGLRenderWindow (0x64982b0): bad X server connection. DISPLAY=:0.0.
> Aborting.
>
>
>
> I assume that this is due to my choice of machine (i.e. using the aws free
> tier which doesn’t have a gpu).
>
>
>
> Llion
>
>
>
> *From:* Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
> *Sent:* 09 August 2017 14:48
> *To:* Evans, Llion
> *Cc:* paraview@paraview.org
> *Subject:* Re: [Paraview] ParaviewWeb on EC2
>
>
>
> Did you look at the logs on the server to see if you could have some hints
> on what could be the issue?
>
>
>
> On Wed, Aug 9, 2017 at 8:32 AM, Evans, Llion <llion.ev...@ukaea.uk> wrote:
>
> Hi Seb/Claude,
>
> Hopefully this should be an easy answer.
>
> I’ve been trying to get Visualizer up and running on aws. I used the ami
> mentioned below (ami-34f3f65e) and can load the page in a browser which
> brings up the 'ParaViewWeb' logo and a spinning cog. After a short while I
> get an error message 'Session did not start before timeout expired. Check
> session logs.'
>
> Other than installing a local browser I've not changed much of anything on
> the AMI. What am I doing wrong? I assume it's something simple that I'm
> missing, like do I need to drop in a dataset somewhere before it'll even
> load the page?
>
> Kind regards,
> Llion
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
>
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ParaviewWeb on EC2

2017-08-09 Thread Sebastien Jourdain
Yes, you need a g2

On Wed, Aug 9, 2017 at 10:10 AM, Evans, Llion <llion.ev...@ukaea.uk> wrote:

> I found the error below (there was a new entry for each time I refreshed
> the page on the browser).
>
>
>
> ERROR: In /home/kitware/Dashboards/buildbot/paraview-debian4dash-
> linux-shared-release_qt4_superbuild/source-paraview/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx,
> line 333
>
> vtkXOpenGLRenderWindow (0x64982b0): bad X server connection. DISPLAY=:0.0.
> Aborting.
>
>
>
> I assume that this is due to my choice of machine (i.e. using the aws free
> tier which doesn’t have a gpu).
>
>
>
> Llion
>
>
>
> *From:* Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
> *Sent:* 09 August 2017 14:48
> *To:* Evans, Llion
> *Cc:* paraview@paraview.org
> *Subject:* Re: [Paraview] ParaviewWeb on EC2
>
>
>
> Did you look at the logs on the server to see if you could have some hints
> on what could be the issue?
>
>
>
> On Wed, Aug 9, 2017 at 8:32 AM, Evans, Llion <llion.ev...@ukaea.uk> wrote:
>
> Hi Seb/Claude,
>
> Hopefully this should be an easy answer.
>
> I’ve been trying to get Visualizer up and running on aws. I used the ami
> mentioned below (ami-34f3f65e) and can load the page in a browser which
> brings up the 'ParaViewWeb' logo and a spinning cog. After a short while I
> get an error message 'Session did not start before timeout expired. Check
> session logs.'
>
> Other than installing a local browser I've not changed much of anything on
> the AMI. What am I doing wrong? I assume it's something simple that I'm
> missing, like do I need to drop in a dataset somewhere before it'll even
> load the page?
>
> Kind regards,
> Llion
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ParaviewWeb on EC2

2017-08-09 Thread Sebastien Jourdain
Did you look at the logs on the server to see if you could have some hints
on what could be the issue?

On Wed, Aug 9, 2017 at 8:32 AM, Evans, Llion  wrote:

> Hi Seb/Claude,
>
> Hopefully this should be an easy answer.
>
> I’ve been trying to get Visualizer up and running on aws. I used the ami
> mentioned below (ami-34f3f65e) and can load the page in a browser which
> brings up the 'ParaViewWeb' logo and a spinning cog. After a short while I
> get an error message 'Session did not start before timeout expired. Check
> session logs.'
>
> Other than installing a local browser I've not changed much of anything on
> the AMI. What am I doing wrong? I assume it's something simple that I'm
> missing, like do I need to drop in a dataset somewhere before it'll even
> load the page?
>
> Kind regards,
> Llion
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Running a simple example using ParaviewWeb

2017-08-03 Thread Sebastien Jourdain
If I get to it, I'll do what I've done with vtk.js to support both.

See:
https://github.com/Kitware/vtk-js/blob/master/Utilities/config/dependency.js

On Thu, Aug 3, 2017 at 1:49 PM, Léo Pessanha <leonardopessanh...@gmail.com>
wrote:

> Thank you, Sebastien. I will give a try!
>
> Do you believe it's best to rollback webpack to 1.x or to change the
> webpack.config.js in order to fit webpack 2.x API?
>
> Leonardo Pessanha
> Laboratory of Computational Methods in Engineering
> Federal University of Rio de Janeiro - COPPE
> Rio de Janeiro, RJ, Brasil
>
>
> 2017-07-24 17:21 GMT-03:00 Sebastien Jourdain <sebastien.jourdain@kitware.
> com>:
>
>> Based on the path given in the setup guide, you should copy the example
>> you want to reproduce inside ${ROOT}/src/* where the main example file
>> should be named index.js.
>>
>> Then you should be able to build your example using the npm command: "npm
>> run build".
>>
>> Maybe the vtk.js explanation might be easier to follow (
>> https://kitware.github.io/vtk-js/docs/intro_vtk_as_es6_dependency.html),
>> but the concept is exactly the same.
>> As it is picking the example available here https://kitware.github.io
>> /vtk-js/examples/Cone.html | https://github.com/Kitware/v
>> tk-js/tree/master/Examples/WebGL/Cone
>> and making a standalone application from it.
>>
>> Just be aware that vtk.js is using webpack2 which is not the case for
>> ParaViewWeb.
>>
>> Hope that helps,
>>
>> Seb
>>
>>
>> On Mon, Jul 24, 2017 at 1:28 PM, Léo Pessanha <
>> leonardopessanh...@gmail.com> wrote:
>>
>>> Hi!
>>>
>>> I would like to know the steps in order to run simple example like the
>>> following one:
>>>
>>> https://kitware.github.io/paraviewweb/examples/Composite/index.html
>>>
>>> It doesn't need to be a really elaborated tutorial, but a simple one
>>> with the main things.
>>> I have little to no background in web development.
>>>
>>> What I managed to do so far was to create my own project and add
>>> paraviewweb to it like its described in https://kitware.github.io/para
>>> viewweb/docs/setup.html .
>>>
>>> I don't know what to do next but I believe that a great start would be
>>> to know where to put the source code in the example and how to run it.
>>>
>>> Thanks in advance,
>>>
>>> Leonardo Pessanha
>>> Laboratory of Computational Methods in Engineering
>>> Federal University of Rio de Janeiro - COPPE
>>> Rio de Janeiro, RJ, Brasil
>>>
>>>
>>> ___
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>>
>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/paraview
>>>
>>>
>>
>> On Mon, Jul 24, 2017 at 1:28 PM, Léo Pessanha <
>> leonardopessanh...@gmail.com> wrote:
>>
>>> Hi!
>>>
>>> I would like to know the steps in order to run simple example like the
>>> following one:
>>>
>>> https://kitware.github.io/paraviewweb/examples/Composite/index.html
>>>
>>> It doesn't need to be a really elaborated tutorial, but a simple one
>>> with the main things.
>>> I have little to no background in web development.
>>>
>>> What I managed to do so far was to create my own project and add
>>> paraviewweb to it like its described in https://kitware.github.io/para
>>> viewweb/docs/setup.html .
>>>
>>> I don't know what to do next but I believe that a great start would be
>>> to know where to put the source code in the example and how to run it.
>>>
>>> Thanks in advance,
>>>
>>> Leonardo Pessanha
>>> Laboratory of Computational Methods in Engineering
>>> Federal University of Rio de Janeiro - COPPE
>>> Rio de Janeiro, RJ, Brasil
>>>
>>>
>>> ___
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>>
>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/paraview
>>>
>>>
>>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Running a simple example using ParaviewWeb

2017-07-24 Thread Sebastien Jourdain
Based on the path given in the setup guide, you should copy the example you
want to reproduce inside ${ROOT}/src/* where the main example file should
be named index.js.

Then you should be able to build your example using the npm command: "npm
run build".

Maybe the vtk.js explanation might be easier to follow (
https://kitware.github.io/vtk-js/docs/intro_vtk_as_es6_dependency.html),
but the concept is exactly the same.
As it is picking the example available here
https://kitware.github.io/vtk-js/examples/Cone.html |
https://github.com/Kitware/vtk-js/tree/master/Examples/WebGL/Cone
and making a standalone application from it.

Just be aware that vtk.js is using webpack2 which is not the case for
ParaViewWeb.

Hope that helps,

Seb


On Mon, Jul 24, 2017 at 1:28 PM, Léo Pessanha 
wrote:

> Hi!
>
> I would like to know the steps in order to run simple example like the
> following one:
>
> https://kitware.github.io/paraviewweb/examples/Composite/index.html
>
> It doesn't need to be a really elaborated tutorial, but a simple one with
> the main things.
> I have little to no background in web development.
>
> What I managed to do so far was to create my own project and add
> paraviewweb to it like its described in https://kitware.github.io/para
> viewweb/docs/setup.html .
>
> I don't know what to do next but I believe that a great start would be to
> know where to put the source code in the example and how to run it.
>
> Thanks in advance,
>
> Leonardo Pessanha
> Laboratory of Computational Methods in Engineering
> Federal University of Rio de Janeiro - COPPE
> Rio de Janeiro, RJ, Brasil
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensou
> rce/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>

On Mon, Jul 24, 2017 at 1:28 PM, Léo Pessanha 
wrote:

> Hi!
>
> I would like to know the steps in order to run simple example like the
> following one:
>
> https://kitware.github.io/paraviewweb/examples/Composite/index.html
>
> It doesn't need to be a really elaborated tutorial, but a simple one with
> the main things.
> I have little to no background in web development.
>
> What I managed to do so far was to create my own project and add
> paraviewweb to it like its described in https://kitware.github.io/
> paraviewweb/docs/setup.html .
>
> I don't know what to do next but I believe that a great start would be to
> know where to put the source code in the example and how to run it.
>
> Thanks in advance,
>
> Leonardo Pessanha
> Laboratory of Computational Methods in Engineering
> Federal University of Rio de Janeiro - COPPE
> Rio de Janeiro, RJ, Brasil
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Fwd: ParaviewWeb OSMesa build

2017-07-21 Thread Sebastien Jourdain
Can you send me a log from a visualizer session?

On Wed, Jul 19, 2017 at 10:23 AM, Hayk Grigoryan <hayk.grigorya...@gmail.com
> wrote:

> No, there is not any error logs in log files, just one that I wrote I see
> in the browser console. Please find in attachments the config files.
>
> I'm using http://localhost/visualizer or http://localhost/lightviz. BTW
> lightviz is showing a black page with 2 icons in the top left, and there is
> not errors. The error appears on visualizer.
>
> Thanks,
> Hayk
>
> On Wed, Jul 19, 2017 at 6:28 PM, Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> Did you get any error or feedback in the various logs? Moreover, which
>> URL did you use to connect and what launcher and apache configuration did
>> you use?
>>
>> On Wed, Jul 19, 2017 at 6:34 AM, Hayk Grigoryan <
>> hayk.grigorya...@gmail.com> wrote:
>>
>>>
>>> -- Forwarded message --
>>> From: Hayk Grigoryan <hayk.grigorya...@gmail.com>
>>> Date: Wed, Jul 19, 2017 at 4:33 PM
>>> Subject: Re: [Paraview] ParaviewWeb OSMesa build
>>> To: Sebastien Jourdain <sebastien.jourd...@kitware.com>
>>>
>>>
>>> Dear Sebastien,
>>>
>>> Thanks for you response.
>>>
>>> I'm trying a different ways for configuring paraviewweb as a web service.
>>>
>>> Now I have Ubuntu Desktop 16.04 and followed the tutorial link
>>> https://kitware.github.io/paraviewweb/docs/ubuntu_14_04.html .
>>>
>>> Following the steps I end up with error about WebSockets -> WebSocket
>>> connect to 'ws://localhost/ws' failed.
>>>
>>> I've used Paraview 5.2 and 5.4 versions.
>>>
>>> After long hours research I didn't find any answer for me.
>>>
>>> Could you please help to understand what cause this problem: Ubuntu
>>> version, Paraview version or configurations.
>>>
>>> Thanks in advance,
>>> Hayk
>>>
>>> On Tue, Jul 4, 2017 at 1:45 PM, Sebastien Jourdain <
>>> sebastien.jourd...@kitware.com> wrote:
>>>
>>>> Yes, but you will need to build ParaView with either OSMesa or EGL (if
>>>> you have a compatible NVidia GPU).
>>>>
>>>> When you do so, you won't need to build the Qt UI.
>>>>
>>>> Seb
>>>>
>>>> On Thu, Jun 29, 2017 at 2:39 PM, <hayk.grigorya...@gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>>
>>>>>
>>>>> I'm trying to build ParaViewWeb with OSMesa. I need help with my
>>>>> question.
>>>>>
>>>>>
>>>>>
>>>>> I've ubuntu 14.04 server without desktop and X. Can I install and make
>>>>> ParaViewWeb to work as a web service on my server?
>>>>>
>>>>>
>>>>>
>>>>> Thank in advance,
>>>>>
>>>>> Hayk
>>>>>
>>>>> ___
>>>>> Powered by www.kitware.com
>>>>>
>>>>> Visit other Kitware open-source projects at
>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>
>>>>> Please keep messages on-topic and check the ParaView Wiki at:
>>>>> http://paraview.org/Wiki/ParaView
>>>>>
>>>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>>>
>>>>> Follow this link to subscribe/unsubscribe:
>>>>> http://public.kitware.com/mailman/listinfo/paraview
>>>>>
>>>>>
>>>>
>>>
>>>
>>> ___
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>>
>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/paraview
>>>
>>>
>>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Fwd: ParaviewWeb OSMesa build

2017-07-19 Thread Sebastien Jourdain
Did you get any error or feedback in the various logs? Moreover, which URL
did you use to connect and what launcher and apache configuration did you
use?

On Wed, Jul 19, 2017 at 6:34 AM, Hayk Grigoryan <hayk.grigorya...@gmail.com>
wrote:

>
> -- Forwarded message --
> From: Hayk Grigoryan <hayk.grigorya...@gmail.com>
> Date: Wed, Jul 19, 2017 at 4:33 PM
> Subject: Re: [Paraview] ParaviewWeb OSMesa build
> To: Sebastien Jourdain <sebastien.jourd...@kitware.com>
>
>
> Dear Sebastien,
>
> Thanks for you response.
>
> I'm trying a different ways for configuring paraviewweb as a web service.
>
> Now I have Ubuntu Desktop 16.04 and followed the tutorial link
> https://kitware.github.io/paraviewweb/docs/ubuntu_14_04.html .
>
> Following the steps I end up with error about WebSockets -> WebSocket
> connect to 'ws://localhost/ws' failed.
>
> I've used Paraview 5.2 and 5.4 versions.
>
> After long hours research I didn't find any answer for me.
>
> Could you please help to understand what cause this problem: Ubuntu
> version, Paraview version or configurations.
>
> Thanks in advance,
> Hayk
>
> On Tue, Jul 4, 2017 at 1:45 PM, Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> Yes, but you will need to build ParaView with either OSMesa or EGL (if
>> you have a compatible NVidia GPU).
>>
>> When you do so, you won't need to build the Qt UI.
>>
>> Seb
>>
>> On Thu, Jun 29, 2017 at 2:39 PM, <hayk.grigorya...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>>
>>>
>>> I'm trying to build ParaViewWeb with OSMesa. I need help with my
>>> question.
>>>
>>>
>>>
>>> I've ubuntu 14.04 server without desktop and X. Can I install and make
>>> ParaViewWeb to work as a web service on my server?
>>>
>>>
>>>
>>> Thank in advance,
>>>
>>> Hayk
>>>
>>> ___
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>>
>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/paraview
>>>
>>>
>>
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ParaViewWeb Error - vtkweb-loader.js

2017-07-04 Thread Sebastien Jourdain
This is strange, it seems that you have the Web code of ParaView 4.

How did you get/build ParaView? Are you sure it is ParaView 5.2?

On Thu, Jun 29, 2017 at 4:31 AM, Mariam  wrote:

> Hi,
>
> I am trying to run ParaViewWeb using the following command:
>
> ./pvpython -dr ../Resources/web/visualizer/server/pvw-visualizer.py
> --content ../Resources/web/visualizer/www
>
>
>
> The connection is established, however, when accessing
> http://localhost:8080, I receive the following error in the browser
> (checked from Chrome Developer Tools):
>
> vtkweb-loader.js Failed to load resource: the server responded with a
> status of 404 (Not Found)
>
> localhost/:15 Uncaught ReferenceError: vtkWeb is not defined at
> localhost/:15
>
>
>
> From the command line, I receive the following:
>
> [HTTPChannel,0,127.0.0.1] "127.0.0.1" - - [29/Jun/2017:10:23:14 +]
> "GET /lib/core/vtkweb-loader.js HTTP/1.1" 404 145 "http://localhost:8080/;
> "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML,
> like Gecko) Chrome/59.0.3071.104 Safari/537.36"
>
>
>
> ParaView version: 5.2
>
> OS: Mac
>
>
>
> I tried to look for /lib/core/vtkweb-loader.js, but this location doesn’t
> exist in the current version. It seems to be existed in older versions such
> as 5.1, so I tried to install 5.1 as well but I got the same error.
>
>
>
> Any idea on how to resolve the issue?
>
>
>
> Thanks,
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ParaviewWeb OSMesa build

2017-07-04 Thread Sebastien Jourdain
Yes, but you will need to build ParaView with either OSMesa or EGL (if you
have a compatible NVidia GPU).

When you do so, you won't need to build the Qt UI.

Seb

On Thu, Jun 29, 2017 at 2:39 PM,  wrote:

> Hi,
>
>
>
> I'm trying to build ParaViewWeb with OSMesa. I need help with my question.
>
>
>
> I've ubuntu 14.04 server without desktop and X. Can I install and make
> ParaViewWeb to work as a web service on my server?
>
>
>
> Thank in advance,
>
> Hayk
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] vtm in paraview web

2017-06-14 Thread Sebastien Jourdain
Another solution would be to properly sort the content of "fileToLoad" here
https://github.com/Kitware/ParaView/blob/master/Web/Python/paraview/web/protocols.py#L1888

On Wed, Jun 14, 2017 at 8:57 AM, Sebastien Jourdain <
sebastien.jourd...@kitware.com> wrote:

> I mean the file names should be as follow:
>
> uuzip.btm_00.vtm
> uuzip.btm_01.vtm
> uuzip.btm_02.vtm
> uuzip.btm_03.vtm
> uuzip.btm_04.vtm
> uuzip.btm_05.vtm
> uuzip.btm_06.vtm
> uuzip.btm_07.vtm
> uuzip.btm_08.vtm
> uuzip.btm_09.vtm
> uuzip.btm_10.vtm
> [...]
>
> On Wed, Jun 14, 2017 at 8:54 AM, Daniel Zuidinga <i...@seoaachen.de>
> wrote:
>
>> Hi Seb,
>>
>> what do you mean by padding? how can I add it?
>>
>> br
>>
>>
>> Am 12.06.2017 um 23:51 schrieb Sebastien Jourdain:
>>
>> Hi Daniel,
>>
>> I've loaded your data files and it seems that the issue is related to the
>> order the time serie.
>>
>> Because you do not have a 0 padding, the first 10 steps get interleaved
>> with the 10, 20, 30... We can improve the sorting algorithm but if you add
>> a zero for padding, you should be all set (I mean, I did try and that
>> solved the issue).
>>
>> Seb
>>
>>
>> On Mon, Jun 12, 2017 at 3:24 PM, Daniel Zuidinga <i...@seoaachen.de>
>> wrote:
>>
>>> Hi,
>>>
>>> I converted a salome/code_aster med file to vtm and all values are right
>>> in paraview. But in paraview web there are failures on some time steps. I
>>> think this is a bug? What can I do? I tried this with several files and
>>> have always the same errors.
>>>
>>> Example file:
>>> https://www.dropbox.com/s/mt2qeb8d50koepv/Km5oysKroZ_VDb1iUuR.zip?dl=0
>>>
>>> regards
>>> ___
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>>
>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/paraview
>>>
>>
>>
>>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] vtm in paraview web

2017-06-14 Thread Sebastien Jourdain
I mean the file names should be as follow:

uuzip.btm_00.vtm
uuzip.btm_01.vtm
uuzip.btm_02.vtm
uuzip.btm_03.vtm
uuzip.btm_04.vtm
uuzip.btm_05.vtm
uuzip.btm_06.vtm
uuzip.btm_07.vtm
uuzip.btm_08.vtm
uuzip.btm_09.vtm
uuzip.btm_10.vtm
[...]

On Wed, Jun 14, 2017 at 8:54 AM, Daniel Zuidinga <i...@seoaachen.de> wrote:

> Hi Seb,
>
> what do you mean by padding? how can I add it?
>
> br
>
>
> Am 12.06.2017 um 23:51 schrieb Sebastien Jourdain:
>
> Hi Daniel,
>
> I've loaded your data files and it seems that the issue is related to the
> order the time serie.
>
> Because you do not have a 0 padding, the first 10 steps get interleaved
> with the 10, 20, 30... We can improve the sorting algorithm but if you add
> a zero for padding, you should be all set (I mean, I did try and that
> solved the issue).
>
> Seb
>
>
> On Mon, Jun 12, 2017 at 3:24 PM, Daniel Zuidinga <i...@seoaachen.de>
> wrote:
>
>> Hi,
>>
>> I converted a salome/code_aster med file to vtm and all values are right
>> in paraview. But in paraview web there are failures on some time steps. I
>> think this is a bug? What can I do? I tried this with several files and
>> have always the same errors.
>>
>> Example file:
>> https://www.dropbox.com/s/mt2qeb8d50koepv/Km5oysKroZ_VDb1iUuR.zip?dl=0
>>
>> regards
>> ___
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>>
>
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] vtm in paraview web

2017-06-12 Thread Sebastien Jourdain
Hi Daniel,

I've loaded your data files and it seems that the issue is related to the
order the time serie.

Because you do not have a 0 padding, the first 10 steps get interleaved
with the 10, 20, 30... We can improve the sorting algorithm but if you add
a zero for padding, you should be all set (I mean, I did try and that
solved the issue).

Seb


On Mon, Jun 12, 2017 at 3:24 PM, Daniel Zuidinga  wrote:

> Hi,
>
> I converted a salome/code_aster med file to vtm and all values are right
> in paraview. But in paraview web there are failures on some time steps. I
> think this is a bug? What can I do? I tried this with several files and
> have always the same errors.
>
> Example file:
> https://www.dropbox.com/s/mt2qeb8d50koepv/Km5oysKroZ_VDb1iUuR.zip?dl=0
>
> regards
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensou
> rce/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Question

2017-05-29 Thread Sebastien Jourdain
Q1: Yes but you will need to use open-swr or llvm-pipe (extra args with
distributed binaries if you have X) or build ParaView with OSMesa (no need
to build the Qt part)
Q2: http://kitware.github.io/paraviewweb/docs/multi_user_setup.html

Sorry for the very short answer but I have to go. ;-)

On Mon, May 29, 2017 at 4:04 PM, Hayk Grigoryan 
wrote:

> Hello All,
>
> My name is Hayk, I'm phd student and working on visualization of
> scientific data.
> I'm interested in ParaViewWeb component and used it on my desktop server.
> My goal is to make multi-user support service with this.
> I have a couple of questions which will be very helpful.
>
> Q1: Can I run and use ParaVieWeb in virtual environment without having a
> real graphical processing unit(GPU)?
> Q2: Which is the best way for deploying ParaViewWev as a service.
>
> Thanks in advice,
> Hayk
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ParaView Web - File pv_web_visualizer.py missing from Mac release v5.4

2017-05-24 Thread Sebastien Jourdain
That would be the correct link:
https://kitware.github.io/paraviewweb/docs/architecture.html#Simplicity

Did you manage to find that page using a search engine or from a link on
our Web site? If from a link do you mind pointing that page as we should
fix it.

Thanks,

Seb

On Wed, May 24, 2017 at 12:04 AM, Marco Pereanez  wrote:

> Morning,
>
> I am trying to use ParaView Web on Mac using Paraview v5.4 by following
> the guide in the following link:
>
> http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/
> index.html#!/guide/quick_start
>
> The problem is that the Python script 'pv_web_visualizer.py' is not
> included in the release for Mac.
>
> The following is the call to the file pv_web_visualizer.py which does not
> exist.
>
> $ cd /Applications/paraview.app/Contents
> $ ./bin/pvpython Python/paraview/web/pv_web_visualizer.py  \
>--content www   \
>--data-dir /path-to-share/  \
>--port 8080 &
> $ open http://localhost:8080/apps/Visualizer
>
> Has anyone come across this issue?
>
> Thanks for any help.
>
> Marco.
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Set background color, paraview web

2017-04-28 Thread Sebastien Jourdain
At the end of the "initialize" function.

Or just edit to match the color you want.

https://github.com/Kitware/visualizer/blob/master/server/pvw-visualizer.py#L197

On Fri, Apr 28, 2017 at 10:47 AM, Daniel Zuidinga <i...@seoaachen.de> wrote:

> I run the  pv_web_visualizer.py
>
> just add it to that file at the end?
>
>
> Am 28.04.2017 um 18:44 schrieb Sebastien Jourdain:
>
> I don't know, are you using ParaView as server? What is the Python file
> you execute to run that server? That could be in that file.
>
> On Fri, Apr 28, 2017 at 10:42 AM, Daniel Zuidinga <i...@seoaachen.de>
> wrote:
>
>> in which file?
>>
>>
>> Am 28.04.2017 um 16:53 schrieb Sebastien Jourdain:
>>
>> In Python on the server side:
>>
>> view = simple.GetRenderView()
>>
>> view.Background = [0, 0.5, 1]
>>
>> On Fri, Apr 28, 2017 at 8:10 AM, Daniel Zuidinga <i...@seoaachen.de>
>> wrote:
>>
>>> Hi,
>>>
>>> where can I set the default background color in paraview web?
>>>
>>> best regards
>>>
>>> ___
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>>
>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/paraview
>>>
>>
>>
>>
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Set background color, paraview web

2017-04-28 Thread Sebastien Jourdain
I don't know, are you using ParaView as server? What is the Python file you
execute to run that server? That could be in that file.

On Fri, Apr 28, 2017 at 10:42 AM, Daniel Zuidinga <i...@seoaachen.de> wrote:

> in which file?
>
>
> Am 28.04.2017 um 16:53 schrieb Sebastien Jourdain:
>
> In Python on the server side:
>
> view = simple.GetRenderView()
>
> view.Background = [0, 0.5, 1]
>
> On Fri, Apr 28, 2017 at 8:10 AM, Daniel Zuidinga <i...@seoaachen.de>
> wrote:
>
>> Hi,
>>
>> where can I set the default background color in paraview web?
>>
>> best regards
>>
>> ___
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>>
>
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Set background color, paraview web

2017-04-28 Thread Sebastien Jourdain
In Python on the server side:

view = simple.GetRenderView()

view.Background = [0, 0.5, 1]

On Fri, Apr 28, 2017 at 8:10 AM, Daniel Zuidinga  wrote:

> Hi,
>
> where can I set the default background color in paraview web?
>
> best regards
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensou
> rce/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] paraviewweb Remote Render Threshold

2017-04-03 Thread Sebastien Jourdain
Hi Francesco,

We are currently working on getting local rendering working with
ParaViewWeb leveraging vtk-js.
I'm hoping to have it available in the next version of ParaView.

Anyhow, the "Remote Render Threshold" is used to determine where the
rendering is happening between the "pvpython/client" process or the
"pvserver" ones.
Which means for ParaViewWeb we will have a third option, allowing us to
swap the rendering component in the web browser and rely on geometry
delivery for true local rendering.

Hope that helps,

Seb


On Mon, Apr 3, 2017 at 8:11 AM, Nigro, Francesco <
francesco.ni...@ferrari.com> wrote:

> Hi,
>
> I’m trying paraviewweb but I’m a bit confused by “Remote Render
> Threshold“;
>
> It seems that all the rendering  is done by the server, no matter what is
> set in the threshold.
>
>
>
> There is a way to let the web client do all the work?
>
>
>
> Thank you,
>
> Francesco
>
> [image: Ferrari]
> --
>
> Questo messaggio è da intendersi esclusivamente ad uso del destinatario e
> può contenere informazioni che sono di natura privilegiata, confidenziale o
> non divulgabile secondo le leggi vigenti. Se il lettore del presente
> messaggio non è il destinatario designato, o il dipendente/agente
> responsabile per la consegna del messaggio al destinatario designato, si
> informa che ogni disseminazione, distribuzione o copiatura di questa
> comunicazione è strettamente proibita anche ai sensi del decreto
> legislativo 196/03 . Se avete ricevuto questo messaggio per errore, vi
> preghiamo di notificarcelo immediatamente a mezzo e-mail di risposta e
> successivamente di procedere alla cancellazione di questa e-mail e relativi
> allegati dal vostro sistema.
> --
>
> This message is intended only for the use of the addressee and may contain
> information that is privileged, confidential and exempt from disclosure
> under applicable law. If the reader of this message is not the intended
> recipient, or the employee or agent responsible for delivering the message
> to the intended recipient, you are hereby notified that any dissemination,
> distribution or copying of this communication is strictly prohibited. If
> you have received this e-mail in error, please notify us immediately by
> return e-mail and delete this e-mail and all attachments from your system.
> --
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ParaView Web - module twisted.internet error

2017-03-14 Thread Sebastien Jourdain
Hi Ben,

Those modules are needed and should be shipped with ParaView.

I believe the issue might be in the ParaView project itself not in its
superbuild.
I'm guessing, I messed up a dependency when I split the python code between
python 2+3 and python 2 only. The python 2 one should depend on those
libraries but not the python 2+3 code.

Let me know how I can help to fix that,

Thanks,

Seb

On Tue, Mar 14, 2017 at 9:39 AM, Ben Boeckel 
wrote:

> On Tue, Mar 14, 2017 at 12:01:32 -0300, Rodnei Couto wrote:
> > Python modules are different from 5.2 to 5.3
> >
> > For example, inside* lib/python2.7/site-packages, *the version 5.2 has
> the
> > modules *autobahn, zope and twisted*, and the version 5.3 does not.
> >
> > I tried to copy the twisted and zope modules from version 5.2 to version
> > 5.3, but a got others errors.
> >
> > By now, I reverted to release 5.2 in production environment.
>
> Looking at the superbuild, it appears that when ParaViewWeb got moved
> from ParaView into its own repository, the flags that turned on pvweb
> got removed and now there's nothing enabling those modules in ParaView's
> build anymore. Do those packages need to be shipped with ParaView at all
> now? If so, we'll need to add them to the superbuild specifically. If
> not, some flag will need to be used to turn them on.
>
> --Ben
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ParaView Web - module twisted.internet error

2017-03-13 Thread Sebastien Jourdain
Hum, that is weird.

It could be a bug.

Do you mind doing a diff between the 2 python modules between 5.2 and 5.3.

Twisted should be the same. Then on the ParaView side, I'm not expecting
much difference.

Thanks for tracking that down...

Seb

On Mon, Mar 13, 2017 at 11:42 AM, Rodnei Couto <rodneico...@gmail.com>
wrote:

> Yes, I'm sure there is no twisted library in my system python.
>
> I rollback to version 5.2.0 and everything works fine.
>
> Can be a bug?
>
> --
> Rodnei Couto |  (55 21) 98749-9885
>
> On Sun, Mar 12, 2017 at 3:12 PM, Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> Are you sure, there is no twisted library in your system python?
>>
>>
>> On Fri, Mar 10, 2017 at 6:34 PM, Rodnei Couto <rodneico...@gmail.com>
>> wrote:
>>
>>> My version was downloaded from the official site
>>>
>>> ParaView-5.3.0-RC3-Qt5-OpenGL2-MPI-Linux-64bit
>>>
>>> Cheers,
>>>
>>> --
>>> Rodnei Couto |  (55 21) 98749-9885
>>>
>>> On Fri, Mar 10, 2017 at 6:36 PM, Scott Wittenburg <
>>> scott.wittenb...@kitware.com> wrote:
>>>
>>>> What version of ParaView are you using?  One you built yourself (if so,
>>>> how old), or a release binary?
>>>>
>>>>
>>>> On Fri, Mar 10, 2017 at 2:31 PM, Rodnei Couto <rodneico...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Thanks for the answer.
>>>>>
>>>>> I completely removed the twisted from my machine and the error
>>>>> continue. In fact the error occurred before his installation. I installed
>>>>> twitted to try to solve it
>>>>>
>>>>> Any other ideas?
>>>>>
>>>>> Cheers,
>>>>>
>>>>>
>>>>> --
>>>>> Rodnei Couto |  (55 21) 98749-9885
>>>>>
>>>>> On Fri, Mar 10, 2017 at 4:55 PM, Scott Wittenburg <
>>>>> scott.wittenb...@kitware.com> wrote:
>>>>>
>>>>>> Did you try to set up your own version of twisted in your system
>>>>>> python?  When you illustrated how twisted was properly set up, you did it
>>>>>> with "python", but your start script runs pvpython.  I wonder if maybe 
>>>>>> your
>>>>>> system python twisted is conflicting (or overriding) with the one 
>>>>>> provided
>>>>>> by pvpython?  That's just a guess based on a quick read.
>>>>>>
>>>>>> Hope this helps,
>>>>>> Scott
>>>>>>
>>>>>> On Fri, Mar 10, 2017 at 12:37 PM, Rodnei Couto <rodneico...@gmail.com
>>>>>> > wrote:
>>>>>>
>>>>>>> I set up my environment as indicated in http://kitware.github.io/pa
>>>>>>> raviewweb/docs/ubuntu_14_04.html
>>>>>>>
>>>>>>> My operational system is Ubuntu 64 14_04 LTS.
>>>>>>>
>>>>>>> When I try to run my start.sh, I get an error:
>>>>>>>
>>>>>>> pvw-user@cole:/local/pvw-user$ Traceback (most recent call last):
>>>>>>>   File 
>>>>>>> "/local/pvw-user/data/pv/pv-current/lib/python2.7/site-packages/vtk/web/launcher.py",
>>>>>>>  line 14, in 
>>>>>>> from twisted.internet import reactor, defer
>>>>>>> ImportError: No module named twisted.internet
>>>>>>>
>>>>>>> i think the twisted is properly installed in my environment, as can
>>>>>>> be seen below:
>>>>>>>
>>>>>>> pvw-user@cole:/local/pvw-user$ python -c "from twisted.internet import 
>>>>>>> reactor, defer; print( defer ); print ( reactor ) "
>>>>>>> >>>>>> '/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.pyc'>
>>>>>>> 
>>>>>>>
>>>>>>>
>>>>>>> My start.sh code is:
>>>>>>>
>>>>>>>  #!/bin/bash
>>>>>>> export DISPLAY=:0.0
>>>>>>> /data/pv/pv-current/bin/pvpython 
>>>>>>> /data/pv/pv-current/lib/python2.7/site-packages/vtk/web/launcher.py 
>>>>>>> /data/pvw/conf/launcher.json &
>>>>

Re: [Paraview] ParaView Web - module twisted.internet error

2017-03-12 Thread Sebastien Jourdain
Are you sure, there is no twisted library in your system python?


On Fri, Mar 10, 2017 at 6:34 PM, Rodnei Couto  wrote:

> My version was downloaded from the official site
>
> ParaView-5.3.0-RC3-Qt5-OpenGL2-MPI-Linux-64bit
>
> Cheers,
>
> --
> Rodnei Couto |  (55 21) 98749-9885
>
> On Fri, Mar 10, 2017 at 6:36 PM, Scott Wittenburg <
> scott.wittenb...@kitware.com> wrote:
>
>> What version of ParaView are you using?  One you built yourself (if so,
>> how old), or a release binary?
>>
>>
>> On Fri, Mar 10, 2017 at 2:31 PM, Rodnei Couto 
>> wrote:
>>
>>> Hi,
>>>
>>> Thanks for the answer.
>>>
>>> I completely removed the twisted from my machine and the error continue.
>>> In fact the error occurred before his installation. I installed twitted to
>>> try to solve it
>>>
>>> Any other ideas?
>>>
>>> Cheers,
>>>
>>>
>>> --
>>> Rodnei Couto |  (55 21) 98749-9885
>>>
>>> On Fri, Mar 10, 2017 at 4:55 PM, Scott Wittenburg <
>>> scott.wittenb...@kitware.com> wrote:
>>>
 Did you try to set up your own version of twisted in your system
 python?  When you illustrated how twisted was properly set up, you did it
 with "python", but your start script runs pvpython.  I wonder if maybe your
 system python twisted is conflicting (or overriding) with the one provided
 by pvpython?  That's just a guess based on a quick read.

 Hope this helps,
 Scott

 On Fri, Mar 10, 2017 at 12:37 PM, Rodnei Couto 
 wrote:

> I set up my environment as indicated in http://kitware.github.io/pa
> raviewweb/docs/ubuntu_14_04.html
>
> My operational system is Ubuntu 64 14_04 LTS.
>
> When I try to run my start.sh, I get an error:
>
> pvw-user@cole:/local/pvw-user$ Traceback (most recent call last):
>   File 
> "/local/pvw-user/data/pv/pv-current/lib/python2.7/site-packages/vtk/web/launcher.py",
>  line 14, in 
> from twisted.internet import reactor, defer
> ImportError: No module named twisted.internet
>
> i think the twisted is properly installed in my environment, as can be
> seen below:
>
> pvw-user@cole:/local/pvw-user$ python -c "from twisted.internet import 
> reactor, defer; print( defer ); print ( reactor ) "
>  '/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.pyc'>
> 
>
>
> My start.sh code is:
>
>  #!/bin/bash
> export DISPLAY=:0.0
> /data/pv/pv-current/bin/pvpython 
> /data/pv/pv-current/lib/python2.7/site-packages/vtk/web/launcher.py 
> /data/pvw/conf/launcher.json &
>
>
> Can anybody help me? I do not know what else I can do
>
> Cheers,
>
> —
>
> Rodnei Couto | (55 21) 98749-9885
> ​
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>

>>>
>>> ___
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>>
>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/paraview
>>>
>>>
>>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ParaViewWeb in 5.2

2017-03-06 Thread Sebastien Jourdain
What you are seeing is expected.

The Web (JS+HTML) part of ParaView has been externalized inside its own
repo.
But based on what you've done, you've properly build ParaView and the
Python side of it that is required for the Web component to work.

ParaView super build for instance will download visualizer from (
https://github.com/Kitware/visualizer) and bundle it in our distribution.

So what you are missing is the "dist" directory from the repo above (which
correspond to the www directory) and the "server" directory that contains
the python script that should be run inside pvpython.

Let me know if you need more guidance.

Seb

On Mon, Mar 6, 2017 at 5:14 PM, alex razoumov 
wrote:

> Hello,
>
> I am compiling ParaView-5.2.0 for offscreen rendering and ParaViewWeb on
> an Ubuntu 16.04.2 VM with:
>
>   -DPARAVIEW_ENABLE_PYTHON=ON \
>   -DPARAVIEW_BUILD_QT_GUI=OFF \
>   -DVTK_OPENGL_HAS_OSMESA=ON \
>   -DVTK_USE_OFFSCREEN=ON \
>   -DVTK_USE_X=OFF \
>   -DPARAVIEW_ENABLE_WEB=ON \
>
> but the resulting build does not include ParaViewWeb:
>
> $ ls paraview/share/
> cmake
>
> and there is no pvw-visualizer.py anywhere. Am I missing something?
>
> Thank you,
>
> --
>
> Alex Razoumov
>
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ParaView 5.3.0 Release Candidate 2 binaries are available for download

2017-02-23 Thread Sebastien Jourdain
lightviz does not have any webgl either.

Once we get vtk-js with a ParaViewWeb server, then LightViz and Visualizer
will be able to get it, but not before that.

Regarding the estimate, it is hard to tell as it is dependent on the
funding priorities.
So far, I've managed to get most of the features I need in vtk-js (~98%)
but then when vtk-js is ready,
I will need some dedicated time for revisiting the server side and client
side to deal with geometry rendering.
I'm hoping 6-12 months but without any guaranty. Unless we get funding
specifically for that, in which case it could be way sooner.

On Thu, Feb 23, 2017 at 4:49 PM, Daniel Zuidinga <i...@seoaachen.de> wrote:

> does lightviz also not support webgl (in any version)?
>
> can you give any rough estimation on the vtk-js porting?
>
> Am 24.02.2017 um 00:45 schrieb Sebastien Jourdain:
>
> No WebGL support in that version. But you can always take the python+web
> from old paraview if you want the old visualizer. By python, I mean only
> the file that is passed as argument to pvpython.
>
> The webgl rendering will be using vtk-js but we haven't finished porting
> it to the ParaViewWeb client/server implementation.
>
> On Thu, Feb 23, 2017 at 4:32 PM, Daniel Zuidinga <i...@seoaachen.de>
> wrote:
>
>> i tried --data
>> \data
>> data\
>> \data\
>> /data
>> \data
>> c:\temp
>> c:\temp\
>> etc.
>> nothing is listed
>> also there is no webgl support btw
>>
>>
>> Am 24.02.2017 um 00:29 schrieb Sebastien Jourdain:
>>
>> no \ at the end
>>
>> On Thu, Feb 23, 2017 at 4:28 PM, Sebastien Jourdain <
>> sebastien.jourd...@kitware.com> wrote:
>>
>>> Must be a full path... What is wrong 5.2 vs 5.3?
>>>
>>> On Thu, Feb 23, 2017 at 4:26 PM, Daniel Zuidinga <i...@seoaachen.de>
>>> wrote:
>>>
>>>> my --data-dir parameter is wrong. it must be  --data data\ ?
>>>>
>>>> but also with this no files are listed
>>>>
>>>>
>>>>
>>>> Am 24.02.2017 um 00:15 schrieb Daniel Zuidinga:
>>>>
>>>> works now. Btw the documentation is wrong for windows? It should be
>>>> .\bin\pvpython.exe 
>>>> share\paraview-5.3\web\visualizer\server\pvw-visualizer.py
>>>> --content share\paraview-5.3\web\visualizer\www\ --data-dir data\
>>>> --port 8080
>>>>
>>>> here: http://kitware.github.io/paraviewweb/docs/architecture.html#
>>>> Simplicity
>>>>
>>>>
>>>> Am 23.02.2017 um 23:50 schrieb Sebastien Jourdain:
>>>>
>>>> Cory,
>>>>
>>>> should I change pvw-visualizer.py to use "Camera3DManipulator" instead
>>>> of "Camera3DManipulators"?
>>>>
>>>> Or it was just a mistake?
>>>>
>>>> Daniel, you can edit that file in the version you've downloaded and
>>>> remove the "s" in the following line:
>>>>
>>>> interactionProxy.Camera3DManipulators = ['Rotate', 'Pan', 'Zoom',
>>>> 'Pan', 'Roll', 'Pan', 'Zoom', 'Rotate', 'Zoom']
>>>>
>>>> Let us know if you have a crash like before.
>>>>
>>>> Thanks,
>>>>
>>>> Seb
>>>>
>>>> On Thu, Feb 23, 2017 at 3:44 PM, Cory Quammen <cory.quam...@kitware.com
>>>> > wrote:
>>>>
>>>>> Daniel,
>>>>>
>>>>> We have a fix for that particular error coming for 5.3.0 final. Please
>>>>> see https://gitlab.kitware.com/paraview/paraview/merge_requests/1415.
>>>>>
>>>>> Cory
>>>>>
>>>>> On Thu, Feb 23, 2017 at 5:40 PM, Daniel Zuidinga <i...@seoaachen.de>
>>>>> wrote:
>>>>> > I still try to get pvwebvisualizer running on win 10:
>>>>> >
>>>>> > C:\Program Files\ParaView
>>>>> > 5.3.0-RC2-Qt5-OpenGL2-Windows-64bit>.\bin\pvpython.exe
>>>>> > share\paraview-5.3\web\visualizer\server\pvw-visualizer.py --content
>>>>> > share\paraview-5.3\web\visualizer\www\ --data data\ --port 8080
>>>>> > 2017-02-23 23:38:18+0100 [-] Log opened.
>>>>> > 2017-02-23 23:38:18+0100 [-] Traceback (most recent call last):
>>>>> > 2017-02-23 23:38:18+0100 [-]   File
>>>>> > "share\paraview-5.3\web\visualizer\server\pvw-visualizer.py", line
>>>>> 219, in
>>>>> > 

Re: [Paraview] ParaView 5.3.0 Release Candidate 2 binaries are available for download

2017-02-23 Thread Sebastien Jourdain
Are you running from the native command line or cygwin?

On Thu, Feb 23, 2017 at 4:46 PM, Sebastien Jourdain <
sebastien.jourd...@kitware.com> wrote:

> C:\temp should have worked if that directory exist.
>
> On Thu, Feb 23, 2017 at 4:45 PM, Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> No WebGL support in that version. But you can always take the python+web
>> from old paraview if you want the old visualizer. By python, I mean only
>> the file that is passed as argument to pvpython.
>>
>> The webgl rendering will be using vtk-js but we haven't finished porting
>> it to the ParaViewWeb client/server implementation.
>>
>> On Thu, Feb 23, 2017 at 4:32 PM, Daniel Zuidinga <i...@seoaachen.de>
>> wrote:
>>
>>> i tried --data
>>> \data
>>> data\
>>> \data\
>>> /data
>>> \data
>>> c:\temp
>>> c:\temp\
>>> etc.
>>> nothing is listed
>>> also there is no webgl support btw
>>>
>>>
>>> Am 24.02.2017 um 00:29 schrieb Sebastien Jourdain:
>>>
>>> no \ at the end
>>>
>>> On Thu, Feb 23, 2017 at 4:28 PM, Sebastien Jourdain <
>>> sebastien.jourd...@kitware.com> wrote:
>>>
>>>> Must be a full path... What is wrong 5.2 vs 5.3?
>>>>
>>>> On Thu, Feb 23, 2017 at 4:26 PM, Daniel Zuidinga <i...@seoaachen.de>
>>>> wrote:
>>>>
>>>>> my --data-dir parameter is wrong. it must be  --data data\ ?
>>>>>
>>>>> but also with this no files are listed
>>>>>
>>>>>
>>>>>
>>>>> Am 24.02.2017 um 00:15 schrieb Daniel Zuidinga:
>>>>>
>>>>> works now. Btw the documentation is wrong for windows? It should be
>>>>> .\bin\pvpython.exe 
>>>>> share\paraview-5.3\web\visualizer\server\pvw-visualizer.py
>>>>> --content share\paraview-5.3\web\visualizer\www\ --data-dir data\
>>>>> --port 8080
>>>>>
>>>>> here: http://kitware.github.io/paraviewweb/docs/architecture.html#
>>>>> Simplicity
>>>>>
>>>>>
>>>>> Am 23.02.2017 um 23:50 schrieb Sebastien Jourdain:
>>>>>
>>>>> Cory,
>>>>>
>>>>> should I change pvw-visualizer.py to use "Camera3DManipulator"
>>>>> instead of "Camera3DManipulators"?
>>>>>
>>>>> Or it was just a mistake?
>>>>>
>>>>> Daniel, you can edit that file in the version you've downloaded and
>>>>> remove the "s" in the following line:
>>>>>
>>>>> interactionProxy.Camera3DManipulators = ['Rotate', 'Pan', 'Zoom',
>>>>> 'Pan', 'Roll', 'Pan', 'Zoom', 'Rotate', 'Zoom']
>>>>>
>>>>> Let us know if you have a crash like before.
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Seb
>>>>>
>>>>> On Thu, Feb 23, 2017 at 3:44 PM, Cory Quammen <
>>>>> cory.quam...@kitware.com> wrote:
>>>>>
>>>>>> Daniel,
>>>>>>
>>>>>> We have a fix for that particular error coming for 5.3.0 final. Please
>>>>>> see https://gitlab.kitware.com/paraview/paraview/merge_requests/1415.
>>>>>>
>>>>>> Cory
>>>>>>
>>>>>> On Thu, Feb 23, 2017 at 5:40 PM, Daniel Zuidinga <i...@seoaachen.de>
>>>>>> wrote:
>>>>>> > I still try to get pvwebvisualizer running on win 10:
>>>>>> >
>>>>>> > C:\Program Files\ParaView
>>>>>> > 5.3.0-RC2-Qt5-OpenGL2-Windows-64bit>.\bin\pvpython.exe
>>>>>> > share\paraview-5.3\web\visualizer\server\pvw-visualizer.py
>>>>>> --content
>>>>>> > share\paraview-5.3\web\visualizer\www\ --data data\ --port 8080
>>>>>> > 2017-02-23 23:38:18+0100 [-] Log opened.
>>>>>> > 2017-02-23 23:38:18+0100 [-] Traceback (most recent call last):
>>>>>> > 2017-02-23 23:38:18+0100 [-]   File
>>>>>> > "share\paraview-5.3\web\visualizer\server\pvw-visualizer.py", line
>>>>>> 219, in
>>>>>> > 
>>>>>> > 2017-02-23 23:38:18+0100 [-] server.start_webserver(options=args,
>>>>>> > protocol=_VisualizerServer)
>&g

Re: [Paraview] ParaView 5.3.0 Release Candidate 2 binaries are available for download

2017-02-23 Thread Sebastien Jourdain
C:\temp should have worked if that directory exist.

On Thu, Feb 23, 2017 at 4:45 PM, Sebastien Jourdain <
sebastien.jourd...@kitware.com> wrote:

> No WebGL support in that version. But you can always take the python+web
> from old paraview if you want the old visualizer. By python, I mean only
> the file that is passed as argument to pvpython.
>
> The webgl rendering will be using vtk-js but we haven't finished porting
> it to the ParaViewWeb client/server implementation.
>
> On Thu, Feb 23, 2017 at 4:32 PM, Daniel Zuidinga <i...@seoaachen.de>
> wrote:
>
>> i tried --data
>> \data
>> data\
>> \data\
>> /data
>> \data
>> c:\temp
>> c:\temp\
>> etc.
>> nothing is listed
>> also there is no webgl support btw
>>
>>
>> Am 24.02.2017 um 00:29 schrieb Sebastien Jourdain:
>>
>> no \ at the end
>>
>> On Thu, Feb 23, 2017 at 4:28 PM, Sebastien Jourdain <
>> sebastien.jourd...@kitware.com> wrote:
>>
>>> Must be a full path... What is wrong 5.2 vs 5.3?
>>>
>>> On Thu, Feb 23, 2017 at 4:26 PM, Daniel Zuidinga <i...@seoaachen.de>
>>> wrote:
>>>
>>>> my --data-dir parameter is wrong. it must be  --data data\ ?
>>>>
>>>> but also with this no files are listed
>>>>
>>>>
>>>>
>>>> Am 24.02.2017 um 00:15 schrieb Daniel Zuidinga:
>>>>
>>>> works now. Btw the documentation is wrong for windows? It should be
>>>> .\bin\pvpython.exe 
>>>> share\paraview-5.3\web\visualizer\server\pvw-visualizer.py
>>>> --content share\paraview-5.3\web\visualizer\www\ --data-dir data\
>>>> --port 8080
>>>>
>>>> here: http://kitware.github.io/paraviewweb/docs/architecture.html#
>>>> Simplicity
>>>>
>>>>
>>>> Am 23.02.2017 um 23:50 schrieb Sebastien Jourdain:
>>>>
>>>> Cory,
>>>>
>>>> should I change pvw-visualizer.py to use "Camera3DManipulator" instead
>>>> of "Camera3DManipulators"?
>>>>
>>>> Or it was just a mistake?
>>>>
>>>> Daniel, you can edit that file in the version you've downloaded and
>>>> remove the "s" in the following line:
>>>>
>>>> interactionProxy.Camera3DManipulators = ['Rotate', 'Pan', 'Zoom',
>>>> 'Pan', 'Roll', 'Pan', 'Zoom', 'Rotate', 'Zoom']
>>>>
>>>> Let us know if you have a crash like before.
>>>>
>>>> Thanks,
>>>>
>>>> Seb
>>>>
>>>> On Thu, Feb 23, 2017 at 3:44 PM, Cory Quammen <cory.quam...@kitware.com
>>>> > wrote:
>>>>
>>>>> Daniel,
>>>>>
>>>>> We have a fix for that particular error coming for 5.3.0 final. Please
>>>>> see https://gitlab.kitware.com/paraview/paraview/merge_requests/1415.
>>>>>
>>>>> Cory
>>>>>
>>>>> On Thu, Feb 23, 2017 at 5:40 PM, Daniel Zuidinga <i...@seoaachen.de>
>>>>> wrote:
>>>>> > I still try to get pvwebvisualizer running on win 10:
>>>>> >
>>>>> > C:\Program Files\ParaView
>>>>> > 5.3.0-RC2-Qt5-OpenGL2-Windows-64bit>.\bin\pvpython.exe
>>>>> > share\paraview-5.3\web\visualizer\server\pvw-visualizer.py --content
>>>>> > share\paraview-5.3\web\visualizer\www\ --data data\ --port 8080
>>>>> > 2017-02-23 23:38:18+0100 [-] Log opened.
>>>>> > 2017-02-23 23:38:18+0100 [-] Traceback (most recent call last):
>>>>> > 2017-02-23 23:38:18+0100 [-]   File
>>>>> > "share\paraview-5.3\web\visualizer\server\pvw-visualizer.py", line
>>>>> 219, in
>>>>> > 
>>>>> > 2017-02-23 23:38:18+0100 [-] server.start_webserver(options=args,
>>>>> > protocol=_VisualizerServer)
>>>>> > 2017-02-23 23:38:18+0100 [-]   File "C:\Program Files\ParaView
>>>>> > 5.3.0-RC2-Qt5-OpenGL2-Windows-64bit\bin\lib\site-packages\vt
>>>>> k\web\server.py",
>>>>> > line 185, in start_webserver
>>>>> > 2017-02-23 23:38:18+0100 [-] appSession =
>>>>> > protocol(types.ComponentConfig(realm = "vtkweb"))
>>>>> > 2017-02-23 23:38:18+0100 [-]   File "C:\Program Files\ParaView
>>>>> > 5.3.0-RC2-Qt5-OpenGL2-Windows-64bit\bin\lib\site-packa

Re: [Paraview] ParaView 5.3.0 Release Candidate 2 binaries are available for download

2017-02-23 Thread Sebastien Jourdain
No WebGL support in that version. But you can always take the python+web
from old paraview if you want the old visualizer. By python, I mean only
the file that is passed as argument to pvpython.

The webgl rendering will be using vtk-js but we haven't finished porting it
to the ParaViewWeb client/server implementation.

On Thu, Feb 23, 2017 at 4:32 PM, Daniel Zuidinga <i...@seoaachen.de> wrote:

> i tried --data
> \data
> data\
> \data\
> /data
> \data
> c:\temp
> c:\temp\
> etc.
> nothing is listed
> also there is no webgl support btw
>
>
> Am 24.02.2017 um 00:29 schrieb Sebastien Jourdain:
>
> no \ at the end
>
> On Thu, Feb 23, 2017 at 4:28 PM, Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> Must be a full path... What is wrong 5.2 vs 5.3?
>>
>> On Thu, Feb 23, 2017 at 4:26 PM, Daniel Zuidinga <i...@seoaachen.de>
>> wrote:
>>
>>> my --data-dir parameter is wrong. it must be  --data data\ ?
>>>
>>> but also with this no files are listed
>>>
>>>
>>>
>>> Am 24.02.2017 um 00:15 schrieb Daniel Zuidinga:
>>>
>>> works now. Btw the documentation is wrong for windows? It should be
>>> .\bin\pvpython.exe 
>>> share\paraview-5.3\web\visualizer\server\pvw-visualizer.py
>>> --content share\paraview-5.3\web\visualizer\www\ --data-dir data\
>>> --port 8080
>>>
>>> here: http://kitware.github.io/paraviewweb/docs/architecture.html#
>>> Simplicity
>>>
>>>
>>> Am 23.02.2017 um 23:50 schrieb Sebastien Jourdain:
>>>
>>> Cory,
>>>
>>> should I change pvw-visualizer.py to use "Camera3DManipulator" instead
>>> of "Camera3DManipulators"?
>>>
>>> Or it was just a mistake?
>>>
>>> Daniel, you can edit that file in the version you've downloaded and
>>> remove the "s" in the following line:
>>>
>>> interactionProxy.Camera3DManipulators = ['Rotate', 'Pan', 'Zoom',
>>> 'Pan', 'Roll', 'Pan', 'Zoom', 'Rotate', 'Zoom']
>>>
>>> Let us know if you have a crash like before.
>>>
>>> Thanks,
>>>
>>> Seb
>>>
>>> On Thu, Feb 23, 2017 at 3:44 PM, Cory Quammen <cory.quam...@kitware.com>
>>> wrote:
>>>
>>>> Daniel,
>>>>
>>>> We have a fix for that particular error coming for 5.3.0 final. Please
>>>> see https://gitlab.kitware.com/paraview/paraview/merge_requests/1415.
>>>>
>>>> Cory
>>>>
>>>> On Thu, Feb 23, 2017 at 5:40 PM, Daniel Zuidinga <i...@seoaachen.de>
>>>> wrote:
>>>> > I still try to get pvwebvisualizer running on win 10:
>>>> >
>>>> > C:\Program Files\ParaView
>>>> > 5.3.0-RC2-Qt5-OpenGL2-Windows-64bit>.\bin\pvpython.exe
>>>> > share\paraview-5.3\web\visualizer\server\pvw-visualizer.py --content
>>>> > share\paraview-5.3\web\visualizer\www\ --data data\ --port 8080
>>>> > 2017-02-23 23:38:18+0100 [-] Log opened.
>>>> > 2017-02-23 23:38:18+0100 [-] Traceback (most recent call last):
>>>> > 2017-02-23 23:38:18+0100 [-]   File
>>>> > "share\paraview-5.3\web\visualizer\server\pvw-visualizer.py", line
>>>> 219, in
>>>> > 
>>>> > 2017-02-23 23:38:18+0100 [-] server.start_webserver(options=args,
>>>> > protocol=_VisualizerServer)
>>>> > 2017-02-23 23:38:18+0100 [-]   File "C:\Program Files\ParaView
>>>> > 5.3.0-RC2-Qt5-OpenGL2-Windows-64bit\bin\lib\site-packages\vt
>>>> k\web\server.py",
>>>> > line 185, in start_webserver
>>>> > 2017-02-23 23:38:18+0100 [-] appSession =
>>>> > protocol(types.ComponentConfig(realm = "vtkweb"))
>>>> > 2017-02-23 23:38:18+0100 [-]   File "C:\Program Files\ParaView
>>>> > 5.3.0-RC2-Qt5-OpenGL2-Windows-64bit\bin\lib\site-packages\pa
>>>> raview\web\wamp.py",
>>>> > line 13, in __init__
>>>> > 2017-02-23 23:38:18+0100 [-] wamp.ServerProtocol.__init__(self,
>>>> config)
>>>> > 2017-02-23 23:38:18+0100 [-]   File "C:\Program Files\ParaView
>>>> > 5.3.0-RC2-Qt5-OpenGL2-Windows-64bit\bin\lib\site-packages\vt
>>>> k\web\wamp.py",
>>>> > line 62, in __init__
>>>> > 2017-02-23 23:38:18+0100 [-] self.initialize()
>>>> > 2017-02-23 23:38:18+

Re: [Paraview] ParaView 5.3.0 Release Candidate 2 binaries are available for download

2017-02-23 Thread Sebastien Jourdain
no \ at the end

On Thu, Feb 23, 2017 at 4:28 PM, Sebastien Jourdain <
sebastien.jourd...@kitware.com> wrote:

> Must be a full path... What is wrong 5.2 vs 5.3?
>
> On Thu, Feb 23, 2017 at 4:26 PM, Daniel Zuidinga <i...@seoaachen.de>
> wrote:
>
>> my --data-dir parameter is wrong. it must be  --data data\ ?
>>
>> but also with this no files are listed
>>
>>
>>
>> Am 24.02.2017 um 00:15 schrieb Daniel Zuidinga:
>>
>> works now. Btw the documentation is wrong for windows? It should be
>> .\bin\pvpython.exe share\paraview-5.3\web\visualizer\server\pvw-visualizer.py
>> --content share\paraview-5.3\web\visualizer\www\ --data-dir data\ --port
>> 8080
>>
>> here: http://kitware.github.io/paraviewweb/docs/architecture.html#
>> Simplicity
>>
>>
>> Am 23.02.2017 um 23:50 schrieb Sebastien Jourdain:
>>
>> Cory,
>>
>> should I change pvw-visualizer.py to use "Camera3DManipulator" instead
>> of "Camera3DManipulators"?
>>
>> Or it was just a mistake?
>>
>> Daniel, you can edit that file in the version you've downloaded and
>> remove the "s" in the following line:
>>
>> interactionProxy.Camera3DManipulators = ['Rotate', 'Pan', 'Zoom', 'Pan',
>> 'Roll', 'Pan', 'Zoom', 'Rotate', 'Zoom']
>>
>> Let us know if you have a crash like before.
>>
>> Thanks,
>>
>> Seb
>>
>> On Thu, Feb 23, 2017 at 3:44 PM, Cory Quammen <cory.quam...@kitware.com>
>> wrote:
>>
>>> Daniel,
>>>
>>> We have a fix for that particular error coming for 5.3.0 final. Please
>>> see https://gitlab.kitware.com/paraview/paraview/merge_requests/1415.
>>>
>>> Cory
>>>
>>> On Thu, Feb 23, 2017 at 5:40 PM, Daniel Zuidinga <i...@seoaachen.de>
>>> wrote:
>>> > I still try to get pvwebvisualizer running on win 10:
>>> >
>>> > C:\Program Files\ParaView
>>> > 5.3.0-RC2-Qt5-OpenGL2-Windows-64bit>.\bin\pvpython.exe
>>> > share\paraview-5.3\web\visualizer\server\pvw-visualizer.py --content
>>> > share\paraview-5.3\web\visualizer\www\ --data data\ --port 8080
>>> > 2017-02-23 23:38:18+0100 [-] Log opened.
>>> > 2017-02-23 23:38:18+0100 [-] Traceback (most recent call last):
>>> > 2017-02-23 23:38:18+0100 [-]   File
>>> > "share\paraview-5.3\web\visualizer\server\pvw-visualizer.py", line
>>> 219, in
>>> > 
>>> > 2017-02-23 23:38:18+0100 [-] server.start_webserver(options=args,
>>> > protocol=_VisualizerServer)
>>> > 2017-02-23 23:38:18+0100 [-]   File "C:\Program Files\ParaView
>>> > 5.3.0-RC2-Qt5-OpenGL2-Windows-64bit\bin\lib\site-packages\vt
>>> k\web\server.py",
>>> > line 185, in start_webserver
>>> > 2017-02-23 23:38:18+0100 [-] appSession =
>>> > protocol(types.ComponentConfig(realm = "vtkweb"))
>>> > 2017-02-23 23:38:18+0100 [-]   File "C:\Program Files\ParaView
>>> > 5.3.0-RC2-Qt5-OpenGL2-Windows-64bit\bin\lib\site-packages\pa
>>> raview\web\wamp.py",
>>> > line 13, in __init__
>>> > 2017-02-23 23:38:18+0100 [-] wamp.ServerProtocol.__init__(self,
>>> config)
>>> > 2017-02-23 23:38:18+0100 [-]   File "C:\Program Files\ParaView
>>> > 5.3.0-RC2-Qt5-OpenGL2-Windows-64bit\bin\lib\site-packages\vt
>>> k\web\wamp.py",
>>> > line 62, in __init__
>>> > 2017-02-23 23:38:18+0100 [-] self.initialize()
>>> > 2017-02-23 23:38:18+0100 [-]   File
>>> > "share\paraview-5.3\web\visualizer\server\pvw-visualizer.py", line
>>> 202, in
>>> > initialize
>>> > 2017-02-23 23:38:18+0100 [-] interactionProxy.Camera3DManipulators =
>>> > ['Rotate', 'Pan', 'Zoom', 'Pan', 'Roll', 'Pan', 'Zoom', 'Rotate',
>>> 'Zoom']
>>> > 2017-02-23 23:38:18+0100 [-]   File "C:\Program Files\ParaView
>>> > 5.3.0-RC2-Qt5-OpenGL2-Windows-64bit\bin\lib\site-packages\pa
>>> raview\servermanager.py",
>>> > line 314, in __setattr__
>>> > 2017-02-23 23:38:19+0100 [-] "to add this attribute.")
>>> > 2017-02-23 23:38:19+0100 [-] AttributeError: Attribute
>>> Camera3DManipulators
>>> > does not exist.  This class does not allow addition of new attributes
>>> to
>>> > avoid mistakes due to typos. Use add_attribute() if you really want to
>>> add
>>> > this attribute.
>

Re: [Paraview] ParaView 5.3.0 Release Candidate 2 binaries are available for download

2017-02-23 Thread Sebastien Jourdain
Must be a full path... What is wrong 5.2 vs 5.3?

On Thu, Feb 23, 2017 at 4:26 PM, Daniel Zuidinga <i...@seoaachen.de> wrote:

> my --data-dir parameter is wrong. it must be  --data data\ ?
>
> but also with this no files are listed
>
>
>
> Am 24.02.2017 um 00:15 schrieb Daniel Zuidinga:
>
> works now. Btw the documentation is wrong for windows? It should be
> .\bin\pvpython.exe share\paraview-5.3\web\visualizer\server\pvw-visualizer.py
> --content share\paraview-5.3\web\visualizer\www\ --data-dir data\ --port
> 8080
>
> here: http://kitware.github.io/paraviewweb/docs/architecture.
> html#Simplicity
>
>
> Am 23.02.2017 um 23:50 schrieb Sebastien Jourdain:
>
> Cory,
>
> should I change pvw-visualizer.py to use "Camera3DManipulator" instead of
> "Camera3DManipulators"?
>
> Or it was just a mistake?
>
> Daniel, you can edit that file in the version you've downloaded and remove
> the "s" in the following line:
>
> interactionProxy.Camera3DManipulators = ['Rotate', 'Pan', 'Zoom', 'Pan',
> 'Roll', 'Pan', 'Zoom', 'Rotate', 'Zoom']
>
> Let us know if you have a crash like before.
>
> Thanks,
>
> Seb
>
> On Thu, Feb 23, 2017 at 3:44 PM, Cory Quammen <cory.quam...@kitware.com>
> wrote:
>
>> Daniel,
>>
>> We have a fix for that particular error coming for 5.3.0 final. Please
>> see https://gitlab.kitware.com/paraview/paraview/merge_requests/1415.
>>
>> Cory
>>
>> On Thu, Feb 23, 2017 at 5:40 PM, Daniel Zuidinga <i...@seoaachen.de>
>> wrote:
>> > I still try to get pvwebvisualizer running on win 10:
>> >
>> > C:\Program Files\ParaView
>> > 5.3.0-RC2-Qt5-OpenGL2-Windows-64bit>.\bin\pvpython.exe
>> > share\paraview-5.3\web\visualizer\server\pvw-visualizer.py --content
>> > share\paraview-5.3\web\visualizer\www\ --data data\ --port 8080
>> > 2017-02-23 23:38:18+0100 [-] Log opened.
>> > 2017-02-23 23:38:18+0100 [-] Traceback (most recent call last):
>> > 2017-02-23 23:38:18+0100 [-]   File
>> > "share\paraview-5.3\web\visualizer\server\pvw-visualizer.py", line
>> 219, in
>> > 
>> > 2017-02-23 23:38:18+0100 [-] server.start_webserver(options=args,
>> > protocol=_VisualizerServer)
>> > 2017-02-23 23:38:18+0100 [-]   File "C:\Program Files\ParaView
>> > 5.3.0-RC2-Qt5-OpenGL2-Windows-64bit\bin\lib\site-packages\vt
>> k\web\server.py",
>> > line 185, in start_webserver
>> > 2017-02-23 23:38:18+0100 [-] appSession =
>> > protocol(types.ComponentConfig(realm = "vtkweb"))
>> > 2017-02-23 23:38:18+0100 [-]   File "C:\Program Files\ParaView
>> > 5.3.0-RC2-Qt5-OpenGL2-Windows-64bit\bin\lib\site-packages\pa
>> raview\web\wamp.py",
>> > line 13, in __init__
>> > 2017-02-23 23:38:18+0100 [-] wamp.ServerProtocol.__init__(self,
>> config)
>> > 2017-02-23 23:38:18+0100 [-]   File "C:\Program Files\ParaView
>> > 5.3.0-RC2-Qt5-OpenGL2-Windows-64bit\bin\lib\site-packages\vt
>> k\web\wamp.py",
>> > line 62, in __init__
>> > 2017-02-23 23:38:18+0100 [-] self.initialize()
>> > 2017-02-23 23:38:18+0100 [-]   File
>> > "share\paraview-5.3\web\visualizer\server\pvw-visualizer.py", line
>> 202, in
>> > initialize
>> > 2017-02-23 23:38:18+0100 [-] interactionProxy.Camera3DManipulators =
>> > ['Rotate', 'Pan', 'Zoom', 'Pan', 'Roll', 'Pan', 'Zoom', 'Rotate',
>> 'Zoom']
>> > 2017-02-23 23:38:18+0100 [-]   File "C:\Program Files\ParaView
>> > 5.3.0-RC2-Qt5-OpenGL2-Windows-64bit\bin\lib\site-packages\pa
>> raview\servermanager.py",
>> > line 314, in __setattr__
>> > 2017-02-23 23:38:19+0100 [-] "to add this attribute.")
>> > 2017-02-23 23:38:19+0100 [-] AttributeError: Attribute
>> Camera3DManipulators
>> > does not exist.  This class does not allow addition of new attributes to
>> > avoid mistakes due to typos. Use add_attribute() if you really want to
>> add
>> > this attribute.
>> >
>> > Am 23.02.2017 um 20:27 schrieb Cory Quammen:
>> >>
>> >> Folks,
>> >>
>> >> I am pleased to announce that binaries and source code zip files and
>> >> tar balls for ParaView 5.3.0 Release Candidate 2 are now available for
>> >> download from
>> >>
>> >> http://www.paraview.org/download/
>> >>
>> >> Please let us know if you run into any problems with this release
>> >> candidate. The ParaV

Re: [Paraview] ParaView 5.3.0 Release Candidate 2 binaries are available for download

2017-02-23 Thread Sebastien Jourdain
Cory,

should I change pvw-visualizer.py to use "Camera3DManipulator" instead of "
Camera3DManipulators"?

Or it was just a mistake?

Daniel, you can edit that file in the version you've downloaded and remove
the "s" in the following line:

interactionProxy.Camera3DManipulators = ['Rotate', 'Pan', 'Zoom', 'Pan',
'Roll', 'Pan', 'Zoom', 'Rotate', 'Zoom']

Let us know if you have a crash like before.

Thanks,

Seb

On Thu, Feb 23, 2017 at 3:44 PM, Cory Quammen 
wrote:

> Daniel,
>
> We have a fix for that particular error coming for 5.3.0 final. Please
> see https://gitlab.kitware.com/paraview/paraview/merge_requests/1415.
>
> Cory
>
> On Thu, Feb 23, 2017 at 5:40 PM, Daniel Zuidinga 
> wrote:
> > I still try to get pvwebvisualizer running on win 10:
> >
> > C:\Program Files\ParaView
> > 5.3.0-RC2-Qt5-OpenGL2-Windows-64bit>.\bin\pvpython.exe
> > share\paraview-5.3\web\visualizer\server\pvw-visualizer.py --content
> > share\paraview-5.3\web\visualizer\www\ --data data\ --port 8080
> > 2017-02-23 23:38:18+0100 [-] Log opened.
> > 2017-02-23 23:38:18+0100 [-] Traceback (most recent call last):
> > 2017-02-23 23:38:18+0100 [-]   File
> > "share\paraview-5.3\web\visualizer\server\pvw-visualizer.py", line 219,
> in
> > 
> > 2017-02-23 23:38:18+0100 [-] server.start_webserver(options=args,
> > protocol=_VisualizerServer)
> > 2017-02-23 23:38:18+0100 [-]   File "C:\Program Files\ParaView
> > 5.3.0-RC2-Qt5-OpenGL2-Windows-64bit\bin\lib\site-packages\
> vtk\web\server.py",
> > line 185, in start_webserver
> > 2017-02-23 23:38:18+0100 [-] appSession =
> > protocol(types.ComponentConfig(realm = "vtkweb"))
> > 2017-02-23 23:38:18+0100 [-]   File "C:\Program Files\ParaView
> > 5.3.0-RC2-Qt5-OpenGL2-Windows-64bit\bin\lib\site-packages\
> paraview\web\wamp.py",
> > line 13, in __init__
> > 2017-02-23 23:38:18+0100 [-] wamp.ServerProtocol.__init__(self,
> config)
> > 2017-02-23 23:38:18+0100 [-]   File "C:\Program Files\ParaView
> > 5.3.0-RC2-Qt5-OpenGL2-Windows-64bit\bin\lib\site-packages\
> vtk\web\wamp.py",
> > line 62, in __init__
> > 2017-02-23 23:38:18+0100 [-] self.initialize()
> > 2017-02-23 23:38:18+0100 [-]   File
> > "share\paraview-5.3\web\visualizer\server\pvw-visualizer.py", line 202,
> in
> > initialize
> > 2017-02-23 23:38:18+0100 [-] interactionProxy.Camera3DManipulators =
> > ['Rotate', 'Pan', 'Zoom', 'Pan', 'Roll', 'Pan', 'Zoom', 'Rotate', 'Zoom']
> > 2017-02-23 23:38:18+0100 [-]   File "C:\Program Files\ParaView
> > 5.3.0-RC2-Qt5-OpenGL2-Windows-64bit\bin\lib\site-packages\
> paraview\servermanager.py",
> > line 314, in __setattr__
> > 2017-02-23 23:38:19+0100 [-] "to add this attribute.")
> > 2017-02-23 23:38:19+0100 [-] AttributeError: Attribute
> Camera3DManipulators
> > does not exist.  This class does not allow addition of new attributes to
> > avoid mistakes due to typos. Use add_attribute() if you really want to
> add
> > this attribute.
> >
> > Am 23.02.2017 um 20:27 schrieb Cory Quammen:
> >>
> >> Folks,
> >>
> >> I am pleased to announce that binaries and source code zip files and
> >> tar balls for ParaView 5.3.0 Release Candidate 2 are now available for
> >> download from
> >>
> >> http://www.paraview.org/download/
> >>
> >> Please let us know if you run into any problems with this release
> >> candidate. The ParaView issue tracker is located at
> >>
> >> https://gitlab.kitware.com/paraview/paraview/issues
> >>
> >> Sincerely,
> >> Cory
> >>
> >
> > ___
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the ParaView Wiki at:
> > http://paraview.org/Wiki/ParaView
> >
> > Search the list archives at: http://markmail.org/search/?q=ParaView
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/paraview
>
>
>
> --
> Cory Quammen
> Staff R Engineer
> Kitware, Inc.
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ParaView 5.3.0 Release Candidate 1 binaries are available for download

2017-02-16 Thread Sebastien Jourdain
Does ParaView works?

What happen when you run pvpython and the following set of commands, do you
get a crash as well?

$ pvpython
>>> from paraview.simple import *
>>> Cone()
>>> Show()
>>> Render()




On Thu, Feb 16, 2017 at 11:35 AM, Daniel Zuidinga <i...@seoaachen.de> wrote:

> Hi Sebastien,
>
> I tried the pvpython way. A log window opens and directly closes. I can't
> find a log file?
> The npm based way gives me the error I mentioned before.
>
>
> Am 16.02.2017 um 16:36 schrieb Sebastien Jourdain:
>
> Hi Daniel,
>
> Visualizer is embedded within the ParaView binary distribution. You don't
> need the "Visualizer" executable.
>
> In fact the Visualizer executable is just a helper that aims to find
> "pvpython" for you from the ParaView root directory provided by the
> --paraview argument. On Linux and Mac, the helper look into common place so
> you could eventually skip the --paraview argument.
>
> You should be able to run Visualizer using a command line similar to what
> is described here:
> http://kitware.github.io/paraviewweb/docs/architecture.html#Simplicity
>
> Otherwise, you can always try to run visualizer like follow:
>
> Visualizer --paraview "C:/Program Files/ParaView
> 5.3.0-RC1-Qt5-OpenGL2-Windows-64bit" --data "c:\temp"
>
> On Thu, Feb 16, 2017 at 2:13 AM, Daniel Zuidinga <i...@seoaachen.de>
> wrote:
>
>> C:\Program Files\ParaView 5.3.0-RC1-Qt5-OpenGL2-Windows-64bit\bin>Visualizer
>> --paraview C:/Program Files/ParaView 
>> 5.3.0-RC1-Qt5-OpenGL2-Windows-64bit/bin/paraview.exe
>> data c:\temp
>> ls: no such file or directory: /Applications
>> ls: no such file or directory: /opt
>> ls: no such file or directory: /usr/local/opt/
>>
>>   Usage: pvw-visualizer-cli [options]
>> ...
>> I also tried without paraview.exe and /bin/paraview.exe with the same
>> result
>>
>>
>>
>> Am 14.02.2017 um 17:23 schrieb Sebastien Jourdain:
>>
>> Could you be more explicit regarding the error you encounter as those
>> output are expected on Windows.
>>
>> Did you provide the path to ParaView as the argument of the Visualizer
>> executable?
>>
>> Thanks,
>>
>> Seb
>>
>> On Tue, Feb 14, 2017 at 4:07 AM, Daniel Zuidinga <i...@seoaachen.de>
>> wrote:
>>
>>> paraview web visualizer does not work in windows:
>>>
>>> ls: no such file or directory: /Applications
>>> ls: no such file or directory: /opt
>>> ls: no such file or directory: /usr/local/opt/
>>>
>>>
>>> Am 13.02.2017 um 17:49 schrieb Cory Quammen:
>>>
>>>> Folks,
>>>>
>>>> Binaries and source code zip files and tar balls for ParaView 5.3.0
>>>> Release Candidate 1 are now available for download from
>>>>
>>>> http://www.paraview.org/download/
>>>>
>>>> Please let us know if you run into any problems with this release
>>>> candidate.
>>>>
>>>> Sincerely,
>>>> Cory
>>>>
>>>>
>>> ___
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>>
>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/paraview
>>>
>>
>>
>>
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ParaView 5.3.0 Release Candidate 1 binaries are available for download

2017-02-16 Thread Sebastien Jourdain
Hi Daniel,

Visualizer is embedded within the ParaView binary distribution. You don't
need the "Visualizer" executable.

In fact the Visualizer executable is just a helper that aims to find
"pvpython" for you from the ParaView root directory provided by the
--paraview argument. On Linux and Mac, the helper look into common place so
you could eventually skip the --paraview argument.

You should be able to run Visualizer using a command line similar to what
is described here:
http://kitware.github.io/paraviewweb/docs/architecture.html#Simplicity

Otherwise, you can always try to run visualizer like follow:

Visualizer --paraview "C:/Program Files/ParaView
5.3.0-RC1-Qt5-OpenGL2-Windows-64bit" --data "c:\temp"

On Thu, Feb 16, 2017 at 2:13 AM, Daniel Zuidinga <i...@seoaachen.de> wrote:

> C:\Program Files\ParaView 5.3.0-RC1-Qt5-OpenGL2-Windows-64bit\bin>Visualizer
> --paraview C:/Program Files/ParaView 
> 5.3.0-RC1-Qt5-OpenGL2-Windows-64bit/bin/paraview.exe
> data c:\temp
> ls: no such file or directory: /Applications
> ls: no such file or directory: /opt
> ls: no such file or directory: /usr/local/opt/
>
>   Usage: pvw-visualizer-cli [options]
> ...
> I also tried without paraview.exe and /bin/paraview.exe with the same
> result
>
>
>
> Am 14.02.2017 um 17:23 schrieb Sebastien Jourdain:
>
> Could you be more explicit regarding the error you encounter as those
> output are expected on Windows.
>
> Did you provide the path to ParaView as the argument of the Visualizer
> executable?
>
> Thanks,
>
> Seb
>
> On Tue, Feb 14, 2017 at 4:07 AM, Daniel Zuidinga <i...@seoaachen.de>
> wrote:
>
>> paraview web visualizer does not work in windows:
>>
>> ls: no such file or directory: /Applications
>> ls: no such file or directory: /opt
>> ls: no such file or directory: /usr/local/opt/
>>
>>
>> Am 13.02.2017 um 17:49 schrieb Cory Quammen:
>>
>>> Folks,
>>>
>>> Binaries and source code zip files and tar balls for ParaView 5.3.0
>>> Release Candidate 1 are now available for download from
>>>
>>> http://www.paraview.org/download/
>>>
>>> Please let us know if you run into any problems with this release
>>> candidate.
>>>
>>> Sincerely,
>>> Cory
>>>
>>>
>> ___
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>>
>
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ParaView 5.3.0 Release Candidate 1 binaries are available for download

2017-02-14 Thread Sebastien Jourdain
Could you be more explicit regarding the error you encounter as those
output are expected on Windows.

Did you provide the path to ParaView as the argument of the Visualizer
executable?

Thanks,

Seb

On Tue, Feb 14, 2017 at 4:07 AM, Daniel Zuidinga  wrote:

> paraview web visualizer does not work in windows:
>
> ls: no such file or directory: /Applications
> ls: no such file or directory: /opt
> ls: no such file or directory: /usr/local/opt/
>
>
> Am 13.02.2017 um 17:49 schrieb Cory Quammen:
>
>> Folks,
>>
>> Binaries and source code zip files and tar balls for ParaView 5.3.0
>> Release Candidate 1 are now available for download from
>>
>> http://www.paraview.org/download/
>>
>> Please let us know if you run into any problems with this release
>> candidate.
>>
>> Sincerely,
>> Cory
>>
>>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensou
> rce/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Installing paraviewweb on a raspberry pi

2017-02-10 Thread Sebastien Jourdain
You need to hit [c](configure) several time before getting the generate.

On Fri, Feb 10, 2017 at 2:33 PM, Scott Wittenburg <
scott.wittenb...@kitware.com> wrote:

> Also for paraviewweb, don't forget:
>
> PARAVIEW_ENABLE_PYTHON=ON
>
> Cheers,
>
> Scott
>
> On Fri, Feb 10, 2017 at 2:31 PM, Scott Wittenburg <
> scott.wittenb...@kitware.com> wrote:
>
>> I would think you'd want to build with:
>>
>> PARAVIEW_BUILD_QT_GUI=OFF
>>
>> Hope this helps,
>>
>> Scott
>>
>> On Fri, Feb 10, 2017 at 2:25 PM, Faraz Hussain <i...@feacluster.com>
>> wrote:
>>
>>> Thanks for your help in installing Paraview on a raspberry pi. I
>>> followed the steps in:
>>>
>>> http://www.paraview.org/Wiki/ParaView:Build_And_Install
>>>
>>> However, when I configure ccmake it says QT is needed. I could not
>>> figure out if I can ignore that. The "generate" command did not come up.
>>>
>>> On a side note, it took me a while to find ccmake. I thought it was
>>> installed with cmake, but seems I had to install it separately using "sudo
>>> apt-get install cmake-curses-gui" . Perhaps the instructions should be
>>> updated to reflect this to avoid confusion.
>>>
>>>
>>> Quoting Sebastien Jourdain <sebastien.jourd...@kitware.com>:
>>>
>>> Wow,
>>>>
>>>> I'm not an expert on raspberry pi but it should be possible.
>>>> BUT, (and it is a big but) you need some graphics capability for
>>>> ParaView
>>>> or good CPUs if you don't have a GPU.
>>>> Or the rendering will be really slow.
>>>>
>>>> The quicker test you can do, is to build ParaView (without Qt) and try
>>>> to
>>>> run Visualizer with that ParaView in the command line to see what
>>>> performance you are getting. If that's reasonable, then all the network
>>>> setup should be "trivial".
>>>>
>>>> ParaView: http://www.paraview.org/Wiki/ParaView:Build_And_Install
>>>> Visualizer: https://kitware.github.io/visualizer/
>>>>
>>>> Good luck,
>>>>
>>>> Seb
>>>>
>>>> On Wed, Feb 8, 2017 at 8:15 AM, Faraz Hussain <i...@feacluster.com>
>>>> wrote:
>>>>
>>>> I want to be able to manipulate vtk file on my raspberry pi via a web
>>>>> browser anywhere in the world. I believe I need to install paraviewweb
>>>>> and
>>>>> do some reconfiguration of apache and the virtual hosts?
>>>>> Unfortunately, I
>>>>> am not a guru of Linux. So before I attempt it all, is it even
>>>>> possible to
>>>>> do this on a raspberry pi? I am using raspian .
>>>>>
>>>>> ___
>>>>> Powered by www.kitware.com
>>>>>
>>>>> Visit other Kitware open-source projects at
>>>>> http://www.kitware.com/opensou
>>>>> rce/opensource.html
>>>>>
>>>>> Please keep messages on-topic and check the ParaView Wiki at:
>>>>> http://paraview.org/Wiki/ParaView
>>>>>
>>>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>>>
>>>>> Follow this link to subscribe/unsubscribe:
>>>>> http://public.kitware.com/mailman/listinfo/paraview
>>>>>
>>>>>
>>>
>>>
>>> ___
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>>
>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/paraview
>>>
>>
>>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Installing paraviewweb on a raspberry pi

2017-02-08 Thread Sebastien Jourdain
This might give you some information for building ParaView.

=> https://blog.kitware.com/raspberry-pi-likes-vtk/

On Wed, Feb 8, 2017 at 9:25 AM, Sebastien Jourdain <
sebastien.jourd...@kitware.com> wrote:

> Wow,
>
> I'm not an expert on raspberry pi but it should be possible.
> BUT, (and it is a big but) you need some graphics capability for ParaView
> or good CPUs if you don't have a GPU.
> Or the rendering will be really slow.
>
> The quicker test you can do, is to build ParaView (without Qt) and try to
> run Visualizer with that ParaView in the command line to see what
> performance you are getting. If that's reasonable, then all the network
> setup should be "trivial".
>
> ParaView: http://www.paraview.org/Wiki/ParaView:Build_And_Install
> Visualizer: https://kitware.github.io/visualizer/
>
> Good luck,
>
> Seb
>
> On Wed, Feb 8, 2017 at 8:15 AM, Faraz Hussain <i...@feacluster.com> wrote:
>
>> I want to be able to manipulate vtk file on my raspberry pi via a web
>> browser anywhere in the world. I believe I need to install paraviewweb and
>> do some reconfiguration of apache and the virtual hosts? Unfortunately, I
>> am not a guru of Linux. So before I attempt it all, is it even possible to
>> do this on a raspberry pi? I am using raspian .
>>
>> ___
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>>
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Installing paraviewweb on a raspberry pi

2017-02-08 Thread Sebastien Jourdain
Wow,

I'm not an expert on raspberry pi but it should be possible.
BUT, (and it is a big but) you need some graphics capability for ParaView
or good CPUs if you don't have a GPU.
Or the rendering will be really slow.

The quicker test you can do, is to build ParaView (without Qt) and try to
run Visualizer with that ParaView in the command line to see what
performance you are getting. If that's reasonable, then all the network
setup should be "trivial".

ParaView: http://www.paraview.org/Wiki/ParaView:Build_And_Install
Visualizer: https://kitware.github.io/visualizer/

Good luck,

Seb

On Wed, Feb 8, 2017 at 8:15 AM, Faraz Hussain  wrote:

> I want to be able to manipulate vtk file on my raspberry pi via a web
> browser anywhere in the world. I believe I need to install paraviewweb and
> do some reconfiguration of apache and the virtual hosts? Unfortunately, I
> am not a guru of Linux. So before I attempt it all, is it even possible to
> do this on a raspberry pi? I am using raspian .
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensou
> rce/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] "Rotate" look up table

2017-02-03 Thread Sebastien Jourdain
Hi Nicolas,

You can create a programmable filter that will alter the scalars based on a
"fake" time.
I've attached an example on how to create a time based filter.

Good luck,

Seb

PS: I'm not sure, the latest ParaView allow programable filter to be time
aware. If not, I've also attached an XML (plugin) that you can load and use
for that filter.

On Fri, Feb 3, 2017 at 1:47 AM, Nicolas Cedilnik 
wrote:

> Hi all,
>
> I'm replying to my own email because I worked out a solution and wanted to
> share but also because I believe what I'm doing is FAR from optimal and
> hope that someone
>
>> Would it be possible with python scripting to create an animation by
>> "rotating" the look up table in a way that would look like this:
>> https://www.youtube.com/watch?v=qA_vInXwdKM#t=3m25s ? It is a
>> pseudo-animation created by changing the "range" of the LUT.
>>
> So I made this python script (see attachment) that generates different
> meshes with scalar values "rotated" (I don't find a better term to describe
> what I'm doing).
> It works and make it easy to play the animation by opening the produced
> vtk files as a sequence in paraview.
>
> However, every vtk file contains both the mesh geometry and the scalar
> values, but only the latter change. What would be the right way to animate
> only the scalar values and not the mesh geometry? What data format should I
> use? How could I import it into an animation in paraview?
>
> Thanks for your guidance
>
> --
> Nicolas
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
# =
# Request Data
# =
import vtk

executive = self.GetExecutive()
outInfo = executive.GetOutputInformation(0)

req_timestep = outInfo.Get(executive.UPDATE_TIME_STEP())
print req_timestep

input = self.GetPolyDataInput()
inputCells = input.GetPolys()
newCells = vtk.vtkCellArray()

# Keep cells in range
nbCells = inputCells.GetNumberOfCells()
allowedIds = range(int(req_timestep) * (nbCells / 5), (int(req_timestep) + 1) * 
(nbCells / 5))

cellLocation = 0
ids = vtk.vtkIdList()
for cellIdx in range(nbCells):
inputCells.GetCell(cellLocation, ids)
cellSize = ids.GetNumberOfIds()
if cellIdx in allowedIds:
newCells.InsertNextCell(ids)
cellLocation += cellSize + 1

self.GetPolyDataOutput().ShallowCopy(input)
self.GetPolyDataOutput().SetPolys(newCells)

# =
# Request Informations
# =

timesteps = range(5)
executive = self.GetExecutive()
outInfo = executive.GetOutputInformation(0)

outInfo.Remove(executive.TIME_STEPS())
for timestep in timesteps:
   outInfo.Append(executive.TIME_STEPS(), timestep)
   outInfo.Remove(executive.TIME_RANGE())
   outInfo.Append(executive.TIME_RANGE(), timesteps[0])
   outInfo.Append(executive.TIME_RANGE(), timesteps[-1])

	
		
			

	

			
		
		
			

	

			
		
	
	
		
	
	
		
	
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ParaView Web - dynamic dataDir parameter

2017-01-26 Thread Sebastien Jourdain
Also you can follow that gist
https://gist.github.com/clavicule/7b8b3963ceb17302cff725f8dc36bc57

On Thu, Jan 26, 2017 at 8:26 AM, Sebastien Jourdain <
sebastien.jourd...@kitware.com> wrote:

> This documentation (http://kitware.github.io/paraviewweb/docs/windows_10.
> html) explain how to do it for Windows, but the logic remain the same.
>
> On Thu, Jan 26, 2017 at 7:21 AM, Rodnei Couto <rodneico...@gmail.com>
> wrote:
>
>> Hi,
>>
>> I set up my environment as indicated in http://kitware.github.io/parav
>> iewweb/docs/ubuntu_14_04.html
>>
>> Is there a way to pass a dynamic data dir to python launcher from
>> visualizer client?
>>
>> I would like to enter in the browser http://myaddres/visualizer?dat
>> aDir=[my_data_dir] and pvw-visualizer.py be started by launcher with
>> [my_data_dir] in data parameter value.
>>
>> If it is not possible to do as I said, is there any other way that I can
>> dynamically configure the data dir?
>>
>> cheers,
>>
>> --
>> Rodnei Couto |  (55 21) 98749-9885
>>
>> ___
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>>
>>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ParaView Web - dynamic dataDir parameter

2017-01-26 Thread Sebastien Jourdain
This documentation (
http://kitware.github.io/paraviewweb/docs/windows_10.html) explain how to
do it for Windows, but the logic remain the same.

On Thu, Jan 26, 2017 at 7:21 AM, Rodnei Couto  wrote:

> Hi,
>
> I set up my environment as indicated in http://kitware.github.io/
> paraviewweb/docs/ubuntu_14_04.html
>
> Is there a way to pass a dynamic data dir to python launcher from
> visualizer client?
>
> I would like to enter in the browser http://myaddres/visualizer?
> dataDir=[my_data_dir] and pvw-visualizer.py be started by launcher with
> [my_data_dir] in data parameter value.
>
> If it is not possible to do as I said, is there any other way that I can
> dynamically configure the data dir?
>
> cheers,
>
> --
> Rodnei Couto |  (55 21) 98749-9885
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Embedding the Visualizer app in the browser within an iframe

2017-01-25 Thread Sebastien Jourdain
Hi Debopam,

Here is the link for the live the documentation:
=> http://kitware.github.io/paraviewweb/docs/windows_10.html

The source file for it is available below:
=>
https://github.com/Kitware/paraviewweb/blob/master/documentation/content/docs/windows_10.md


Thanks again for your contribution,

Seb

On Tue, Jan 24, 2017 at 9:29 PM, Debopam Ghoshal <debop...@gmail.com> wrote:

> Hi Seb,
>
> Please go ahead and put the information in the ParaView Web Repo. I think
> this will help anyone interested in setting up a ParaView Web Server on
> Windows.
>
> Cheers & Best Wishes,
> Debopam
> ---
> Cell: +91 98304 10041 <+91%2098304%2010041>
>
> On Tue, Jan 24, 2017 at 9:00 PM, Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> Thanks Debopam for putting it together.
>>
>> If you feel that could be useful, we can move/copy your gist to the main
>> paraviewweb web site.
>>
>> Let me know if you want me to put that information in the ParaViewWeb
>> repo.
>>
>> Thanks,
>>
>> Seb
>>
>>
>> On Tue, Jan 24, 2017 at 5:10 AM, Debopam Ghoshal <debop...@gmail.com>
>> wrote:
>>
>>> Hi Seb and Claude,
>>>
>>> Thanks for your valuable inputs. I have been able to setup ParaView web
>>> on a windows 10 system and things are working as expected.
>>>
>>> I have created a gist (https://gist.github.com/debop
>>> amg/aa497516d79442efa44b8e23838e1235) detailing the process of setting
>>> up the ParaView application and use apache as the front end server.
>>>
>>> Thanks again for your help.
>>>
>>>
>>> Cheers & Best Wishes,
>>> Debopam
>>> ---
>>> Cell: +91 98304 10041 <+91%2098304%2010041>
>>>
>>> On Wed, Jan 18, 2017 at 8:19 PM, Sebastien Jourdain <
>>> sebastien.jourd...@kitware.com> wrote:
>>>
>>>> Well we fixed that issue last time in another thread. Here is the
>>>> difference:
>>>>
>>>> Launcher configuration (Not working)
>>>> "C:/paraview/ParaView5.2.0/data"
>>>>
>>>> Command line (Working)
>>>> "C:\paraview\ParaView5.2.0\data"
>>>>
>>>> Do you notice any difference? Do you see what you should try next?
>>>>
>>>> On Wed, Jan 18, 2017 at 4:38 AM, Debopam Ghoshal <debop...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi Seb & Claude,
>>>>>
>>>>> Thanks for pointing out the error, but still I am having the same
>>>>> problem. No matter what I do, I am not able to show the figure in the
>>>>> visualizer pane. It is always black/blank. :(
>>>>>
>>>>> This is what I did:
>>>>> 1. Used hard coded (can.ex2)  as well as dynamic (${data}) for the
>>>>> data file,
>>>>> 2. I even hardcoded the data value in the index.html file,
>>>>> 3. I tried using http://paraview as well as
>>>>> http://paraview/?data=can.ex2
>>>>> 4. In the visualizer Files tab, I selected each of the data files 
>>>>> (can.ex2,
>>>>> disc_out_ref.ex2, headsq.vti)
>>>>>
>>>>> But in all these cases, I was not able to see any output in the
>>>>> visualizer pane. In each case, the native window name Visualization
>>>>> Toolkit - Win32OpenGL #n showed up with nothing except the
>>>>> orientation axes. The same window showed up within the browser, and when I
>>>>> moved the orientation axes on the browser, the axes also moved in the
>>>>> native window. The later shows that the native window is connected and
>>>>> responds to the browser actions (through web sockets I believe).
>>>>>
>>>>> What I fail to understand is why is the *data file selected from the
>>>>> Files tab* in the Visualizer console (in browser) not showing up in
>>>>> the Visualizer pane. This the seems to be the basic problem. For instance,
>>>>> when I start the Visualizer through the pvpython using the
>>>>> pvw-visualizer.py script it works absolutely ok. Which shows that
>>>>> there is no problem with my graphics card or Paraview installation.
>>>>>
>>>>> *startpvw.bat:*
>>>>>
>>>>> .\bin\pvpython.exe "C:\paraview\ParaView5.2.0\sha
>>>>> re\paravi

Re: [Paraview] Embedding the Visualizer app in the browser within an iframe

2017-01-24 Thread Sebastien Jourdain
Thanks Debopam for putting it together.

If you feel that could be useful, we can move/copy your gist to the main
paraviewweb web site.

Let me know if you want me to put that information in the ParaViewWeb repo.

Thanks,

Seb


On Tue, Jan 24, 2017 at 5:10 AM, Debopam Ghoshal <debop...@gmail.com> wrote:

> Hi Seb and Claude,
>
> Thanks for your valuable inputs. I have been able to setup ParaView web on
> a windows 10 system and things are working as expected.
>
> I have created a gist (https://gist.github.com/debopamg/
> aa497516d79442efa44b8e23838e1235) detailing the process of setting up the
> ParaView application and use apache as the front end server.
>
> Thanks again for your help.
>
>
> Cheers & Best Wishes,
> Debopam
> ---
> Cell: +91 98304 10041 <+91%2098304%2010041>
>
> On Wed, Jan 18, 2017 at 8:19 PM, Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> Well we fixed that issue last time in another thread. Here is the
>> difference:
>>
>> Launcher configuration (Not working)
>> "C:/paraview/ParaView5.2.0/data"
>>
>> Command line (Working)
>> "C:\paraview\ParaView5.2.0\data"
>>
>> Do you notice any difference? Do you see what you should try next?
>>
>> On Wed, Jan 18, 2017 at 4:38 AM, Debopam Ghoshal <debop...@gmail.com>
>> wrote:
>>
>>> Hi Seb & Claude,
>>>
>>> Thanks for pointing out the error, but still I am having the same
>>> problem. No matter what I do, I am not able to show the figure in the
>>> visualizer pane. It is always black/blank. :(
>>>
>>> This is what I did:
>>> 1. Used hard coded (can.ex2)  as well as dynamic (${data}) for the data
>>> file,
>>> 2. I even hardcoded the data value in the index.html file,
>>> 3. I tried using http://paraview as well as
>>> http://paraview/?data=can.ex2
>>> 4. In the visualizer Files tab, I selected each of the data files (can.ex2,
>>> disc_out_ref.ex2, headsq.vti)
>>>
>>> But in all these cases, I was not able to see any output in the
>>> visualizer pane. In each case, the native window name Visualization
>>> Toolkit - Win32OpenGL #n showed up with nothing except the orientation
>>> axes. The same window showed up within the browser, and when I moved the
>>> orientation axes on the browser, the axes also moved in the native window.
>>> The later shows that the native window is connected and responds to the
>>> browser actions (through web sockets I believe).
>>>
>>> What I fail to understand is why is the *data file selected from the
>>> Files tab* in the Visualizer console (in browser) not showing up in the
>>> Visualizer pane. This the seems to be the basic problem. For instance, when
>>> I start the Visualizer through the pvpython using the pvw-visualizer.py
>>> script it works absolutely ok. Which shows that there is no problem
>>> with my graphics card or Paraview installation.
>>>
>>> *startpvw.bat:*
>>>
>>> .\bin\pvpython.exe "C:\paraview\ParaView5.2.0\sha
>>> re\paraview-5.2\web\visualizer\server\pvw-visualizer.py" --content
>>> "C:\paraview\ParaView5.2.0\share\paraview-5.2\web\visualizer\www"
>>> --data "C:\paraview\ParaView5.2.0\data" --port 9000
>>>
>>>
>>> But when I run the launcher using the command:
>>> *launcher.bat:*
>>>
>>> set PV_HOME=C:\paraview\ParaView5.2.0
>>> %PV_HOME%\bin\pvpython.exe 
>>> %PV_HOME%\bin\Lib\site-packages\vtk\web\launcher.py
>>> %PV_HOME%\launcher.config
>>>
>>> and then access the visualizer through the apache front end, then the
>>> data file is not being rendered.
>>>
>>> So, I guess there is something wrong with the way I am calling the
>>> visualizer from the launcher and the way it is called with the
>>> pvw-visualizer.py script.
>>>
>>> Your continued support is much appreciated. I am attaching the relevant
>>> files for your reference.
>>>
>>>
>>> Cheers & Best Wishes,
>>> Debopam
>>> ---
>>> Cell: +91 98304 10041 <+91%2098304%2010041>
>>>
>>> On Wed, Jan 18, 2017 at 12:43 AM, Sebastien Jourdain <
>>> sebastien.jourd...@kitware.com> wrote:
>>>
>>>> No worries. Thanks Claude for your help on the mailing list... ;-)
>>>>
>>>> On Tue, Jan 17, 2017 at 8:52 AM, claude <cla...@theweak.

Re: [Paraview] ParaviewWeb on EC2

2017-01-20 Thread Sebastien Jourdain
Thanks Claude for your feedback and I'm happy to ear that's working.

We haven't moved to Ubuntu 16.04 so far due to the lack of time and the
fact that services management is different.

For Ubuntu 14.04, you can use our ansible provisioning script here:
http://kitware.github.io/paraviewweb/docs/ansible.html
But as I said, it won't fully work on 16.04, but if you are up for it, you
can always fix it for 16.04 and contribute back.

Moreover, we still have some manual step for the driver as the user should
pick the right driver.

You might also find some useful information here too:
https://github.com/Kitware/paraviewweb/issues/319

Good luck,

Seb


On Fri, Jan 20, 2017 at 8:33 AM, claude <cla...@theweak.link> wrote:

> Hi Sebastien,
>
> sorry to make you dig into old memories :S
> so far I have been able to achieve the goals thanks to the documentation
> and help. Last thing I tried was to connect the visualizer to pv server in
> parallel. The help contents (--help) of bin/pvserver and the
> pvw-visualizer.py helped me to figure it out (all I had to do is use
> "reverse connection" and have pvserver connect to paraviewweb).
>
> I don't think it's possible to document every single possibility and
> that's where the code quality+comment and built-in help are very useful and
> complete. I will let you know if I find anything but so far so amazingly
> good.
>
>
> Regarding the EC2 at startup (pvw-start service running /data/start.sh),
> only DNS_NAME (ec2--compute1-amazonaws.com) is fetched and replaced
> in the {apache/launcher}-TEMPLATE.{conf/json} files. I didn't see any
> other variable in there.
>
> After checking with JSONLint, the launcher JSON file is indeed valid.
>
> Paying more attention to the network requests, I don't see the failed GET
> and WS switching protocol requests anymore. Even more strange, when I move
> the camera, I can see the stack of black/blank frames being send by the
> server (axis are not visible either).
>
> By the way I used this config:
> * apache.conf
>   RewriteCond %{QUERY_STRING} ^sessionId=(.*)=(.*)$ [NC]
>   RewriteRule ^/proxy.*$ ws://${session-to-port:%1}/%2 [P]
>
> * launcher.json
>   "sessionURL" : "ws://DNS_NAME/proxy?sessionId=${id}=ws",
>
> As I am writing this, I just restarted the instance (terminate+launch)
> instead of reboot and it is now working... I went back to see the logs of
> failed remote viewing and I can now see this at the very end (after proper
> launching and everything):
> XIO:  fatal IO error 0 (Success) on X server ":0.0"
>
> So here is what I am guessing:
> - I messed up something in the config files yesterday as I didn't get to
> that point
> - rebooting the instance doesn't start X properly, which fails to render
> the 3D view and explains why the frames are blank but everything else is
> fine.
> - somehow re-launching the instance starts X properly.
>
> I am puzzled but also happy that it seems to be working :)
> Do you know what would be the reasons for this issue with X? Since I
> started from the pv AMI, I didn't have to install any drivers nor configure
> the display. Maybe I'll try a fresh AMI with ubuntu-16 and install the
> drivers nvidia-367 to see if I encounter similar issues with X.
>
> Thanks for the pointers Sebastien.
>
> cheers,
> Claude
>
>
> On 01/19/2017 06:19 PM, Sebastien Jourdain wrote:
>
> Hi Claude,
>
> I'm glad you like our doc and code. If you feel we are missing something
> that is not obvious, please report it so we can fix it.
>
> Regarding your issue, you had a good reflex in fixing apache and the
> launcher config, as with PV5.2 we use a second ws connection for streaming
> the images in binary format. But it has been forever since I setup that
> ami, I have very little memory of what was setup.
>
> I do know that we use 'sed' to dynamically replace some string so the
> proper HOST for apache and the launcher get used, but I don't remember if
> it was DNS_NAME or something else. But from what I understand, you've
> done exactly what I would have done myself.
>
> I'm wondering if when you edited your launcher config you managed to
> produce an invalid JSON file. (You can paste it here http://jsonlint.com/
> to be sure)
>
> Moreover, seeing the network calls of the web page that don't even load
> might be useful. I'd be curious to see the response of the POST on
> /paraview.
>
> Seb
>
>
> On Thu, Jan 19, 2017 at 5:01 PM, claude <cla...@theweak.link> wrote:
>
>> Hello!
>>
>> Following up one of the previous thread on setting up
>> ParaviewWeb+Visualizer, I am trying to get it going on AWS EC2 with
>> paraview-5.2. Maybe someone already went through it a

Re: [Paraview] ParaviewWeb on EC2

2017-01-19 Thread Sebastien Jourdain
Hi Claude,

I'm glad you like our doc and code. If you feel we are missing something
that is not obvious, please report it so we can fix it.

Regarding your issue, you had a good reflex in fixing apache and the
launcher config, as with PV5.2 we use a second ws connection for streaming
the images in binary format. But it has been forever since I setup that
ami, I have very little memory of what was setup.

I do know that we use 'sed' to dynamically replace some string so the
proper HOST for apache and the launcher get used, but I don't remember if
it was DNS_NAME or something else. But from what I understand, you've done
exactly what I would have done myself.

I'm wondering if when you edited your launcher config you managed to
produce an invalid JSON file. (You can paste it here http://jsonlint.com/
to be sure)

Moreover, seeing the network calls of the web page that don't even load
might be useful. I'd be curious to see the response of the POST on
/paraview.

Seb


On Thu, Jan 19, 2017 at 5:01 PM, claude  wrote:

> Hello!
>
> Following up one of the previous thread on setting up
> ParaviewWeb+Visualizer, I am trying to get it going on AWS EC2 with
> paraview-5.2. Maybe someone already went through it and know how to
> solve this little problem?
>
> * I launched the public AMI (ami-34f3f65e) on Ubuntu-14 with paraviewweb
> 4.4 which seemed like a good starting point.
> * I tested the visualizer on paraviewweb-4.4 and works perfectly.
> * I downloaded paraviewweb-5.2 and updated the 'pv' and 'www' symlinks
> under /data folder (see 'aws_data_dir' snapshot attached).
> * I also updated the paths in the start.sh, apache-TEMPLATE.conf and
> launcher-TEMPLATE.json files so that they reflect the correct path for
> paraview-5.2 (which are bit different than paraview-4.4). By the way,
> having start.sh running as a service at startup configuring properly the
> TEMPLATE files with the proper DNS name is admirable (each time I look
> at the doc, config files or code, I am amazed by the quality of it,
> thumb up!).
> * when I navigate to the EC2 DNS, the Visualizer comes up and I can
> browse for data files. The files seem to successfully load but nothing
> show up in the camera (see snapshot 'aws_ec2_visu'). Looking at the logs
> on the machine, they don't report any error (and look similar to what I
> can get locally on my machine). There is a couple of errors showing up
> in the web console though (in the snapshot attached).
>
> It looks like I am very close to make it work, I am probably missing
> something obvious.
> I tried the following to solve it by using my configuration on my local
> machine:
> 1. update the apache-TEMPLATE.conf with the following rules:
> RewriteCond %{QUERY_STRING} ^sessionId=(.*)=(.*)$ [NC]
> RewriteRule ^/proxy.*$ ws://${session-to-port:%1}/%2 [P]
>
> 2. update the launcher-TEMPLATE.json with the following line:
> "sessionURL" : "ws://DNS_NAME/proxy?sessionId=${id}=ws",
>
> 3. reboot (so that the files get updated)
>
> but this time the UI doesn't even load, meaning I made it worse.
>
> It seems just like a websocket connection issue, right?
>
> Thanks in advance for any ideas to try.
> cheers
> claude
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Embedding the Visualizer app in the browser within an iframe

2017-01-18 Thread Sebastien Jourdain
Well we fixed that issue last time in another thread. Here is the
difference:

Launcher configuration (Not working)
"C:/paraview/ParaView5.2.0/data"

Command line (Working)
"C:\paraview\ParaView5.2.0\data"

Do you notice any difference? Do you see what you should try next?

On Wed, Jan 18, 2017 at 4:38 AM, Debopam Ghoshal <debop...@gmail.com> wrote:

> Hi Seb & Claude,
>
> Thanks for pointing out the error, but still I am having the same problem.
> No matter what I do, I am not able to show the figure in the visualizer
> pane. It is always black/blank. :(
>
> This is what I did:
> 1. Used hard coded (can.ex2)  as well as dynamic (${data}) for the data
> file,
> 2. I even hardcoded the data value in the index.html file,
> 3. I tried using http://paraview as well as http://paraview/?data=can.ex2
> 4. In the visualizer Files tab, I selected each of the data files (can.ex2,
> disc_out_ref.ex2, headsq.vti)
>
> But in all these cases, I was not able to see any output in the visualizer
> pane. In each case, the native window name Visualization Toolkit -
> Win32OpenGL #n showed up with nothing except the orientation axes. The
> same window showed up within the browser, and when I moved the orientation
> axes on the browser, the axes also moved in the native window. The later
> shows that the native window is connected and responds to the browser
> actions (through web sockets I believe).
>
> What I fail to understand is why is the *data file selected from the
> Files tab* in the Visualizer console (in browser) not showing up in the
> Visualizer pane. This the seems to be the basic problem. For instance, when
> I start the Visualizer through the pvpython using the pvw-visualizer.py
> script it works absolutely ok. Which shows that there is no problem with
> my graphics card or Paraview installation.
>
> *startpvw.bat:*
>
> .\bin\pvpython.exe "C:\paraview\ParaView5.2.0\share\paraview-5.2\web\
> visualizer\server\pvw-visualizer.py" --content "C:\paraview\ParaView5.2.0\
> share\paraview-5.2\web\visualizer\www" --data "C:\paraview\ParaView5.2.0\data"
> --port 9000
>
>
> But when I run the launcher using the command:
> *launcher.bat:*
>
> set PV_HOME=C:\paraview\ParaView5.2.0
> %PV_HOME%\bin\pvpython.exe %PV_HOME%\bin\Lib\site-packages\vtk\web\launcher.py
> %PV_HOME%\launcher.config
>
> and then access the visualizer through the apache front end, then the data
> file is not being rendered.
>
> So, I guess there is something wrong with the way I am calling the
> visualizer from the launcher and the way it is called with the
> pvw-visualizer.py script.
>
> Your continued support is much appreciated. I am attaching the relevant
> files for your reference.
>
>
> Cheers & Best Wishes,
> Debopam
> ---
> Cell: +91 98304 10041 <+91%2098304%2010041>
>
> On Wed, Jan 18, 2017 at 12:43 AM, Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> No worries. Thanks Claude for your help on the mailing list... ;-)
>>
>> On Tue, Jan 17, 2017 at 8:52 AM, claude <cla...@theweak.link> wrote:
>>
>>> Thank you Sebastien! Good catch.
>>>
>>> One addition to make sure the path to the file is correct: in the JS of
>>> the HTML file in the gist, I specified data as being "data:
>>> getUrlParameter('data') + '.vti'". In your case, the extension of the
>>> file is .ex2, not vti. So make sure the whole filename is correct, for
>>> instance specify the extension in the URL and not in the JS:
>>>
>>> HTML -> "data: getUrlParameter('data')"
>>>
>>> URL  -> http://paraview/?data=can.ex2
>>>
>>> (Otherwise it will look for can.ex2.vti which does not exist)
>>>
>>> Thanks very much Sebastien!
>>>
>>> cheers
>>>
>>> On 01/17/2017 09:13 AM, Sebastien Jourdain wrote:
>>>
>>> As you can see the issue is right there:
>>>
>>> "--load-file", "${data_dir}/can.ex2"
>>>
>>>
>>> As explained by Claude earlier in that same thread:
>>>
>>> The option --data specifies the directory, so whatever file you want to
>>>> load, it must be relative to that directory.
>>>
>>>
>>>
>>> On Tue, Jan 17, 2017 at 1:38 AM, Debopam Ghoshal <debop...@gmail.com>
>>> wrote:
>>>
>>>> Hi Claude,
>>>>
>>>> Thanks a lot for your time and patience. As I have configured a virtual
>>>> host in apache, I am using the name of the virtual host (

Re: [Paraview] Embedding the Visualizer app in the browser within an iframe

2017-01-17 Thread Sebastien Jourdain
No worries. Thanks Claude for your help on the mailing list... ;-)

On Tue, Jan 17, 2017 at 8:52 AM, claude <cla...@theweak.link> wrote:

> Thank you Sebastien! Good catch.
>
> One addition to make sure the path to the file is correct: in the JS of
> the HTML file in the gist, I specified data as being "data:
> getUrlParameter('data') + '.vti'". In your case, the extension of the
> file is .ex2, not vti. So make sure the whole filename is correct, for
> instance specify the extension in the URL and not in the JS:
>
> HTML -> "data: getUrlParameter('data')"
>
> URL  -> http://paraview/?data=can.ex2
>
> (Otherwise it will look for can.ex2.vti which does not exist)
>
> Thanks very much Sebastien!
>
> cheers
>
> On 01/17/2017 09:13 AM, Sebastien Jourdain wrote:
>
> As you can see the issue is right there:
>
> "--load-file", "${data_dir}/can.ex2"
>
>
> As explained by Claude earlier in that same thread:
>
> The option --data specifies the directory, so whatever file you want to
>> load, it must be relative to that directory.
>
>
>
> On Tue, Jan 17, 2017 at 1:38 AM, Debopam Ghoshal <debop...@gmail.com>
> wrote:
>
>> Hi Claude,
>>
>> Thanks a lot for your time and patience. As I have configured a virtual
>> host in apache, I am using the name of the virtual host (paraview) instead
>> of localhost. So instead of <http://localhost>http://localhost, my url
>> is http://paraview. Please find my response below:
>>
>> - a successful POST request to localhost/paraview
>>
>> The only log that I saw in the developer console was: Navigated to:
>> <http://paraview/>http://paraview/ (Note: I did not give the data
>> because it is already hardcoded in the launcher.config file)
>>
>> - a successful GET request to localhost/proxy
>>
>> Nothing else was displayed in the console. I have attached a snapshot of
>> the network tab (not sure whether it has any relevant information)
>>
>> - then do you get an error such as "can't connect to ws://localhost..."?
>>
>> I get this error only when I specify "sessionURL" : "ws://paraview:80/ws".
>> When I specify "sessionURL" : "ws://paraview:80/proxy?sessio
>> nId=${id}=ws" then there is no error.
>> Before starting the test today, I deleted all the log file, and after the
>> test the following are my observations:
>>
>> 1. the *error.log* file is empty
>> 2. the *launcher.log* has some entries, but none of them are errors:
>> 2017-01-17 13:43:17,786:INFO:twisted:Site starting on 9000
>> 2017-01-17 13:43:17,786:INFO:twisted:Starting factory
>> 
>> 2017-01-17 13:43:53,460:INFO:twisted:"127.0.0.1" - -
>> [17/Jan/2017:08:13:52 +] "POST /paraview/ HTTP/1.1" 200 206 "
>> http://paraview/; "Mozilla/5.0 (Windows NT 10.0; WOW64)
>> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
>> 2017-01-17 13:45:01,183:INFO:twisted:Received SIGINT, shutting down.
>> 2017-01-17 13:45:01,183:INFO:twisted:(TCP Port 9000 Closed)
>> 2017-01-17 13:45:01,183:INFO:twisted:Stopping factory
>> 
>> 2017-01-17 13:45:01,183:INFO:twisted:Main loop terminated.
>> 2017-01-17 13:45:01,183:WARNING:root:Server factory shutting down.
>> Stopping all processes
>>
>> 3. The *session log* file also did not have any errors:
>> 2017-01-17 13:43:52+0530 [-] Log opened.
>> 2017-01-17 13:43:52+0530 [-] Site starting on 
>> 2017-01-17 13:43:52+0530 [-] Starting factory > instance at 0x01C32C76BF08>
>> 2017-01-17 13:43:54+0530 [HTTPChannel,0,127.0.0.1] Client has
>> reconnected, cancelling reaper
>> 2017-01-17 13:43:54+0530 [HTTPChannel,0,127.0.0.1] on_connect: connection
>> count = 1
>> 2017-01-17 13:43:54+0530 [HTTPChannel,0,127.0.0.1] Property
>> BeginValueCapture has no GetData() method, skipping
>> 2017-01-17 13:43:54+0530 [HTTPChannel,0,127.0.0.1] Property
>> CaptureValuesFloat has no GetData() method, skipping
>> 2017-01-17 13:43:54+0530 [HTTPChannel,0,127.0.0.1] Property
>> CaptureZBuffer has no GetData() method, skipping
>> 2017-01-17 13:43:54+0530 [HTTPChannel,0,127.0.0.1] Property
>> EndValueCapture has no GetData() method, skipping
>> 2017-01-17 13:43:54+0530 [HTTPChannel,0,127.0.0.1] Property
>> StartCaptureLuminance has no GetData() method, skipping
>> 2017-01-17 13:43:54+0530 [HTTPChannel,0,127.0.0.1] Property
>> StopCaptureLuminance has no GetData() method, skipping
>>
>>
>> What is confusing me is that the native rendering panel i

Re: [Paraview] Embedding the Visualizer app in the browser within an iframe

2017-01-11 Thread Sebastien Jourdain
Thanks Claude,

Here is the add-on of what functions can be called on Visualizer. (All the
function with export)

https://github.com/Kitware/visualizer/blob/master/src/app.js

We are planning to add some helper for extracting arguments from the URL.
We actually add a class in the ParaViewWeb repo, but we haven't got to the
point of using it and making it available in visualizer.

Seb

On Wed, Jan 11, 2017 at 7:32 AM, claude  wrote:

> Hi Debopam,
>
>
> I think there is one thing to consider first before taking care of data
> being passed through: if you manually start one instance of pvw-visualizer,
> it means all people connecting to port 8080 will see the same thing and act
> on the same viewer, which means potentially conflicting with each other
> action (e.g. a probable disconnection for everyone if one decide to exit
> maybe?). In that case, you need to have a virtual server that will launch a
> new process every time someone connect to port 8080. That way, all viewers
> are independent, the same person can open several viewers, etc.
>
>
> Now regarding the data being loaded at startup: you html index file should
> have a function grabbing the 'data' parameter from a URL, a form, a
> dropdown menu, etc. then sending it as a key to the Visualizer application
> (so that the launcher knows which file to load at startup).
>
> It would have been complicated to explain all the details in a email, so I
> made a gist with all the files and "code" addressing both points (launcher
> and data):
>
> https://gist.github.com/clavicule/7b8b3963ceb17302cff725f8dc36bc57
>
> Note that this gist was gathered info from the Paraview Web and Visualizer
> online documentations: kuddos to Paraview people.
> 2nd note: in that gist I'm giving the instructions for Apache server (you
> could technically choose any other, e.g. NGinx) for Linux.  I see you are
> on Windows: I don't know how Apache works on Windows but I assume (and
> hope) the steps and config file should be similar.
>
> I hope it helps! Good luck!
> cheers
> claude
>
>
>
>
> On 01/11/2017 04:10 AM, Debopam Ghoshal wrote:
>
> Hi,
>
> We have a requirement where our application will send a request to the
> paraview web server to render a specific file (which will be available in
> the data given directory) in the visualizer app, and this will be embedded
> within our application page as a iframe, whose source is the Visualizer
> app's index.html.
>
> We are using the pvpython.exe executable to start the paraview web server.
> The command used to start the server is:
>
> .\bin\pvpython.exe "C:\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\
> share\paraview-5.2\web\visualizer\server\pvw-visualizer.py" --content
> "C:\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\share\paraview-5.2\web\visualizer\www"
> --data "C:\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\data" --port 8080
>
>
> From the command, we can see that the web content is being served from the
> C:\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\share\paraview-5.2\web\
> visualizer\www directory. The index.html file uses the Visualizer.js script
> and calls the following functions:
>
> Visualizer.connect({ application: 'visualizer' });
> Visualizer.autoStopServer(10);
>
> Is there any way to find out the available functions in the Visualizer.js
> script and call them from our custom html file? What we intend to do is to
> update the index.html file and
> a. add a javascript function which will accept a filename to be rendered
> b. once the filename is received by this function, it will call the
> visualizer and display the specified file
> c. in the visualizer page, the open files tab should be hidden.
>
> Please let me know if you require any clarification.
>
> Cheers & Best Wishes,
> Debopam
> ---
>
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at: 
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to 
> subscribe/unsubscribe:http://public.kitware.com/mailman/listinfo/paraview
>
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 

Re: [Paraview] Error while launching Paraview (and Paraview Web) in Window 10

2017-01-04 Thread Sebastien Jourdain
Still in the same protocol.py file around line 141:

def getAbsolutePath(self, relativePath):
absolutePath = None

if self.multiRoot == True:
relPathParts = relativePath.replace('\\', '/').split('/')
realBasePath = self.baseDirectoryMap[relPathParts[0]]
absolutePath = os.path.join(realBasePath, *relPathParts[1:])
else:
print 'baseDirectory', self.baseDirectory
 # ADD DEBUG OUTPUT
absolutePath = os.path.join(self.baseDirectory, relativePath)
print 'absolutePath', absolutePath
# ADD DEBUG OUTPUT

cleanedPath = os.path.normpath(absolutePath)
print 'cleanedPath', cleanedPath
   # ADD DEBUG OUTPUT

# Make sure the cleanedPath is part of the allowed ones
if self.multiRoot:
for key, value in self.baseDirectoryMap.iteritems():
if cleanedPath.startswith(value):
return cleanedPath
elif cleanedPath.startswith(self.baseDirectory):
return cleanedPath

print 'cleanedPath does not start with baseDirectory', cleanedPath,
self.baseDirectory # ADD DEBUG OUTPUT

return None


But looking at the code, I can see why it may not work on windows

Next you can try to replace

elif cleanedPath.startswith(self.baseDirectory):

by

elif cleanedPath.startswith(os.path.normpath(self.baseDirectory)):

On Wed, Jan 4, 2017 at 10:40 AM, Debopam Ghoshal <debop...@gmail.com> wrote:

> Hi Seb,
>
> We did print them, and found:
>
> relativePath: can.ex2
> self.getAbsolutePath(relativePath): []
>
> I do not have access to the machine right now. But will try out anything
> else you might need shortly. So just let me known what else we need to
> debug.
>
>
> On Wed, Jan 4, 2017 at 22:52 Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> Do you mind printing relativePath so we can understand what you are
>> getting...
>>
>> Then, you most likely will have to debug self.getAbsolutePath(relativeP
>> ath) call...
>>
>> On Wed, Jan 4, 2017 at 9:55 AM, Debopam Ghoshal <debop...@gmail.com>
>> wrote:
>>
>> Hi Seb,
>>
>> We made the changes in the protocols.py file (highlighted)
>>
>> @exportRpc("pv.proxy.manager.create.reader")
>> def open(self, relativePath):
>> """
>> Open relative file paths, attempting to use the file extension to
>> select
>> from the configured readers.
>> """
>> fileToLoad = []
>> if type(relativePath) == list:
>> for file in relativePath:
>> validPath = self.getAbsolutePath(file)
>> if validPath:
>> fileToLoad.append(validPath)
>> else:
>> validPath = self.getAbsolutePath(relativePath)
>> if validPath:
>> fileToLoad.append(validPath)
>> if len(fileToLoad) == 0:
>> print "=" * 80
>> print "file not found"
>> print "fileToLoad: ", fileToLoad
>> print "=" * 80
>> return {
>> 'success': False,
>> 'reason': 'No valid path name' }
>>
>>
>>
>> The output in the console is a follows:
>>
>> C:\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit>.\bin\pvpython.exe
>> "C:\\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\\
>> share\\paraview-5.2\\web\\visualizer\\server\\pvw-visualizer.py"
>> --content "C:\\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\\
>> share\\paraview-5.2\\web\\visualizer\\www" --data
>> "C:\\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\\data" --port 8080
>> 2017-01-04 11:06:38+0530 [-] Log opened.
>> 2017-01-04 11:06:39+0530 [-] Site starting on 8080
>> 2017-01-04 11:06:39+0530 [-] Starting factory > instance at 0x022A9C7BAF48>
>> 2017-01-04 11:06:43+0530 [HTTPChannel,0,127.0.0.1] "127.0.0.1" - - [
>> 04/Jan/2017:05:36:43 +] "GET / HTTP/1.1" 304 - "-" "Mozilla/5.0
>> (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
>> Chrome/55.0.2883.87 Safari/537.36"
>> 2017-01-04 11:06:43+0530 [HTTPChannel,0,127.0.0.1] "127.0.0.1" - - [
>> 04/Jan/2017:05:36:43 +] "POST /paraview/ HTTP/1.1" 404 145 "
>> http://localhost:8080/; "Mozilla/5.0 (Windows NT 10.0; Win64; x64)
>> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
>> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Client has
>> reconnected, cancellin

Re: [Paraview] Error while launching Paraview (and Paraview Web) in Window 10

2017-01-04 Thread Sebastien Jourdain
Do you mind printing relativePath so we can understand what you are
getting...

Then, you most likely will have to debug self.getAbsolutePath(relativePath)
 call...

On Wed, Jan 4, 2017 at 9:55 AM, Debopam Ghoshal <debop...@gmail.com> wrote:

> Hi Seb,
>
> We made the changes in the protocols.py file (highlighted)
>
> @exportRpc("pv.proxy.manager.create.reader")
> def open(self, relativePath):
> """
> Open relative file paths, attempting to use the file extension to
> select
> from the configured readers.
> """
> fileToLoad = []
> if type(relativePath) == list:
> for file in relativePath:
> validPath = self.getAbsolutePath(file)
> if validPath:
> fileToLoad.append(validPath)
> else:
> validPath = self.getAbsolutePath(relativePath)
> if validPath:
> fileToLoad.append(validPath)
> if len(fileToLoad) == 0:
> print "=" * 80
> print "file not found"
> print "fileToLoad: ", fileToLoad
> print "=" * 80
> return {
> 'success': False,
> 'reason': 'No valid path name' }
>
>
>
> The output in the console is a follows:
>
> C:\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit>.\bin\pvpython.exe
> "C:\\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\\share\\
> paraview-5.2\\web\\visualizer\\server\\pvw-visualizer.py" --content
> "C:\\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\\share\\
> paraview-5.2\\web\\visualizer\\www" --data 
> "C:\\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\\data"
> --port 8080
> 2017-01-04 11:06:38+0530 [-] Log opened.
> 2017-01-04 11:06:39+0530 [-] Site starting on 8080
> 2017-01-04 11:06:39+0530 [-] Starting factory  instance at 0x022A9C7BAF48>
> 2017-01-04 11:06:43+0530 [HTTPChannel,0,127.0.0.1] "127.0.0.1" - - [
> 04/Jan/2017:05:36:43 +] "GET / HTTP/1.1" 304 - "-" "Mozilla/5.0
> (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
> Chrome/55.0.2883.87 Safari/537.36"
> 2017-01-04 11:06:43+0530 [HTTPChannel,0,127.0.0.1] "127.0.0.1" - - [
> 04/Jan/2017:05:36:43 +] "POST /paraview/ HTTP/1.1" 404 145 "
> http://localhost:8080/; "Mozilla/5.0 (Windows NT 10.0; Win64; x64)
> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Client has reconnected,
> cancelling reaper
> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] on_connect: connection
> count = 1
> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property
> BeginValueCapture has no GetData() method, skipping
> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property
> CaptureValuesFloat has no GetData() method, skipping
> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property CaptureZBuffer
> has no GetData() method, skipping
> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property
> EndValueCapture has no GetData() method, skipping
> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property
> StartCaptureLuminance has no GetData() method, skipping
> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property
> StopCaptureLuminance has no GetData() method, skipping
> *2017-01-04 11:06:47+0530 [HTTPChannel,2,127.0.0.1]
> *
> *2017-01-04 11:06:47+0530 [HTTPChannel,2,127.0.0.1] file not found*
> *2017-01-04 11:06:47+0530 [HTTPChannel,2,127.0.0.1] fileToLoad:  []*
> *2017-01-04 11:06:47+0530 [HTTPChannel,2,127.0.0.1]
> *
> 2017-01-04 11:06:56+0530 [-] Received SIGINT, shutting down.
>
>
>
> Cheers & Best Wishes,
> Debopam
> ---
> Cell: +91 98304 10041 <+91%2098304%2010041>
>
> On Tue, Jan 3, 2017 at 9:05 PM, Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> Ok that mean there is still a path issue when loading a file within
>> ParaViewWeb on Windows.
>>
>> Did you look at the log of that given session to see if any error is
>> printed?
>>
>> You can try to edit the file [lib/site-packages]/paraview/web/protocols.py
>> within the ParaView application (The [...] part is for the path section
>> that I'm not sure of).
>>
>> In the function
>>
>> @exportRpc("pv.proxy.manager.create.reader")
>> def open(self, relativePath):
>> """
>> Open relative file paths, a

Re: [Paraview] Error while launching Paraview (and Paraview Web) in Window 10

2017-01-03 Thread Sebastien Jourdain
Ok that mean there is still a path issue when loading a file within
ParaViewWeb on Windows.

Did you look at the log of that given session to see if any error is
printed?

You can try to edit the file [lib/site-packages]/paraview/web/protocols.py
within the ParaView application (The [...] part is for the path section
that I'm not sure of).

In the function

@exportRpc("pv.proxy.manager.create.reader")
def open(self, relativePath):
"""
Open relative file paths, attempting to use the file extension to
select
from the configured readers.
"""
fileToLoad = []
if type(relativePath) == list:
for file in relativePath:
validPath = self.getAbsolutePath(file)
if validPath:
fileToLoad.append(validPath)
else:
validPath = self.getAbsolutePath(relativePath)
if validPath:
fileToLoad.append(validPath)

if len(fileToLoad) == 0:
return { 'success': False, 'reason': 'No valid path name' }

print "=" * 80# <-- ADD THAT LINE TO SEE THE PATH YOU
TRY TO LOAD
print fileToLoad   # <-- ADD THAT LINE TO SEE THE PATH YOU TRY
TO LOAD
print "=" * 80   # <-- ADD THAT LINE TO SEE THE PATH YOU
TRY TO LOAD

[...]

Then look at the log to see which path is used to load that file.

Seb

On Tue, Jan 3, 2017 at 6:36 AM, Debopam Ghoshal <debop...@gmail.com> wrote:

> Hi Seb,
>
> 1. We are able to see the orientation axis and also able to rotate them.
> For example, when we click on can.ex2, we see a blank black screen. Then
> after we hide the left panel, we are able to see the orientation axis and
> also rotate them.
>
> 2. When we select the Wavelet we were able to view it properly, and was
> also able to rotate the scene.
>
> 3. We tried with both / and \\ but there is no change. The command we are
> using to launch paraview is as below:
>
> a: .\bin\pvpython.exe "C:\\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\\
> share\\paraview-5.2\\web\\visualizer\\server\\pvw-visualizer.py"
> --content "C:\\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\\
> share\\paraview-5.2\\web\\visualizer\\www" --data "C:\\ParaView-5.2.0-Qt4-
> OpenGL2-MPI-Windows-64bit\\data" --port 8080
>
> b: .\bin\pvpython.exe "C:/ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit/
> share/paraview-5.2/web/visualizer/server/pvw-visualizer.py" --content
> "C:/ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit/share/paraview-5.2/web/visualizer/www"
> --data "C:/ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit/data" --port 8080
>
>
> Cheers & Best Wishes,
> Debopam
> ---
> Cell: +91 98304 10041 <+91%2098304%2010041>
>
> On Mon, Jan 2, 2017 at 9:36 PM, Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> Hi Debopam,
>>
>> Do you see the orientation axis? Does it move when you rotate the scene?
>> What happen when you click on "+" and choose the Wavelet? Do you see
>> something?
>>
>> I'm wondering if you still run into an invalid path issue due to / or \.
>>
>> Seb
>>
>> On Mon, Jan 2, 2017 at 6:38 AM, Debopam Ghoshal <debop...@gmail.com>
>> wrote:
>>
>>> Hi Seb,
>>>
>>> 1. "C:/ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit/data" works fine.
>>> Now we can see the list of files in the data folder.
>>>
>>> However, there seems to be some problem with the ParaviewWeb Application
>>> (or may be with the graphics driver?). Because we cannot render the sample
>>> mesh files (eg: can.ex2) in the visualizer. When we tried to view the files
>>> in the desktop application they are displayed without any problems. A
>>> screenshot of the graphics driver is attached for your reference.
>>>
>>> 2. Ok.
>>>
>>>
>>> Cheers & Best Wishes,
>>> Debopam
>>> ---
>>>
>>> On Fri, Dec 30, 2016 at 9:02 PM, Sebastien Jourdain <
>>> sebastien.jourd...@kitware.com> wrote:
>>>
>>>> Hi Debopam,
>>>>
>>>> 1) I'm not sure to know what is the issue with the path but try with
>>>> either:
>>>>
>>>> "C:/ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit/data"
>>>> or
>>>> "C:\\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\\data"
>>>>
>>>> 2) paraview_console_error.jpg is not an error since you are not using
>>>> the launcher. So that part is 

Re: [Paraview] Error while launching Paraview (and Paraview Web) in Window 10

2017-01-02 Thread Sebastien Jourdain
Hi Debopam,

Do you see the orientation axis? Does it move when you rotate the scene?
What happen when you click on "+" and choose the Wavelet? Do you see
something?

I'm wondering if you still run into an invalid path issue due to / or \.

Seb

On Mon, Jan 2, 2017 at 6:38 AM, Debopam Ghoshal <debop...@gmail.com> wrote:

> Hi Seb,
>
> 1. "C:/ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit/data" works fine. Now
> we can see the list of files in the data folder.
>
> However, there seems to be some problem with the ParaviewWeb Application
> (or may be with the graphics driver?). Because we cannot render the sample
> mesh files (eg: can.ex2) in the visualizer. When we tried to view the files
> in the desktop application they are displayed without any problems. A
> screenshot of the graphics driver is attached for your reference.
>
> 2. Ok.
>
>
> Cheers & Best Wishes,
> Debopam
> ---
>
> On Fri, Dec 30, 2016 at 9:02 PM, Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> Hi Debopam,
>>
>> 1) I'm not sure to know what is the issue with the path but try with
>> either:
>>
>> "C:/ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit/data"
>> or
>> "C:\\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\\data"
>>
>> 2) paraview_console_error.jpg is not an error since you are not using the
>> launcher. So that part is actually expected.
>> For the second error when you try to delete the TimeAnnotation, I'm not
>> sure to know what is the issue. You should know more by looking at the
>> output of the command line.
>>
>> Seb
>>
>>
>> On Fri, Dec 30, 2016 at 12:53 AM, Debopam Ghoshal <debop...@gmail.com>
>> wrote:
>>
>>> (Reposting for a larger audience)
>>>
>>> Hi Ken,
>>>
>>> When we start paraview web we noted two things:
>>>
>>> 1. In the Visualizer, the Files tab is not showing any files. Please
>>> refer to the attached screenshot (paraview_home.jpg)
>>> 2. There is an error showing up at the browser console
>>> (paraview_console_error.jpg, paraview_console_error2.jpg)
>>>
>>> The paraview startup messages are also given for your reference
>>> (paraview_log.jpg)
>>>
>>>
>>>
>>> Cheers & Best Wishes,
>>> Debopam
>>> ---
>>> Cell: +91 98304 10041 <+91%2098304%2010041>
>>>
>>> On Wed, Dec 28, 2016 at 10:35 AM, Debopam Ghoshal <debop...@gmail.com>
>>> wrote:
>>>
>>>> Hi Ken,
>>>>
>>>> We finally got a machine where Paraview 5.2 MPI is running without any
>>>> issues. However, when we start paraview web we noted two things:
>>>>
>>>> 1. In the Visualizer, the Files tab is not showing any files. Please
>>>> refer to the attached screenshot (paraview_home.jpg)
>>>> 2. There is an error showing up at the browser console
>>>> (paraview_console_error.jpg, paraview_console_error2.jpg)
>>>>
>>>> The paraview startup messages are also given for your reference
>>>> (paraview_log.jpg)
>>>>
>>>>
>>>> Cheers & Best Wishes,
>>>> Debopam
>>>> ---
>>>> Cell: +91 98304 10041 <+91%2098304%2010041>
>>>>
>>>> On Tue, Dec 13, 2016 at 7:03 PM, Ken Martin <ken.mar...@kitware.com>
>>>> wrote:
>>>>
>>>>> ParaView with the old OpenGL backend should work on any windows
>>>>> machine. It may be slow and some of the advanced techniques may not work
>>>>> but the basics will all work.
>>>>>
>>>>> On Tue, Dec 13, 2016 at 5:57 AM, Debopam Ghoshal <debop...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Yes Ken, you are right. This is an older machine. So, will it be
>>>>>> possible to use ParaView (with the old OpenGL backend) on this machine? 
>>>>>> Or
>>>>>> we need to get a machine with better configuration to run ParaView?
>>>>>>
>>>>>> Additionally, will it be possible to run ParaView (and ParaViewWeb)
>>>>>> on a Windows 10 guest running in VirtualBox on a MacOS host?
>>>>>>
>>>>>> Cheers & Best Wishes,
>>>>>> Debopam
>>>>>> ---
>>>>>> Cell: +91 98304 10041
>>

Re: [Paraview] Error while launching Paraview (and Paraview Web) in Window 10

2016-12-30 Thread Sebastien Jourdain
op...@gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi Ken,
>>>>>>>>
>>>>>>>> When I ran the command: vtkRenderingOpenGL2CxxTests.exe
>>>>>>>> TestAppleBug there was an error. A screenshot of the error is attached 
>>>>>>>> for
>>>>>>>> your reference. Please let me know if you require any other details.
>>>>>>>>
>>>>>>>> Cheers & Best Wishes,
>>>>>>>> Debopam
>>>>>>>> ---
>>>>>>>> Cell: +91 98304 10041
>>>>>>>>
>>>>>>>> On Fri, Dec 9, 2016 at 7:17 PM, Ken Martin <ken.mar...@kitware.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Here is a new version of the executable, can you try it?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Fri, Dec 9, 2016 at 1:42 AM, Debopam Ghoshal <
>>>>>>>>> debop...@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> Hi Cory and Ken,
>>>>>>>>>>
>>>>>>>>>> Thanks a lot for your prompt response.
>>>>>>>>>>
>>>>>>>>>> Below are the details you asked:
>>>>>>>>>> 1. display-props.png - screenshot of:  Settings -> System ->
>>>>>>>>>> Display -> Advanced display settings -> Display adapter
>>>>>>>>>> properties
>>>>>>>>>> 2. vtkrendering.png - screenshot of the error which came up when
>>>>>>>>>> I ran: vtkRenderingOpenGL2CxxTests.exe TestAppleBug
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Cheers & Best Wishes,
>>>>>>>>>> Debopam
>>>>>>>>>> ---
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Thu, Dec 8, 2016 at 10:49 PM, Ken Martin <
>>>>>>>>>> ken.mar...@kitware.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> Can you try running the following executable (rename .foo to
>>>>>>>>>>> .exe) from a cmd shell as
>>>>>>>>>>>
>>>>>>>>>>> vtkRenderingOpenGL2CxxTests.exe TestAppleBug
>>>>>>>>>>>
>>>>>>>>>>> and see if it crashes, and send the output is produces
>>>>>>>>>>>
>>>>>>>>>>> Thanks
>>>>>>>>>>> Ken
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Thu, Dec 8, 2016 at 10:46 AM, Cory Quammen <
>>>>>>>>>>> cory.quam...@kitware.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hi Depobam,
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks for trying out the other ParaView versions. I suspect
>>>>>>>>>>>> there
>>>>>>>>>>>> might be a problem with the new OpenGL backend on your system
>>>>>>>>>>>> as that
>>>>>>>>>>>> has changed between ParaView 4 and 5. What kind of graphics
>>>>>>>>>>>> card do
>>>>>>>>>>>> you have on your system. You can get some of the display
>>>>>>>>>>>> properties by
>>>>>>>>>>>> going to
>>>>>>>>>>>>
>>>>>>>>>>>> Settings -> System -> Display -> Advanced display settings ->
>>>>>>>>>>>> Display
>>>>>>>>>>>> adapter properties
>>>>>>>>>>>>
>>>>>>>>>>>> Ken,
>>>>>>>>>>>>
>>>>>>>>>>>> Are there any things Depobam can do on his Windows 10 system 

Re: [Paraview] Error while launching Paraview (and Paraview Web) in Window 10

2016-12-06 Thread Sebastien Jourdain
Cory you need to provide an absolute path as argument "c:\.".

But the issue seems to be on ParaView itself. The (Qt) executable crash at
startup on there machine, regardless of their goal to use ParaViewWeb down
the road.

Seb

On Tue, Dec 6, 2016 at 10:06 AM, Cory Quammen 
wrote:

> Correction: I could run ParaViewWeb on Windows 10, but I couldn't load
> data through the web client. I didn't get pvpython.exe to crash,
> though.
>
> On Tue, Dec 6, 2016 at 11:35 AM, Cory Quammen 
> wrote:
> > Debopam,
> >
> > I just tried what you ran on Windows 10 and it ran fine for me. One
> > thing I had to fix, which I doubt is the cause of your crash, is the
> > data argument is actually just --data and not --data-dir.
> >
> > We've had some other reports of 5.2 crashing on start up on Windows.
> > Did 5.1 run fine for you?
> >
> > I wonder if you could try installing ParaView 4.4 from
> > http://www.paraview.org/download/ to see if it runs. If it does, that
> > gives me a clue on where to look.
> >
> > Thanks,
> > Cory
> >
> > On Tue, Dec 6, 2016 at 5:23 AM, Debopam Ghoshal 
> wrote:
> >> Hi,
> >>
> >> I followed the instructions given here, but I am getting the following
> >> error:
> >>
> >>
> >> Paraview Installation Directory: C:\ParaView-5.2.0-Qt4-OpenGL2-
> Windows-64bit
> >>
> >> Command:
> >>
> >> .\bin\pvpython.exe \
> >>
> >>
> >> "C:\ParaView-5.2.0-Qt4-OpenGL2-Windows-64bit\share\
> paraview-5.2\web\visualizer\server\pvw-visualizer.py"
> >> \
> >>
> >>   --content
> >> "C:\ParaView-5.2.0-Qt4-OpenGL2-Windows-64bit\share\
> paraview-5.2\web\visualizer\www\"
> >> \
> >>
> >>   --data-dir "C:\ParaView-5.2.0-Qt4-OpenGL2-Windows-64bit\data\" \
> >>
> >>   --port 8080
> >>
> >>
> >> Output:
> >>
> >> Console: 2016-12-02 10:09:51+0530 [-] Log opened.
> >>
> >> Error Window screenshot attached (PVW-Error.png)
> >>
> >>
> >> Other Details:
> >>
> >> OS: Windows 10 Professional
> >>
> >> RAM: 8GB
> >>
> >> A screenshot of the system properties is attached for your reference
> >> (Window10-SystemProps.png)
> >>
> >> Similar error occurred when I launched the Paraview desktop application
> >> (ParaviewError.png).
> >>
> >>
> >> Cheers & Best Wishes,
> >>
> >> Debopam
> >> ---
> >>
> >>
> >> ___
> >> Powered by www.kitware.com
> >>
> >> Visit other Kitware open-source projects at
> >> http://www.kitware.com/opensource/opensource.html
> >>
> >> Please keep messages on-topic and check the ParaView Wiki at:
> >> http://paraview.org/Wiki/ParaView
> >>
> >> Search the list archives at: http://markmail.org/search/?q=ParaView
> >>
> >> Follow this link to subscribe/unsubscribe:
> >> http://public.kitware.com/mailman/listinfo/paraview
> >>
> >
> >
> >
> > --
> > Cory Quammen
> > Staff R Engineer
> > Kitware, Inc.
>
>
>
> --
> Cory Quammen
> Staff R Engineer
> Kitware, Inc.
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] geotiff aerial imagery

2016-11-09 Thread Sebastien Jourdain
They are still there but hidden by default as considered as advanced.
So you can either turn the advance button ON or simply write in the search
box: "map scalars"

On Wed, Nov 9, 2016 at 10:23 AM, andrealphus  wrote:

> How do I properly display an RGB image from a 3 band (or 4 if alpha)
> geotiff? I know Ive done this before, but forgot how. In older
> versions you had to turn off color mapping and explicitly set RGB
> scalars, but those options went away after PVv4 if I remember.
>
>
> example file;
> gdalinfo NAIP_LVC_10m_UTM11_noalpha.tif
> Driver: GTiff/GeoTIFF
> Files: NAIP_LVC_10m_UTM11_noalpha.tif
> Size is 9973, 10742
> Coordinate System is:
> PROJCS["NAD83 / UTM zone 11N",
> GEOGCS["NAD83",
> DATUM["North_American_Datum_1983",
> SPHEROID["GRS 1980",6378137,298.2572221010002,
> AUTHORITY["EPSG","7019"]],
> TOWGS84[0,0,0,0,0,0,0],
> AUTHORITY["EPSG","6269"]],
> PRIMEM["Greenwich",0],
> UNIT["degree",0.0174532925199433],
> AUTHORITY["EPSG","4269"]],
> PROJECTION["Transverse_Mercator"],
> PARAMETER["latitude_of_origin",0],
> PARAMETER["central_meridian",-117],
> PARAMETER["scale_factor",0.9996],
> PARAMETER["false_easting",50],
> PARAMETER["false_northing",0],
> UNIT["metre",1,
> AUTHORITY["EPSG","9001"]],
> AUTHORITY["EPSG","26911"]]
> Origin = (295410.592907027050387,4229149.359127406030893)
> Pixel Size = (7.891650661980430,-7.891650661980430)
> Metadata:
>   AREA_OR_POINT=Area
> Image Structure Metadata:
>   INTERLEAVE=PIXEL
> Corner Coordinates:
> Upper Left  (  295410.593, 4229149.359) (119d20' 9.74"W, 38d11'13.42"N)
> Lower Left  (  295410.593, 4144377.248) (119d18'43.56"W, 37d25'25.04"N)
> Upper Right (  374114.025, 4229149.359) (118d26'15.83"W, 38d12' 5.41"N)
> Lower Right (  374114.025, 4144377.248) (118d25'22.76"W, 37d26'15.63"N)
> Center  (  334762.309, 4186763.303) (118d52'37.93"W, 37d48'47.97"N)
> Band 1 Block=9973x1 Type=Byte, ColorInterp=Red
> Band 2 Block=9973x1 Type=Byte, ColorInterp=Green
> Band 3 Block=9973x1 Type=Byte, ColorInterp=Blue
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] webserver write up

2016-11-08 Thread Sebastien Jourdain
The ParaViewWeb documentation has moved to
https://kitware.github.io/paraviewweb/.

We are still in the process of deprecating the previous documentation
location.

On Tue, Nov 8, 2016 at 10:58 AM, andrealphus  wrote:

> Could someone explain to me how to correctly set up a local paraview
> webserver??
>
> I've tried to follow the write-ups here;
> http://www.paraview.org/ParaView3/Doc/Nightly/www/js-
> doc/index.html#!/guide/quick_start
>
> But they seem inaccuracte/out of date. I have tried both the
> quickstart and Ububtu LTS writeups.
>
> I have an apache 2 server running.
>
> Ive tried installing PV from both the direct download page (source and
> binaries) as well as a github clone.
>
>
> In regards to the quickstart it also seems like the given paths have
> changed? (can someone verify??)
>
> in the weite up
> /bin/pvpython lib/paraview-4.1/site-packages/paraview/web/pv_web_
> visualizer.py
>  \
> --content ./share/paraview-4.1/www
> \
> --data-dir /path-to-share/
> \
> --port 8080 &
>
> to:
> ./bin/pvpython share/paraview-5.2/web/visualizer/server/pvw-visualizer.py
> \
>  --content share/paraview-5.2/web/visualizer/www  \
> --data-dir  /path-to-share
> --port 8080
>
> I can get a visualizer window up and running, but there are no control
> buttons to load buttons just a frozen screen of the paraview grey
> background and axis (which I can not rotate).
>
> If I need to compile from source are there any specific flags I need
> to set in ccmake beside paraview python?
>
>
> Thanks!
>
> -ashton
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Visualization of Xdmf-H5 files on Paraview Web

2016-10-20 Thread Sebastien Jourdain
I think in ParaView it is asking you (via a popup) which reader to use.

So ParaViewWeb in that specific case, don't know what to do.

To fix that, you will have to figure out what is the proxy name for your
reader and provide a config file to Visualizer (if it is what you are
using).

Add the following args when running it:

[...] --proxies /path/to/proxy-settings.json

And here is a sample content for the proxy-settings.json file:

{
"sources": [
{ "name": "AnnotateTime", "label": "Annotate Time" },
{ "name": "Cone" },
{ "name": "Sphere" },
{ "name": "Text" },
{ "name": "Wavelet" }
],

"filters": [
{ "name": "Calculator" },
{ "name": "CellDatatoPointData", "label": "Cell Data To Point Data"
},
{ "name": "Clip" },
{ "name": "Contour" },
{ "name": "D3" },
{ "name": "ExtractCTHParts", "label": "Extract CTH Parts" },
{ "name": "ProcessIdScalars", "label": "Process ID Scalars" },
{ "name": "Reflect" },
{ "name": "Slice" },
{ "name": "StreamTracer", "label": "Stream Tracer" },
{ "name": "Threshold" },
{ "name": "Transform" },
{ "name": "Tube" },
{ "name": "Ribbon" },
{ "name": "WarpByScalar", "label": "Warp By Scalar" },
{ "name": "WarpByVector", "label": "Warp By Vector" },
{ "name": "ExtractBlock", "label": "Extract Blocks" }
],

"readers": [
{ "name": "LegacyVTKReader", "extensions": [ "vtk" ], "method":
"FileNames" },
{ "name": "Xdmf3ReaderS", "extensions": [ "xmf", "xdmf" ] }
]
}

It seems for your use case you want:

"readers": [
   { "name": "XdmfReader", "extensions": [ "xdmf" ], "method": "FileNames" }
]


On Thu, Oct 20, 2016 at 8:38 AM, Gabriel Álvarez Castro <
gabriel.alva...@usc.es> wrote:

> Hi,
>
>
>
> We have programmed a code, a scientific code, which
> produces pairs of files Xdmf-H5, files including time sequence. We can open
> this files with Paraview Desktop, but NOT with Paraview Web. There is a
> sample of these pairs of files in the ZIP attached. Could someone tell us
> why this files seem to be incompatible with Paraview Web? Thank you in
> advance.
>
>
>
> Regards,
>
>
>
>Gabriel.
>
>
>
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] x3d export issue : only transform nodes exists in x3d

2016-09-26 Thread Sebastien Jourdain
I think you need to adjust the "*Remote Render Threshold" *to "102400" so
the scene geometry (surface mesh) can be sent to the client (if the client
can handle it) and export again.
At that point the exporter should find some geometry to write.

On Mon, Sep 26, 2016 at 7:05 AM, SeongMo Yeon 
wrote:

> Hi,
>
> I am trying to postprocess OpenFOAM results with paraview and export a
> scene into x3d format.
>
> OpenFOAM results are in remote server and I have to use paraview
> client/server to work with them.
>
> After reading the results with OpenFOAM reader and postprocessing them,
> the scene is exported into x3d format and I found that the file has only
>  without any vertices, faces, etc.. Am I doing
> something wrong?
>
> FYI, I am using ParaView 5.1.2.
>
>
> -- x3d file contents goes below
>
> 
>
> 
>   
> 
> 
> 
>   
>   
> 
>  description="Default View" orientation="0.974067 0.214559 0.0718191
> -1.34581" centerOfRotation="0.5 0.5 0.5"/>
>  headlight="true"/>
> 
> 
>   
>color="0.90824 0.93314 1" intensity="0.25" on="true"/>
>   
>   
>   
>   
> 
>   
> 
>
>
>
> --
> Seong Mo Yeon
> IIHR - Hydroscience & Engineering
> College of Engineering, University of Iowa
> Iowa City, IA 52242 USA
>
> E-mail : seongmo.y...@gmail.com
> Tel :
> 
> Fluctuat nec mergitur
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensou
> rce/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] pv_web_visualizer.py segmentation fault when loading a pvsm file

2016-09-01 Thread Sebastien Jourdain
Hi Pepe,

I am not aware of the issue do you mind sharing your state file with me so
I can see what you were doing in your state file?

Did you generate your state file from the Visualizer or ParaView?

Thanks,

Seb



On Wed, Aug 31, 2016 at 4:49 AM, Jose Luis Cercós 
wrote:

> Hi community!
>
> In Paraview 4.4.0, 5.1.0, and 5.1.2, I'm having a weird error (I don't
> know if other versions are affected as well)... After launching the
> ParaViewWeb visualizer script:
>
> ./bin/pvpython 
> ./lib/paraview-5.1/site-packages/paraview/web/pv_web_visualizer.py
> --content ./share/paraview-5.1/www --data-dir /PATH_TO_THE_FILES/ --port
> 8080
>
> Connecting with it (http://localhost:8080/apps/Visualizer/), loading a
> pvsm file, and reloading the web page (to close the connection and the
> ParaViewWeb visualizer instance), I'm receiving a segmentation fault:
>
> (...)
> 2016-08-31 12:39:23+0200 [twisted.web.server.Site] (TCP Port 8080 Closed)
> 2016-08-31 12:39:23+0200 [twisted.web.server.Site] Stopping factory
> 
> 2016-08-31 12:39:23+0200 [HTTPChannel,6,127.0.0.1] connection_lost:
> connection count = 0
> 2016-08-31 12:39:23+0200 [HTTPChannel,6,127.0.0.1] Starting timer, process
> will terminate in: 300sec
> 2016-08-31 12:39:23+0200 [-] Main loop terminated.
> *Segmentation fault (core dumped)*
>
> However, it is not happening if I manually load the data and reproduce all
> the process (In such case it is just logging "Main loop terminated" and
> conveniently closing the app)
>
> The half good news are that, in Paraview >= 5.1.0 at least it is ever
> terminating (with the segfault), while in Paraview 4.4 it may become hanged
> (instead of crashing).
>
> Someone else with the same problem? Any idea to fix that?
>
> Thanks!
> Pepe
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Paraview Web inside web app - pv is not defined

2016-08-30 Thread Sebastien Jourdain
You might also be able to use the url for the iframe to inform the
configuration to use some aditional key/pair.

like http://host/pvw?fileToLoad=disk.vtk

That should work too.

Seb

On Tue, Aug 30, 2016 at 1:41 AM, Daniel Zuidinga <i...@seoaachen.de> wrote:

> not yet, but an IFrame is enough for me now. I think I have just to add
> the files added by the loader.
>
>
> Am 29.08.2016 um 18:53 schrieb Sebastien Jourdain:
>
> Did you figure out how to load everything by hand?
>
> On Mon, Aug 29, 2016 at 4:47 AM, Daniel Zuidinga <i...@seoaachen.de>
> wrote:
>
>>
>> I looked into it.
>> Seems that I have to get rid of the vtkweb-loader.js and load the js, tpl
>> and css myself.
>>
>>
>>
>>
>> Am 29.08.2016 um 10:19 schrieb Daniel Zuidinga:
>>
>> Hi,
>>
>> I try to get pv web visualizer to work inside an angular2 component.
>>
>> The window opens on server and connection object seems right. But I get
>> pv is not defined when try to call
>>
>> pv.initializeVisualizer(...)
>>
>> . Any ideas why this could be?
>>
>>
>> ReferenceError: pv is not defined
>> at start (http://localhost:24264/dist/main.js?v=xuC12Bx2k7ItiM0wdgeP9
>> OjgnSb7SIXqeGE04k7xU20:57595:18)
>> at q.connectionInfo.connection.onopen (http://localhost:24264/lib/co
>> re/vtkweb-all.min.js:30:556)
>> at w.b._session.onjoin (http://localhost:24264/ext/co
>> re/autobahn.min.js:29:210)
>> at Object.f._socket.onmessage (http://localhost:24264/ext/co
>> re/autobahn.min.js:95:330)
>> at WebSocket.window.b.onmessage (http://localhost:24264/ext/co
>> re/autobahn.min.js:114:422)
>>
>>
>>
>> ___
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at 
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at: 
>> http://paraview.org/Wiki/ParaView
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to 
>> subscribe/unsubscribe:http://public.kitware.com/mailman/listinfo/paraview
>>
>> ___ Powered by
>> www.kitware.com Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html Please keep messages
>> on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaV
>> iew Search the list archives at: http://markmail.org/search/?q=ParaView
>> Follow this link to subscribe/unsubscribe: http://public.kitware.com/mail
>> man/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Paraview Web inside web app - pv is not defined

2016-08-29 Thread Sebastien Jourdain
Did you figure out how to load everything by hand?

On Mon, Aug 29, 2016 at 4:47 AM, Daniel Zuidinga  wrote:

>
> I looked into it.
> Seems that I have to get rid of the vtkweb-loader.js and load the js, tpl
> and css myself.
>
>
>
>
> Am 29.08.2016 um 10:19 schrieb Daniel Zuidinga:
>
> Hi,
>
> I try to get pv web visualizer to work inside an angular2 component.
>
> The window opens on server and connection object seems right. But I get pv
> is not defined when try to call
>
> pv.initializeVisualizer(...)
>
> . Any ideas why this could be?
>
>
> ReferenceError: pv is not defined
> at start (http://localhost:24264/dist/main.js?v=
> xuC12Bx2k7ItiM0wdgeP9OjgnSb7SIXqeGE04k7xU20:57595:18)
> at q.connectionInfo.connection.onopen (http://localhost:24264/lib/
> core/vtkweb-all.min.js:30:556)
> at w.b._session.onjoin (http://localhost:24264/ext/
> core/autobahn.min.js:29:210)
> at Object.f._socket.onmessage (http://localhost:24264/ext/
> core/autobahn.min.js:95:330)
> at WebSocket.window.b.onmessage (http://localhost:24264/ext/
> core/autobahn.min.js:114:422)
>
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at: 
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to 
> subscribe/unsubscribe:http://public.kitware.com/mailman/listinfo/paraview
>
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Paraview Web with SSL

2016-08-26 Thread Sebastien Jourdain
You should be able to add any key/pair in your config object that you
submit for connecting to the server.

Then in the launcher config you can use those provided key as argument of
your command line like follow:

var conf = { app: 'visualizer', fileToLoad: './dataset.vtk' }

Launcher

cmd: [
  ..., "--file-to-load", "${fileToLoad}"
]

On Fri, Aug 26, 2016 at 5:52 AM, Daniel Zuidinga <i...@seoaachen.de> wrote:

> I have still a question. How can I pass arguments to that launcher from
> the client? E.g. I want to pass a file or a directory.
>
>
> Am 25.08.2016 um 16:32 schrieb Sebastien Jourdain:
>
> Thanks Daniel,
>
> the documentation explain how to do it in a slightly more secure way with
> groups and so on... ;-)
>
> On Thu, Aug 25, 2016 at 1:20 AM, Daniel Zuidinga <i...@seoaachen.de>
> wrote:
>
>> I allowed read/write permissions for proxy.txt for all. Now it works!
>> Thank you very much. I hope I can contribute to paraview web when I am more
>> into it.
>>
>>
>> Am 25.08.2016 um 01:19 schrieb Sebastien Jourdain:
>>
>> Looking at your system log you may have some hints on what is going
>> wrong. (Still leaning toward file system security issue)
>>
>> The sessionId could still be sent back but if the launcher can not write
>> that file, then apache could not figure out its mapping.
>>
>> What linux version are you running it on?
>>
>>
>> On Wed, Aug 24, 2016 at 4:12 PM, Daniel Zuidinga <i...@seoaachen.de>
>> wrote:
>>
>>> yes that file has contents. otherwise the sessionID also wouldn't be
>>> send back?
>>>
>>> any ideas how to fix the ws communication?
>>>
>>>
>>> Am 24.08.2016 um 23:44 schrieb Sebastien Jourdain:
>>>
>>> Yes it seems the ws forwarding is not working.
>>>
>>> if you cat that file you should see some content with that id and a
>>> host/port that apache should use to connect to the server that is running
>>> paraview.
>>>
>>> Otherwise the documentation (link that I previously gave) explain how to
>>> use unix group and setup the appropriate rights to that file so apache can
>>> read while the launcher can write.
>>>
>>> On Wed, Aug 24, 2016 at 3:01 PM, Daniel Zuidinga <i...@seoaachen.de>
>>> wrote:
>>>
>>>> how can I check?
>>>>
>>>> The sessionID is sent to the client. So as far as I understand the http
>>>> requests work, but not the ws?
>>>>
>>>>
>>>>
>>>> Am 24.08.2016 um 22:52 schrieb Sebastien Jourdain:
>>>>
>>>> Are you sure apache has the right to read the /home/daniel/proxy.txt
>>>> while the launcher is writting it?
>>>>
>>>> Do you see some content that match your sessionId within that file?
>>>>
>>>> On Wed, Aug 24, 2016 at 1:57 PM, Daniel Zuidinga <i...@seoaachen.de>
>>>> wrote:
>>>>
>>>>>
>>>>> I changed sessionManagerURL in my html file to
>>>>> vtkWeb.properties.sessionManagerURL instead of
>>>>> http://localhost:8080/paraview. Now I get in firefox:
>>>>>
>>>>> Use of getPreventDefault() is deprecated.  Use defaultPrevented
>>>>> instead. jquery-1.8.3.min.js:2:0
>>>>> GET
>>>>> http://localhost/proxy [HTTP/1.1 400 Bad Request 16ms]
>>>>> null Visualizer:42:13
>>>>> Firefox can't establish a connection to the server at
>>>>> ws://localhost/proxy?sessionId=7d12745c-6a34-11e6-a5dc-0016d4e2bc28.
>>>>> autobahn.min.js:114:0
>>>>> GET
>>>>> http://localhost/proxy [HTTP/1.1 400 Bad Request 2ms]
>>>>> null
>>>>>
>>>>> ...I think one more thing is needed.
>>>>>
>>>>>
>>>>>
>>>>> Am 24.08.2016 um 21:51 schrieb Daniel Zuidinga:
>>>>>
>>>>> I had wrong paths in my launcher.config properties.
>>>>> Now the request gets through and the vtk window opens. But I have
>>>>> still the ws error. Firefox console:
>>>>>
>>>>> Firefox can't establish a connection to the server at
>>>>> ws://localhost/ws. autobahn.min.js:114:0
>>>>> null Visualizer:42:13
>>>>> Use of getPreventDefault() is deprecated.  Use defaultPrevented
>>>>> instead. jquery-1.8.3.min.js:2:0
>>>>> No launcher found.  Attempting to conn

Re: [Paraview] ParaView over the internet

2016-08-25 Thread Sebastien Jourdain
Then to run it (http://pvw.kitware.com/#!/guide/quick_start)

$ tar xvzf ParaView-4.1.0-Linux-64bit-glibc-2.3.6.tar.gz
$ cd ParaView-4.1.0-Linux-64bit
$ ./bin/pvpython
lib/paraview-4.1/site-packages/paraview/web/pv_web_visualizer.py  \
--content ./share/paraview-4.1/www
\
--data-dir /path-to-share/
\
--port 8080 &-=> Then, open a browser to the following URL
http://localhost:8080/apps/Visualizer


On Thu, Aug 25, 2016 at 9:04 AM, Sebastien Jourdain <
sebastien.jourd...@kitware.com> wrote:

> http://www.paraview.org/download/
>
> On Thu, Aug 25, 2016 at 8:31 AM, Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> It is part of the paraview distribution.
>>
>> start it via pvpython.
>>
>> On Wed, Aug 24, 2016 at 6:46 PM, Fa-Gung Fan <fag...@gmail.com> wrote:
>>
>>> Hi Sebastien,
>>>
>>> I still have the failed to fetch problem (below).  Is Ubuntu 12.04
>>> (Linux 3.2.0-105-generic) too old?  You said there is an older version of
>>> Visualizer provided along with ParaView binaries.  Can you please point me
>>> to the location?  I could not find it in http://kitware.github.io/parav
>>> iewweb/applications/ or http://kitware.github.io/parav
>>> iewweb/applications/. Thanks.
>>>
>>> - ffan
>>>
>>> ffan@caelinux2013-VirtualBox:~/packages/ParaView_Visualizer/visualizer$
>>> npm install
>>> npm http GET https://registry.npmjs.org/commander/2.9.0
>>> npm http GET https://registry.npmjs.org/open/0.0.5
>>> npm http GET https://registry.npmjs.org/shelljs/0.7.3
>>> npm http GET https://registry.npmjs.org/ws/0.8.1
>>> npm http GET https://registry.npmjs.org/font-awesome/4.6.3
>>> npm http GET https://registry.npmjs.org/gl-matrix/2.3.2
>>> npm http GET https://registry.npmjs.org/hammerjs/2.0.8
>>> npm http GET https://registry.npmjs.org/monologue.js/0.3.5
>>> npm http GET https://registry.npmjs.org/mout/1.0.0
>>> npm http GET https://registry.npmjs.org/normalize.css/4.2.0
>>> npm http GET https://registry.npmjs.org/paraviewweb/2.0.6
>>> npm http GET https://registry.npmjs.org/react/15.3.0
>>> npm http GET https://registry.npmjs.org/react-dom/15.3.0
>>> npm http GET https://registry.npmjs.org/react-redux/4.4.5
>>> npm http GET https://registry.npmjs.org/redux/3.5.2
>>> npm http GET https://registry.npmjs.org/reselect/2.5.3
>>> npm http GET https://registry.npmjs.org/kw-web-suite/2.1.0
>>> npm http GET https://registry.npmjs.org/kw-doc/1.0.13
>>>
>>> npm ERR! Error: failed to fetch from registry: commander/2.9.0
>>> npm ERR! at /usr/share/npm/lib/utils/npm-r
>>> egistry-client/get.js:139:12
>>> npm ERR! at cb (/usr/share/npm/lib/utils/npm-
>>> registry-client/request.js:31:9)
>>> npm ERR! at Request._callback (/usr/share/npm/lib/utils/npm-
>>> registry-client/request.js:136:18)
>>> npm ERR! at Request.callback (/usr/lib/nodejs/request/main.
>>> js:119:22)
>>> npm ERR! at Request. (/usr/lib/nodejs/request/main.
>>> js:212:58)
>>> npm ERR! at Request.emit (events.js:88:20)
>>> npm ERR! at ClientRequest. (/usr/lib/nodejs/request/main.
>>> js:412:12)
>>> npm ERR! at ClientRequest.emit (events.js:67:17)
>>> npm ERR! at HTTPParser.onIncoming (http.js:1261:11)
>>> npm ERR! at HTTPParser.onHeadersComplete (http.js:102:31)
>>> npm ERR! You may report this log at:
>>> npm ERR! <http://bugs.debian.org/npm>
>>> npm ERR! or use
>>> npm ERR! reportbug --attach /home/ffan/packages/ParaView_V
>>> isualizer/visualizer/npm-debug.log npm
>>> npm ERR!
>>> npm ERR! System Linux 3.2.0-105-generic
>>> npm ERR! command "node" "/usr/bin/npm" "install"
>>> npm ERR! cwd /home/ffan/packages/ParaView_Visualizer/visualizer
>>> npm ERR! node -v v0.6.12
>>> npm ERR! npm -v 1.1.4
>>> npm ERR! message failed to fetch from registry: commander/2.9.0
>>> npm ERR!
>>> npm ERR! Additional logging details can be found in:
>>> npm ERR! /home/ffan/packages/ParaView_V
>>> isualizer/visualizer/npm-debug.log
>>> npm not ok
>>>
>>>
>>> On Thu, Aug 11, 2016 at 7:17 PM, Sebastien Jourdain <
>>> sebastien.jourd...@kitware.com> wrote:
>>>
>>>> You seem to have a very old node and npm.
>>>>
>>>> The npm package is here: https://www.npmjs.com/package/pvw-visualizer
>

Re: [Paraview] ParaView over the internet

2016-08-25 Thread Sebastien Jourdain
http://www.paraview.org/download/

On Thu, Aug 25, 2016 at 8:31 AM, Sebastien Jourdain <
sebastien.jourd...@kitware.com> wrote:

> It is part of the paraview distribution.
>
> start it via pvpython.
>
> On Wed, Aug 24, 2016 at 6:46 PM, Fa-Gung Fan <fag...@gmail.com> wrote:
>
>> Hi Sebastien,
>>
>> I still have the failed to fetch problem (below).  Is Ubuntu 12.04 (Linux
>> 3.2.0-105-generic) too old?  You said there is an older version of
>> Visualizer provided along with ParaView binaries.  Can you please point me
>> to the location?  I could not find it in http://kitware.github.io/parav
>> iewweb/applications/ or http://kitware.github.io/parav
>> iewweb/applications/. Thanks.
>>
>> - ffan
>>
>> ffan@caelinux2013-VirtualBox:~/packages/ParaView_Visualizer/visualizer$
>> npm install
>> npm http GET https://registry.npmjs.org/commander/2.9.0
>> npm http GET https://registry.npmjs.org/open/0.0.5
>> npm http GET https://registry.npmjs.org/shelljs/0.7.3
>> npm http GET https://registry.npmjs.org/ws/0.8.1
>> npm http GET https://registry.npmjs.org/font-awesome/4.6.3
>> npm http GET https://registry.npmjs.org/gl-matrix/2.3.2
>> npm http GET https://registry.npmjs.org/hammerjs/2.0.8
>> npm http GET https://registry.npmjs.org/monologue.js/0.3.5
>> npm http GET https://registry.npmjs.org/mout/1.0.0
>> npm http GET https://registry.npmjs.org/normalize.css/4.2.0
>> npm http GET https://registry.npmjs.org/paraviewweb/2.0.6
>> npm http GET https://registry.npmjs.org/react/15.3.0
>> npm http GET https://registry.npmjs.org/react-dom/15.3.0
>> npm http GET https://registry.npmjs.org/react-redux/4.4.5
>> npm http GET https://registry.npmjs.org/redux/3.5.2
>> npm http GET https://registry.npmjs.org/reselect/2.5.3
>> npm http GET https://registry.npmjs.org/kw-web-suite/2.1.0
>> npm http GET https://registry.npmjs.org/kw-doc/1.0.13
>>
>> npm ERR! Error: failed to fetch from registry: commander/2.9.0
>> npm ERR! at /usr/share/npm/lib/utils/npm-r
>> egistry-client/get.js:139:12
>> npm ERR! at cb (/usr/share/npm/lib/utils/npm-
>> registry-client/request.js:31:9)
>> npm ERR! at Request._callback (/usr/share/npm/lib/utils/npm-
>> registry-client/request.js:136:18)
>> npm ERR! at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
>> npm ERR! at Request. (/usr/lib/nodejs/request/main.
>> js:212:58)
>> npm ERR! at Request.emit (events.js:88:20)
>> npm ERR! at ClientRequest. (/usr/lib/nodejs/request/main.
>> js:412:12)
>> npm ERR! at ClientRequest.emit (events.js:67:17)
>> npm ERR! at HTTPParser.onIncoming (http.js:1261:11)
>> npm ERR! at HTTPParser.onHeadersComplete (http.js:102:31)
>> npm ERR! You may report this log at:
>> npm ERR! <http://bugs.debian.org/npm>
>> npm ERR! or use
>> npm ERR! reportbug --attach /home/ffan/packages/ParaView_V
>> isualizer/visualizer/npm-debug.log npm
>> npm ERR!
>> npm ERR! System Linux 3.2.0-105-generic
>> npm ERR! command "node" "/usr/bin/npm" "install"
>> npm ERR! cwd /home/ffan/packages/ParaView_Visualizer/visualizer
>> npm ERR! node -v v0.6.12
>> npm ERR! npm -v 1.1.4
>> npm ERR! message failed to fetch from registry: commander/2.9.0
>> npm ERR!
>> npm ERR! Additional logging details can be found in:
>> npm ERR! /home/ffan/packages/ParaView_Visualizer/visualizer/npm-debug
>> .log
>> npm not ok
>>
>>
>> On Thu, Aug 11, 2016 at 7:17 PM, Sebastien Jourdain <
>> sebastien.jourd...@kitware.com> wrote:
>>
>>> You seem to have a very old node and npm.
>>>
>>> The npm package is here: https://www.npmjs.com/package/pvw-visualizer
>>>
>>> Maybe the service was down?
>>>
>>> On Thu, Aug 11, 2016 at 7:02 PM, Fa-Gung Fan <fag...@gmail.com> wrote:
>>>
>>>> Thank you Sebastien.
>>>>
>>>> Following the installation instruction, I have:
>>>>
>>>> ffan@caelinux2013-VirtualBox:~$ npm install -g pvw-visualizer
>>>> npm http GET https://registry.npmjs.org/pvw-visualizer
>>>>
>>>> npm ERR! Error: failed to fetch from registry: pvw-visualizer
>>>> npm ERR! at /usr/share/npm/lib/utils/npm-r
>>>> egistry-client/get.js:139:12
>>>> npm ERR! at cb (/usr/share/npm/lib/utils/npm-
>>>> registry-client/request.js:31:9)
>>>> npm ERR! at Request._callback (/usr/share/npm/lib/utils/npm-
>>>> registry-client/request.js:136:18)
>>

Re: [Paraview] Paraview Web with SSL

2016-08-25 Thread Sebastien Jourdain
Thanks Daniel,

the documentation explain how to do it in a slightly more secure way with
groups and so on... ;-)

On Thu, Aug 25, 2016 at 1:20 AM, Daniel Zuidinga <i...@seoaachen.de> wrote:

> I allowed read/write permissions for proxy.txt for all. Now it works!
> Thank you very much. I hope I can contribute to paraview web when I am more
> into it.
>
>
> Am 25.08.2016 um 01:19 schrieb Sebastien Jourdain:
>
> Looking at your system log you may have some hints on what is going wrong.
> (Still leaning toward file system security issue)
>
> The sessionId could still be sent back but if the launcher can not write
> that file, then apache could not figure out its mapping.
>
> What linux version are you running it on?
>
>
> On Wed, Aug 24, 2016 at 4:12 PM, Daniel Zuidinga <i...@seoaachen.de>
> wrote:
>
>> yes that file has contents. otherwise the sessionID also wouldn't be send
>> back?
>>
>> any ideas how to fix the ws communication?
>>
>>
>> Am 24.08.2016 um 23:44 schrieb Sebastien Jourdain:
>>
>> Yes it seems the ws forwarding is not working.
>>
>> if you cat that file you should see some content with that id and a
>> host/port that apache should use to connect to the server that is running
>> paraview.
>>
>> Otherwise the documentation (link that I previously gave) explain how to
>> use unix group and setup the appropriate rights to that file so apache can
>> read while the launcher can write.
>>
>> On Wed, Aug 24, 2016 at 3:01 PM, Daniel Zuidinga <i...@seoaachen.de>
>> wrote:
>>
>>> how can I check?
>>>
>>> The sessionID is sent to the client. So as far as I understand the http
>>> requests work, but not the ws?
>>>
>>>
>>>
>>> Am 24.08.2016 um 22:52 schrieb Sebastien Jourdain:
>>>
>>> Are you sure apache has the right to read the /home/daniel/proxy.txt
>>> while the launcher is writting it?
>>>
>>> Do you see some content that match your sessionId within that file?
>>>
>>> On Wed, Aug 24, 2016 at 1:57 PM, Daniel Zuidinga <i...@seoaachen.de>
>>> wrote:
>>>
>>>>
>>>> I changed sessionManagerURL in my html file to
>>>> vtkWeb.properties.sessionManagerURL instead of
>>>> http://localhost:8080/paraview. Now I get in firefox:
>>>>
>>>> Use of getPreventDefault() is deprecated.  Use defaultPrevented
>>>> instead. jquery-1.8.3.min.js:2:0
>>>> GET
>>>> http://localhost/proxy [HTTP/1.1 400 Bad Request 16ms]
>>>> null Visualizer:42:13
>>>> Firefox can't establish a connection to the server at
>>>> ws://localhost/proxy?sessionId=7d12745c-6a34-11e6-a5dc-0016d4e2bc28.
>>>> autobahn.min.js:114:0
>>>> GET
>>>> http://localhost/proxy [HTTP/1.1 400 Bad Request 2ms]
>>>> null
>>>>
>>>> ...I think one more thing is needed.
>>>>
>>>>
>>>>
>>>> Am 24.08.2016 um 21:51 schrieb Daniel Zuidinga:
>>>>
>>>> I had wrong paths in my launcher.config properties.
>>>> Now the request gets through and the vtk window opens. But I have still
>>>> the ws error. Firefox console:
>>>>
>>>> Firefox can't establish a connection to the server at ws://localhost/ws.
>>>> autobahn.min.js:114:0
>>>> null Visualizer:42:13
>>>> Use of getPreventDefault() is deprecated.  Use defaultPrevented
>>>> instead. jquery-1.8.3.min.js:2:0
>>>> No launcher found.  Attempting to connect using the direct WS url.
>>>> vtkweb-all.js:4456:19
>>>>
>>>> --- vtk window opens, then:
>>>>
>>>> Cross-Origin Request Blocked: The Same Origin Policy disallows reading
>>>> the remote resource at http://localhost:8080/paraview. (Reason: CORS
>>>> header 'Access-Control-Allow-Origin' missing). 
>>>> GET
>>>> http://localhost/ws [HTTP/1.1 404 Not Found 2ms]
>>>> null Visualizer:42:13
>>>> Firefox can't establish a connection to the server at ws://localhost/ws
>>>> .
>>>>
>>>>
>>>> Am 24.08.2016 um 19:18 schrieb Sebastien Jourdain:
>>>>
>>>> Actually the hostname might be an issue if you have several network
>>>> card.
>>>> Can you try to use the computer IP? Or '0.0.0.0' for the launcher if
>>>> that work?
>>>>
>>>> Otherwise I did not spotted any issue in your config.
>&

Re: [Paraview] ParaView over the internet

2016-08-25 Thread Sebastien Jourdain
It is part of the paraview distribution.

start it via pvpython.

On Wed, Aug 24, 2016 at 6:46 PM, Fa-Gung Fan <fag...@gmail.com> wrote:

> Hi Sebastien,
>
> I still have the failed to fetch problem (below).  Is Ubuntu 12.04 (Linux
> 3.2.0-105-generic) too old?  You said there is an older version of
> Visualizer provided along with ParaView binaries.  Can you please point me
> to the location?  I could not find it in http://kitware.github.io/parav
> iewweb/applications/ or http://kitware.github.io/paraviewweb/applications/.
> Thanks.
>
> - ffan
>
> ffan@caelinux2013-VirtualBox:~/packages/ParaView_Visualizer/visualizer$
> npm install
> npm http GET https://registry.npmjs.org/commander/2.9.0
> npm http GET https://registry.npmjs.org/open/0.0.5
> npm http GET https://registry.npmjs.org/shelljs/0.7.3
> npm http GET https://registry.npmjs.org/ws/0.8.1
> npm http GET https://registry.npmjs.org/font-awesome/4.6.3
> npm http GET https://registry.npmjs.org/gl-matrix/2.3.2
> npm http GET https://registry.npmjs.org/hammerjs/2.0.8
> npm http GET https://registry.npmjs.org/monologue.js/0.3.5
> npm http GET https://registry.npmjs.org/mout/1.0.0
> npm http GET https://registry.npmjs.org/normalize.css/4.2.0
> npm http GET https://registry.npmjs.org/paraviewweb/2.0.6
> npm http GET https://registry.npmjs.org/react/15.3.0
> npm http GET https://registry.npmjs.org/react-dom/15.3.0
> npm http GET https://registry.npmjs.org/react-redux/4.4.5
> npm http GET https://registry.npmjs.org/redux/3.5.2
> npm http GET https://registry.npmjs.org/reselect/2.5.3
> npm http GET https://registry.npmjs.org/kw-web-suite/2.1.0
> npm http GET https://registry.npmjs.org/kw-doc/1.0.13
>
> npm ERR! Error: failed to fetch from registry: commander/2.9.0
> npm ERR! at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
> npm ERR! at cb (/usr/share/npm/lib/utils/npm-
> registry-client/request.js:31:9)
> npm ERR! at Request._callback (/usr/share/npm/lib/utils/npm-
> registry-client/request.js:136:18)
> npm ERR! at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
> npm ERR! at Request. (/usr/lib/nodejs/request/main.
> js:212:58)
> npm ERR! at Request.emit (events.js:88:20)
> npm ERR! at ClientRequest. (/usr/lib/nodejs/request/main.
> js:412:12)
> npm ERR! at ClientRequest.emit (events.js:67:17)
> npm ERR! at HTTPParser.onIncoming (http.js:1261:11)
> npm ERR! at HTTPParser.onHeadersComplete (http.js:102:31)
> npm ERR! You may report this log at:
> npm ERR! <http://bugs.debian.org/npm>
> npm ERR! or use
> npm ERR! reportbug --attach /home/ffan/packages/ParaView_V
> isualizer/visualizer/npm-debug.log npm
> npm ERR!
> npm ERR! System Linux 3.2.0-105-generic
> npm ERR! command "node" "/usr/bin/npm" "install"
> npm ERR! cwd /home/ffan/packages/ParaView_Visualizer/visualizer
> npm ERR! node -v v0.6.12
> npm ERR! npm -v 1.1.4
> npm ERR! message failed to fetch from registry: commander/2.9.0
> npm ERR!
> npm ERR! Additional logging details can be found in:
> npm ERR! /home/ffan/packages/ParaView_Visualizer/visualizer/npm-debug
> .log
> npm not ok
>
>
> On Thu, Aug 11, 2016 at 7:17 PM, Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> You seem to have a very old node and npm.
>>
>> The npm package is here: https://www.npmjs.com/package/pvw-visualizer
>>
>> Maybe the service was down?
>>
>> On Thu, Aug 11, 2016 at 7:02 PM, Fa-Gung Fan <fag...@gmail.com> wrote:
>>
>>> Thank you Sebastien.
>>>
>>> Following the installation instruction, I have:
>>>
>>> ffan@caelinux2013-VirtualBox:~$ npm install -g pvw-visualizer
>>> npm http GET https://registry.npmjs.org/pvw-visualizer
>>>
>>> npm ERR! Error: failed to fetch from registry: pvw-visualizer
>>> npm ERR! at /usr/share/npm/lib/utils/npm-r
>>> egistry-client/get.js:139:12
>>> npm ERR! at cb (/usr/share/npm/lib/utils/npm-
>>> registry-client/request.js:31:9)
>>> npm ERR! at Request._callback (/usr/share/npm/lib/utils/npm-
>>> registry-client/request.js:136:18)
>>> npm ERR! at Request.callback (/usr/lib/nodejs/request/main.
>>> js:119:22)
>>> npm ERR! at Request. (/usr/lib/nodejs/request/main.
>>> js:212:58)
>>> npm ERR! at Request.emit (events.js:88:20)
>>> npm ERR! at ClientRequest. (/usr/lib/nodejs/request/main.
>>> js:412:12)
>>> npm ERR! at ClientRequest.emit (events.js:67:17)
>>> npm ERR! at HTTPParser.onIncoming (http.js:1261:11)
>>> npm ERR! at HTTPParser.onHeadersComplete (h

Re: [Paraview] Paraview Web with SSL

2016-08-24 Thread Sebastien Jourdain
Looking at your system log you may have some hints on what is going wrong.
(Still leaning toward file system security issue)

The sessionId could still be sent back but if the launcher can not write
that file, then apache could not figure out its mapping.

What linux version are you running it on?


On Wed, Aug 24, 2016 at 4:12 PM, Daniel Zuidinga <i...@seoaachen.de> wrote:

> yes that file has contents. otherwise the sessionID also wouldn't be send
> back?
>
> any ideas how to fix the ws communication?
>
>
> Am 24.08.2016 um 23:44 schrieb Sebastien Jourdain:
>
> Yes it seems the ws forwarding is not working.
>
> if you cat that file you should see some content with that id and a
> host/port that apache should use to connect to the server that is running
> paraview.
>
> Otherwise the documentation (link that I previously gave) explain how to
> use unix group and setup the appropriate rights to that file so apache can
> read while the launcher can write.
>
> On Wed, Aug 24, 2016 at 3:01 PM, Daniel Zuidinga <i...@seoaachen.de>
> wrote:
>
>> how can I check?
>>
>> The sessionID is sent to the client. So as far as I understand the http
>> requests work, but not the ws?
>>
>>
>>
>> Am 24.08.2016 um 22:52 schrieb Sebastien Jourdain:
>>
>> Are you sure apache has the right to read the /home/daniel/proxy.txt
>> while the launcher is writting it?
>>
>> Do you see some content that match your sessionId within that file?
>>
>> On Wed, Aug 24, 2016 at 1:57 PM, Daniel Zuidinga <i...@seoaachen.de>
>> wrote:
>>
>>>
>>> I changed sessionManagerURL in my html file to
>>> vtkWeb.properties.sessionManagerURL instead of
>>> http://localhost:8080/paraview. Now I get in firefox:
>>>
>>> Use of getPreventDefault() is deprecated.  Use defaultPrevented instead.
>>> jquery-1.8.3.min.js:2:0
>>> GET
>>> http://localhost/proxy [HTTP/1.1 400 Bad Request 16ms]
>>> null Visualizer:42:13
>>> Firefox can't establish a connection to the server at
>>> ws://localhost/proxy?sessionId=7d12745c-6a34-11e6-a5dc-0016d4e2bc28.
>>> autobahn.min.js:114:0
>>> GET
>>> http://localhost/proxy [HTTP/1.1 400 Bad Request 2ms]
>>> null
>>>
>>> ...I think one more thing is needed.
>>>
>>>
>>>
>>> Am 24.08.2016 um 21:51 schrieb Daniel Zuidinga:
>>>
>>> I had wrong paths in my launcher.config properties.
>>> Now the request gets through and the vtk window opens. But I have still
>>> the ws error. Firefox console:
>>>
>>> Firefox can't establish a connection to the server at ws://localhost/ws.
>>> autobahn.min.js:114:0
>>> null Visualizer:42:13
>>> Use of getPreventDefault() is deprecated.  Use defaultPrevented instead.
>>> jquery-1.8.3.min.js:2:0
>>> No launcher found.  Attempting to connect using the direct WS url.
>>> vtkweb-all.js:4456:19
>>>
>>> --- vtk window opens, then:
>>>
>>> Cross-Origin Request Blocked: The Same Origin Policy disallows reading
>>> the remote resource at http://localhost:8080/paraview. (Reason: CORS
>>> header 'Access-Control-Allow-Origin' missing). 
>>> GET
>>> http://localhost/ws [HTTP/1.1 404 Not Found 2ms]
>>> null Visualizer:42:13
>>> Firefox can't establish a connection to the server at ws://localhost/ws.
>>>
>>>
>>> Am 24.08.2016 um 19:18 schrieb Sebastien Jourdain:
>>>
>>> Actually the hostname might be an issue if you have several network
>>> card.
>>> Can you try to use the computer IP? Or '0.0.0.0' for the launcher if
>>> that work?
>>>
>>> Otherwise I did not spotted any issue in your config.
>>>
>>> On Wed, Aug 24, 2016 at 11:14 AM, Daniel Zuidinga <i...@seoaachen.de>
>>> wrote:
>>>
>>>> - apache 2.4.12
>>>> - modules are enabled
>>>> - launcher.py launches without error, resrouces and apps section are in
>>>> the config file as described in the documentation
>>>> are all ports and hostnames right in my configuration files? apache is
>>>> localhost and paraview also
>>>>
>>>>
>>>> Am 24.08.2016 um 16:22 schrieb Sebastien Jourdain:
>>>>
>>>> Hi Daniel,
>>>>
>>>> Which version of Apache are you running?
>>>>
>>>> Did you enabled all the modules?
>>>>
>>>> $ sudo a2enmod vhost_alias
>>>> $ sudo a2enmod proxy

Re: [Paraview] Paraview Web with SSL

2016-08-24 Thread Sebastien Jourdain
Yes it seems the ws forwarding is not working.

if you cat that file you should see some content with that id and a
host/port that apache should use to connect to the server that is running
paraview.

Otherwise the documentation (link that I previously gave) explain how to
use unix group and setup the appropriate rights to that file so apache can
read while the launcher can write.

On Wed, Aug 24, 2016 at 3:01 PM, Daniel Zuidinga <i...@seoaachen.de> wrote:

> how can I check?
>
> The sessionID is sent to the client. So as far as I understand the http
> requests work, but not the ws?
>
>
>
> Am 24.08.2016 um 22:52 schrieb Sebastien Jourdain:
>
> Are you sure apache has the right to read the /home/daniel/proxy.txt
> while the launcher is writting it?
>
> Do you see some content that match your sessionId within that file?
>
> On Wed, Aug 24, 2016 at 1:57 PM, Daniel Zuidinga <i...@seoaachen.de>
> wrote:
>
>>
>> I changed sessionManagerURL in my html file to
>> vtkWeb.properties.sessionManagerURL instead of
>> http://localhost:8080/paraview. Now I get in firefox:
>>
>> Use of getPreventDefault() is deprecated.  Use defaultPrevented instead.
>> jquery-1.8.3.min.js:2:0
>> GET
>> http://localhost/proxy [HTTP/1.1 400 Bad Request 16ms]
>> null Visualizer:42:13
>> Firefox can't establish a connection to the server at
>> ws://localhost/proxy?sessionId=7d12745c-6a34-11e6-a5dc-0016d4e2bc28.
>> autobahn.min.js:114:0
>> GET
>> http://localhost/proxy [HTTP/1.1 400 Bad Request 2ms]
>> null
>>
>> ...I think one more thing is needed.
>>
>>
>>
>> Am 24.08.2016 um 21:51 schrieb Daniel Zuidinga:
>>
>> I had wrong paths in my launcher.config properties.
>> Now the request gets through and the vtk window opens. But I have still
>> the ws error. Firefox console:
>>
>> Firefox can't establish a connection to the server at ws://localhost/ws.
>> autobahn.min.js:114:0
>> null Visualizer:42:13
>> Use of getPreventDefault() is deprecated.  Use defaultPrevented instead.
>> jquery-1.8.3.min.js:2:0
>> No launcher found.  Attempting to connect using the direct WS url.
>> vtkweb-all.js:4456:19
>>
>> --- vtk window opens, then:
>>
>> Cross-Origin Request Blocked: The Same Origin Policy disallows reading
>> the remote resource at http://localhost:8080/paraview. (Reason: CORS
>> header 'Access-Control-Allow-Origin' missing). 
>> GET
>> http://localhost/ws [HTTP/1.1 404 Not Found 2ms]
>> null Visualizer:42:13
>> Firefox can't establish a connection to the server at ws://localhost/ws.
>>
>>
>> Am 24.08.2016 um 19:18 schrieb Sebastien Jourdain:
>>
>> Actually the hostname might be an issue if you have several network card.
>> Can you try to use the computer IP? Or '0.0.0.0' for the launcher if that
>> work?
>>
>> Otherwise I did not spotted any issue in your config.
>>
>> On Wed, Aug 24, 2016 at 11:14 AM, Daniel Zuidinga <i...@seoaachen.de>
>> wrote:
>>
>>> - apache 2.4.12
>>> - modules are enabled
>>> - launcher.py launches without error, resrouces and apps section are in
>>> the config file as described in the documentation
>>> are all ports and hostnames right in my configuration files? apache is
>>> localhost and paraview also
>>>
>>>
>>> Am 24.08.2016 um 16:22 schrieb Sebastien Jourdain:
>>>
>>> Hi Daniel,
>>>
>>> Which version of Apache are you running?
>>>
>>> Did you enabled all the modules?
>>>
>>> $ sudo a2enmod vhost_alias
>>> $ sudo a2enmod proxy
>>> $ sudo a2enmod proxy_http
>>> $ sudo a2enmod proxy_wstunnel
>>> $ sudo a2enmod rewrite
>>>
>>>
>>> For the launcher configuration, do you have a proper "resources" and
>>> "apps" section?
>>>
>>> I'm guessing you are looking at the following documentation pages?
>>>
>>> - https://kitware.github.io/paraviewweb/docs/guides/apache_fro
>>> nt_end.html
>>> - https://kitware.github.io/paraviewweb/docs/guides/python_launcher.html
>>>
>>> Once you have the forwarding of the launcher request working, the next
>>> part will be the forwarding of the ws. But we can talk about it when and if
>>> you run into issue about it.
>>>
>>> Seb
>>>
>>> On Wed, Aug 24, 2016 at 2:22 AM, Daniel Zuidinga <i...@seoaachen.de>
>>> wrote:
>>>
>>>> I tried to run the launcher as described in the docs. But I am still

Re: [Paraview] Paraview Web with SSL

2016-08-24 Thread Sebastien Jourdain
Are you sure apache has the right to read the /home/daniel/proxy.txt while
the launcher is writting it?

Do you see some content that match your sessionId within that file?

On Wed, Aug 24, 2016 at 1:57 PM, Daniel Zuidinga <i...@seoaachen.de> wrote:

>
> I changed sessionManagerURL in my html file to 
> vtkWeb.properties.sessionManagerURL
> instead of http://localhost:8080/paraview. Now I get in firefox:
>
> Use of getPreventDefault() is deprecated.  Use defaultPrevented instead.
> jquery-1.8.3.min.js:2:0
> GET
> http://localhost/proxy [HTTP/1.1 400 Bad Request 16ms]
> null Visualizer:42:13
> Firefox can't establish a connection to the server at
> ws://localhost/proxy?sessionId=7d12745c-6a34-11e6-a5dc-0016d4e2bc28.
> autobahn.min.js:114:0
> GET
> http://localhost/proxy [HTTP/1.1 400 Bad Request 2ms]
> null
>
> ...I think one more thing is needed.
>
>
>
> Am 24.08.2016 um 21:51 schrieb Daniel Zuidinga:
>
> I had wrong paths in my launcher.config properties.
> Now the request gets through and the vtk window opens. But I have still
> the ws error. Firefox console:
>
> Firefox can't establish a connection to the server at ws://localhost/ws.
> autobahn.min.js:114:0
> null Visualizer:42:13
> Use of getPreventDefault() is deprecated.  Use defaultPrevented instead.
> jquery-1.8.3.min.js:2:0
> No launcher found.  Attempting to connect using the direct WS url.
> vtkweb-all.js:4456:19
>
> --- vtk window opens, then:
>
> Cross-Origin Request Blocked: The Same Origin Policy disallows reading the
> remote resource at http://localhost:8080/paraview. (Reason: CORS header
> 'Access-Control-Allow-Origin' missing). 
> GET
> http://localhost/ws [HTTP/1.1 404 Not Found 2ms]
> null Visualizer:42:13
> Firefox can't establish a connection to the server at ws://localhost/ws.
>
>
> Am 24.08.2016 um 19:18 schrieb Sebastien Jourdain:
>
> Actually the hostname might be an issue if you have several network card.
> Can you try to use the computer IP? Or '0.0.0.0' for the launcher if that
> work?
>
> Otherwise I did not spotted any issue in your config.
>
> On Wed, Aug 24, 2016 at 11:14 AM, Daniel Zuidinga <i...@seoaachen.de>
> wrote:
>
>> - apache 2.4.12
>> - modules are enabled
>> - launcher.py launches without error, resrouces and apps section are in
>> the config file as described in the documentation
>> are all ports and hostnames right in my configuration files? apache is
>> localhost and paraview also
>>
>>
>> Am 24.08.2016 um 16:22 schrieb Sebastien Jourdain:
>>
>> Hi Daniel,
>>
>> Which version of Apache are you running?
>>
>> Did you enabled all the modules?
>>
>> $ sudo a2enmod vhost_alias
>> $ sudo a2enmod proxy
>> $ sudo a2enmod proxy_http
>> $ sudo a2enmod proxy_wstunnel
>> $ sudo a2enmod rewrite
>>
>>
>> For the launcher configuration, do you have a proper "resources" and
>> "apps" section?
>>
>> I'm guessing you are looking at the following documentation pages?
>>
>> - https://kitware.github.io/paraviewweb/docs/guides/apache_front_end.html
>> - https://kitware.github.io/paraviewweb/docs/guides/python_launcher.html
>>
>> Once you have the forwarding of the launcher request working, the next
>> part will be the forwarding of the ws. But we can talk about it when and if
>> you run into issue about it.
>>
>> Seb
>>
>> On Wed, Aug 24, 2016 at 2:22 AM, Daniel Zuidinga <i...@seoaachen.de>
>> wrote:
>>
>>> I tried to run the launcher as described in the docs. But I am still
>>> getting errors when running http://localhost/apps/Visualizer/
>>>
>>> Firefox console:
>>>
>>> ---
>>>
>>> 1. when setting sessionManagerURL in html set to
>>> vtkWeb.properties.sessionManagerURL:
>>>
>>> POST
>>> XHR
>>> http://localhost/paraview/ [HTTP/1.1 503 Service Unavailable 48ms]
>>> Object { error: "The process did not properly start.…" } Visualizer:42:13
>>>
>>>
>>> 2. when setting sessionManagerURL in html to
>>> http://localhost:8080/paraview:
>>>
>>> Firefox can't establish a connection to the server at ws://localhost/ws.
>>> autobahn.min.js:114:0
>>> null Visualizer:42:13
>>> No launcher found.  Attempting to connect using the direct WS url.
>>> vtkweb-all.js:4456:19
>>> Use of getPreventDefault() is deprecated.  Use defaultPrevented instead.
>>> jquery-1.8.3.min.js:2:0
>>> Cross-Origin Request Blocked: The Same Origin Po

Re: [Paraview] Paraview Web with SSL

2016-08-24 Thread Sebastien Jourdain
Actually the hostname might be an issue if you have several network card.
Can you try to use the computer IP? Or '0.0.0.0' for the launcher if that
work?

Otherwise I did not spotted any issue in your config.

On Wed, Aug 24, 2016 at 11:14 AM, Daniel Zuidinga <i...@seoaachen.de> wrote:

> - apache 2.4.12
> - modules are enabled
> - launcher.py launches without error, resrouces and apps section are in
> the config file as described in the documentation
> are all ports and hostnames right in my configuration files? apache is
> localhost and paraview also
>
>
> Am 24.08.2016 um 16:22 schrieb Sebastien Jourdain:
>
> Hi Daniel,
>
> Which version of Apache are you running?
>
> Did you enabled all the modules?
>
> $ sudo a2enmod vhost_alias
> $ sudo a2enmod proxy
> $ sudo a2enmod proxy_http
> $ sudo a2enmod proxy_wstunnel
> $ sudo a2enmod rewrite
>
>
> For the launcher configuration, do you have a proper "resources" and
> "apps" section?
>
> I'm guessing you are looking at the following documentation pages?
>
> - https://kitware.github.io/paraviewweb/docs/guides/apache_front_end.html
> - https://kitware.github.io/paraviewweb/docs/guides/python_launcher.html
>
> Once you have the forwarding of the launcher request working, the next
> part will be the forwarding of the ws. But we can talk about it when and if
> you run into issue about it.
>
> Seb
>
> On Wed, Aug 24, 2016 at 2:22 AM, Daniel Zuidinga <i...@seoaachen.de>
> wrote:
>
>> I tried to run the launcher as described in the docs. But I am still
>> getting errors when running http://localhost/apps/Visualizer/
>>
>> Firefox console:
>>
>> ---
>>
>> 1. when setting sessionManagerURL in html set to
>> vtkWeb.properties.sessionManagerURL:
>>
>> POST
>> XHR
>> http://localhost/paraview/ [HTTP/1.1 503 Service Unavailable 48ms]
>> Object { error: "The process did not properly start.…" } Visualizer:42:13
>>
>>
>> 2. when setting sessionManagerURL in html to
>> http://localhost:8080/paraview:
>>
>> Firefox can't establish a connection to the server at ws://localhost/ws.
>> autobahn.min.js:114:0
>> null Visualizer:42:13
>> No launcher found.  Attempting to connect using the direct WS url.
>> vtkweb-all.js:4456:19
>> Use of getPreventDefault() is deprecated.  Use defaultPrevented instead.
>> jquery-1.8.3.min.js:2:0
>> Cross-Origin Request Blocked: The Same Origin Policy disallows reading
>> the remote resource at http://localhost:8080/paraview. (Reason: CORS
>> header 'Access-Control-Allow-Origin' missing). 
>> GET
>> http://localhost/ws [HTTP/1.1 404 Not Found 12ms]
>> null
>>
>>
>> So the launcher can't start the pv webserver? But running
>> http://localhost:8080/paraview/1 in browser works but says: {"error":
>> "No session with id: 1"}
>>
>>
>> My apache config:
>>
>> -
>>
>> 
>> ServerName localhost
>> ServerAdmin i...@seoaachen.de
>> DocumentRoot /home/daniel/salome_meca/V2016
>> /prerequisites/Paraview-v501_EDF/share/paraview-5.0/www
>> ErrorLog "logs/pv-error_log"
>> CustomLog "logs/pv-access_log" common
>> ### The following commented lines could be useful when running
>> ### over https and wss:
>> # SSLEngine On
>> # SSLCertificateFile/etc/apache2/ssl/your_certificate.crt
>> # SSLCertificateKeyFile /etc/apache2/ssl/your_domain_key.key
>> # SSLCertificateChainFile /etc/apache2/ssl/DigiCertCA.crt
>> #
>> # 
>> #   SSLRequireSSL On
>> #   SSLVerifyClient optional
>> #   SSLVerifyDepth 1
>> #   SSLOptions +StdEnvVars +StrictRequire
>> # 
>> # Have Apache pass these requests to the launcher :9000
>> ProxyPass /paraview http://localhost:8080/paraview
>> # Turn on the rewrite engine
>> RewriteEngine On
>> # This is the path the mapping file Jetty creates
>> RewriteMap session-to-port txt:/home/daniel/proxy.txt
>> # This is the rewrite condition. Look for anything with a sessionId=
>> in the query part of the URL and capture the value to use below.
>> RewriteCond %{QUERY_STRING} ^sessionId=(.*)$ [NC]
>> # This does the rewrite using the mapping file and the sessionId
>> RewriteRule^/proxy.*$  ws://${session-to-port:%1}/ws  [P]
>> > 6/prerequisites/Paraview-v501_EDF/share/paraview-5.0/www">
>> Options Indexes FollowSym

Re: [Paraview] Paraview Web with SSL

2016-08-24 Thread Sebastien Jourdain
Hi Daniel,

Which version of Apache are you running?

Did you enabled all the modules?

$ sudo a2enmod vhost_alias
$ sudo a2enmod proxy
$ sudo a2enmod proxy_http
$ sudo a2enmod proxy_wstunnel
$ sudo a2enmod rewrite


For the launcher configuration, do you have a proper "resources" and "apps"
 section?

I'm guessing you are looking at the following documentation pages?

- https://kitware.github.io/paraviewweb/docs/guides/apache_front_end.html
- https://kitware.github.io/paraviewweb/docs/guides/python_launcher.html

Once you have the forwarding of the launcher request working, the next part
will be the forwarding of the ws. But we can talk about it when and if you
run into issue about it.

Seb

On Wed, Aug 24, 2016 at 2:22 AM, Daniel Zuidinga <i...@seoaachen.de> wrote:

> I tried to run the launcher as described in the docs. But I am still
> getting errors when running http://localhost/apps/Visualizer/
>
> Firefox console:
>
> ---
>
> 1. when setting sessionManagerURL in html set to vtkWeb.properties.
> sessionManagerURL:
>
> POST
> XHR
> http://localhost/paraview/ [HTTP/1.1 503 Service Unavailable 48ms]
> Object { error: "The process did not properly start.…" } Visualizer:42:13
>
>
> 2. when setting sessionManagerURL in html to
> http://localhost:8080/paraview:
>
> Firefox can't establish a connection to the server at ws://localhost/ws.
> autobahn.min.js:114:0
> null Visualizer:42:13
> No launcher found.  Attempting to connect using the direct WS url.
> vtkweb-all.js:4456:19
> Use of getPreventDefault() is deprecated.  Use defaultPrevented instead.
> jquery-1.8.3.min.js:2:0
> Cross-Origin Request Blocked: The Same Origin Policy disallows reading the
> remote resource at http://localhost:8080/paraview. (Reason: CORS header
> 'Access-Control-Allow-Origin' missing). 
> GET
> http://localhost/ws [HTTP/1.1 404 Not Found 12ms]
> null
>
>
> So the launcher can't start the pv webserver? But running
> http://localhost:8080/paraview/1 in browser works but says: {"error": "No
> session with id: 1"}
>
>
> My apache config:
>
> -
>
> 
> ServerName localhost
> ServerAdmin i...@seoaachen.de
> DocumentRoot /home/daniel/salome_meca/V2016/prerequisites/Paraview-
> v501_EDF/share/paraview-5.0/www
> ErrorLog "logs/pv-error_log"
> CustomLog "logs/pv-access_log" common
> ### The following commented lines could be useful when running
> ### over https and wss:
> # SSLEngine On
> # SSLCertificateFile/etc/apache2/ssl/your_certificate.crt
> # SSLCertificateKeyFile /etc/apache2/ssl/your_domain_key.key
> # SSLCertificateChainFile /etc/apache2/ssl/DigiCertCA.crt
> #
> # 
> #   SSLRequireSSL On
> #   SSLVerifyClient optional
> #   SSLVerifyDepth 1
> #   SSLOptions +StdEnvVars +StrictRequire
> # 
> # Have Apache pass these requests to the launcher :9000
> ProxyPass /paraview http://localhost:8080/paraview
> # Turn on the rewrite engine
> RewriteEngine On
> # This is the path the mapping file Jetty creates
> RewriteMap session-to-port txt:/home/daniel/proxy.txt
> # This is the rewrite condition. Look for anything with a sessionId=
> in the query part of the URL and capture the value to use below.
> RewriteCond %{QUERY_STRING} ^sessionId=(.*)$ [NC]
> # This does the rewrite using the mapping file and the sessionId
> RewriteRule^/proxy.*$  ws://${session-to-port:%1}/ws  [P]
>  v501_EDF/share/paraview-5.0/www">
> Options Indexes FollowSymLinks
> Order allow,deny
> Allow from all
> AllowOverride None
> Require all granted
> 
> 
>
>
>
> my launcher.json
>
> 
>
>  "configuration": {
> "host" : "localhost",
>
> "port" : 8080,
> "endpoint": "paraview",
> "content": "/.../www",
> "proxy_file" : "/home/daniel/proxy.txt",
>"sessionURL": "ws://localhost/proxy?sessionId=${id}",
>
> "timeout" : 25,
> "log_dir" : "/home/daniel",
>     "upload_dir" : "/home/daniel",
> "fields" : ["file", "host", "port", "updir"]
> },
>
>
> What am I doing wrong?
>
>
> Daniel Zuidinga
> Dipl.-Ing.
>
> SEO Aachen
> Passstr. 5
> 52070 Aachen
>
> Tel 

Re: [Paraview] Paraview Web with SSL

2016-08-22 Thread Sebastien Jourdain
Hi Daniel,

I want to use paraview web with SSL. As far as I understand I need apache
> as a proxy server for that? Or is it possible with pvpython?
>

It might be possible with pvpython, but I've never done it, I've always
used apache to rely on a single opened port and handle the encryption.


> I have my own launcher which opens pvpython with a different port for each
> user. Is this the right way? Will this work with ssl?
>

If pvpython directly support the wss connection, you can be good. Usually
the setup, that I do is that I have Apache serving only the port 443
(https) for both the static content and the (wss) websocket endpoint. And I
use a mapping file between the Websocket endpoint that get returned by my
launcher and the host/port I should connect to on the backend to establish
the link between the client and the actual ParaViewWeb server instance.

But that does not mean, that's the only way to do it and if you don't mind
having several port open, I don't see why it could not work.


> Concerning:
>
> https://kitware.github.io/visualizer/docs/
>
> The web visuailzer should work via npm installation? It does not work for
> me:
> C:\Users\danie\AppData\Roaming\npm\node_modules\pvw-visualiz
> er\bin\pvw-visualizer-cli.js:41
> var pvPythonExecs = find(paraview).filter(function(file) { return
> file.match(/pvpython$/) || file.match(/pvpython.exe$/); });
>^
>
> TypeError: find(...).filter is not a function
> at Object. (C:\Users\danie\AppData\Roamin
> g\npm\node_modules\pvw-visualizer\bin\pvw-visualizer-cli.js:41:36)
> at Module._compile (module.js:409:26)
> at Object.Module._extensions..js (module.js:416:10)
> at Module.load (module.js:343:32)
> at Function.Module._load (module.js:300:12)
> at Function.Module.runMain (module.js:441:10)
> at startup (node.js:139:18)
> at node.js:968:3
>

Well, I guess I haven't tried to run the new Visualizer server on a Windows
machine.
But with ParaView 5.2 (yet to be released), we should have a ParaViewWeb
back in the binaries. So we should make sure our Visualizer command line
tool work on that platform as well.
Although, the command line is more for beginners than anything else as it
only simplify the demo usage. In real word deployment, with a launcher, the
true pvpython command line should be used instead.

Here is an example of what you should see in a working environment:

$ Visualizer -d ~/Downloads/

===
| Execute:
| $ /Applications/paraview.app/Contents/bin/pvpython
|   -dr
|   /Users/seb/Documents/code/Web2/visualizer/server/pvw-visualizer.py
|   --content
|   /Users/seb/Documents/code/Web2/visualizer/dist
|   --port
|   8080
|   --data
|   /Users/seb/Downloads/
===

[...]

-- 
Daniel Zuidinga
Dipl.-Ing.

SEO Aachen
Passstr. 5
52070 Aachen

Tel   : 0241 / 450 912 67
E-Mail: i...@seoaachen.de
Web   : http://www.seoaachen.de (nur zum Teil aktuell)
Xing  : https://www.xing.com/profile/Daniel_Zuidinga

Bald online: Software Tools für Konstrukteure und Bauteilhersteller
http://www.engineeringonline.de

___
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensou
rce/opensource.html

Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] PV Web scrollwheel for zoom, wrong legend

2016-08-19 Thread Sebastien Jourdain
Ken,

we should not try to use  as it won't be possible to trigger it on OS
X as it will be understood as a "Right click" and will bring the popup menu.

But that's great to have that feature.

Seb

On Wed, Aug 17, 2016 at 7:38 PM, Ken Martin <ken.mar...@kitware.com> wrote:

> left mouse does work as zoom in vtk.js FWIW - Ken
>
> On Wed, Aug 17, 2016 at 7:32 PM, Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> vtk.js interaction does not currently implement zooming. So the current
>> behavior is expected.
>>
>> What are you trying to do with vtk.js and salome? vtk.js has not been
>> released yet and is a pure JavaScript/client library.
>>
>>
>>
>> On Wed, Aug 17, 2016 at 3:18 PM, Daniel Zuidinga <i...@seoaachen.de>
>> wrote:
>>
>>> shouldn't work scroll wheel in vtk.js? e.g. here
>>> https://kitware.github.io/vtk-js/examples/HttpSceneLoader.html
>>> I have to compile the whole sources? I use pv of salome meca. I hope it
>>> isn't to complicated and cpu intensive.
>>>
>>>
>>> Am 17.08.2016 um 22:32 schrieb Sebastien Jourdain:
>>>
>>> I guess ParaView is missing more code on the server side. ;-)
>>> This time, it will be in the C++.
>>>
>>>
>>> ${ParaView-src}/VTK/Web/Core/vtkWebApplication.cxx =>
>>> vtkPVWebApplication::HandleInteractionEvent
>>>
>>> vs
>>>
>>> ${ParaView-src}/Web/Core/vtkPVWebApplication.cxx =>
>>> vtkWebApplication::HandleInteractionEvent
>>>
>>> The VTK one has:
>>>
>>>   // Handle scroll action if any
>>>   if(event->GetScroll()) {
>>> iren->SetEventInformation(0, 0, ctrlKey, shiftKey,
>>> event->GetKeyCode(), 0);
>>> iren->MouseMoveEvent();
>>> iren->RightButtonPressEvent();
>>> iren->SetEventInformation(0, event->GetScroll()*10, ctrlKey,
>>> shiftKey, event->GetKeyCode(), 0);
>>> iren->MouseMoveEvent();
>>> iren->RightButtonReleaseEvent();
>>> this->Internals->ImageCache[view].NeedsRender = true;
>>> return true;
>>>   }
>>>
>>> If you got it working, could you submit a pull request on our gitlab and
>>> assign it to me so those fix could be part of PV 5.2?
>>>
>>> Thanks,
>>>
>>> Seb
>>>
>>> On Wed, Aug 17, 2016 at 2:08 PM, Daniel Zuidinga <i...@seoaachen.de>
>>> wrote:
>>>
>>>> I added the lines but scroll wheel does not work
>>>>
>>>>
>>>>> Look at ${pv_src}/Web/Python/paraview/web/protocols.py
>>>>> #ParaViewWebMouseHandler
>>>>> vs ${pv_src}/VTK/Web/Python/vtk/web/protocols.py   #vtkWebMouseHandler
>>>>>
>>>>> it seems the paraview one is missing:
>>>>>
>>>>>   if event.has_key("scroll"):
>>>>> pvevent.SetScroll(event["scroll"])
>>>>>
>>>>> Just add it to your paraview python file.
>>>>>
>>>>>
>>>>
>>>
>>>
>>
>> ___
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>>
>>
>
>
> --
> Ken Martin PhD
> Chairman & CFO
> Kitware Inc.
> 28 Corporate Drive
> Clifton Park NY 12065
> 518 371 3971
>
> This communication, including all attachments, contains confidential and
> legally privileged information, and it is intended only for the use of the
> addressee.  Access to this email by anyone else is unauthorized. If you are
> not the intended recipient, any disclosure, copying, distribution or any
> action taken in reliance on it is prohibited and may be unlawful. If you
> received this communication in error please notify us immediately and
> destroy the original message.  Thank you.
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] PV Web scrollwheel for zoom, wrong legend

2016-08-17 Thread Sebastien Jourdain
vtk.js interaction does not currently implement zooming. So the current
behavior is expected.

What are you trying to do with vtk.js and salome? vtk.js has not been
released yet and is a pure JavaScript/client library.



On Wed, Aug 17, 2016 at 3:18 PM, Daniel Zuidinga <i...@seoaachen.de> wrote:

> shouldn't work scroll wheel in vtk.js? e.g. here
> https://kitware.github.io/vtk-js/examples/HttpSceneLoader.html
> I have to compile the whole sources? I use pv of salome meca. I hope it
> isn't to complicated and cpu intensive.
>
>
> Am 17.08.2016 um 22:32 schrieb Sebastien Jourdain:
>
> I guess ParaView is missing more code on the server side. ;-)
> This time, it will be in the C++.
>
>
> ${ParaView-src}/VTK/Web/Core/vtkWebApplication.cxx =>
> vtkPVWebApplication::HandleInteractionEvent
>
> vs
>
> ${ParaView-src}/Web/Core/vtkPVWebApplication.cxx => vtkWebApplication::
> HandleInteractionEvent
>
> The VTK one has:
>
>   // Handle scroll action if any
>   if(event->GetScroll()) {
> iren->SetEventInformation(0, 0, ctrlKey, shiftKey,
> event->GetKeyCode(), 0);
> iren->MouseMoveEvent();
> iren->RightButtonPressEvent();
> iren->SetEventInformation(0, event->GetScroll()*10, ctrlKey, shiftKey,
> event->GetKeyCode(), 0);
> iren->MouseMoveEvent();
> iren->RightButtonReleaseEvent();
> this->Internals->ImageCache[view].NeedsRender = true;
> return true;
>   }
>
> If you got it working, could you submit a pull request on our gitlab and
> assign it to me so those fix could be part of PV 5.2?
>
> Thanks,
>
> Seb
>
> On Wed, Aug 17, 2016 at 2:08 PM, Daniel Zuidinga <i...@seoaachen.de>
> wrote:
>
>> I added the lines but scroll wheel does not work
>>
>>
>>> Look at ${pv_src}/Web/Python/paraview/web/protocols.py
>>> #ParaViewWebMouseHandler
>>> vs ${pv_src}/VTK/Web/Python/vtk/web/protocols.py   #vtkWebMouseHandler
>>>
>>> it seems the paraview one is missing:
>>>
>>>   if event.has_key("scroll"):
>>> pvevent.SetScroll(event["scroll"])
>>>
>>> Just add it to your paraview python file.
>>>
>>>
>>
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] PV Web scrollwheel for zoom, wrong legend

2016-08-17 Thread Sebastien Jourdain
I guess ParaView is missing more code on the server side. ;-)
This time, it will be in the C++.


${ParaView-src}/VTK/Web/Core/vtkWebApplication.cxx =>
vtkPVWebApplication::HandleInteractionEvent

vs

${ParaView-src}/Web/Core/vtkPVWebApplication.cxx =>
vtkWebApplication::HandleInteractionEvent

The VTK one has:

  // Handle scroll action if any
  if(event->GetScroll()) {
iren->SetEventInformation(0, 0, ctrlKey, shiftKey, event->GetKeyCode(),
0);
iren->MouseMoveEvent();
iren->RightButtonPressEvent();
iren->SetEventInformation(0, event->GetScroll()*10, ctrlKey, shiftKey,
event->GetKeyCode(), 0);
iren->MouseMoveEvent();
iren->RightButtonReleaseEvent();
this->Internals->ImageCache[view].NeedsRender = true;
return true;
  }

If you got it working, could you submit a pull request on our gitlab and
assign it to me so those fix could be part of PV 5.2?

Thanks,

Seb

On Wed, Aug 17, 2016 at 2:08 PM, Daniel Zuidinga  wrote:

> I added the lines but scroll wheel does not work
>
>
>> Look at ${pv_src}/Web/Python/paraview/web/protocols.py
>> #ParaViewWebMouseHandler
>> vs ${pv_src}/VTK/Web/Python/vtk/web/protocols.py   #vtkWebMouseHandler
>>
>> it seems the paraview one is missing:
>>
>>   if event.has_key("scroll"):
>> pvevent.SetScroll(event["scroll"])
>>
>> Just add it to your paraview python file.
>>
>>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ParaviewWeb security

2016-08-15 Thread Sebastien Jourdain
Hi Sven,

We do take security seriously.  Several actions have been made to make the
exposed protocols more secured.
It is true, that legacy protocol like ParaViewWebPipelineManager does not
check for code injection. But that protocol is deprecated and will be
removed for the next ParaView release (5.2).

In the current ParaViewWebProxyManager we do check that the user is allowed
to create the given requested proxy.

@exportRpc("pv.proxy.manager.create")
def create(self, functionName, parentId):
"""
Creates a new filter/source proxy as a child of the specified
parent proxy.  Returns the proxy state for the newly created
proxy as a JSON object.
"""
name = self.validate(functionName)

if not name:
return { 'success': False,
 'reason': '"' + functionName + '" was not valid and
could not be evaluated' }

   [...]

Regarding the access outside of the --data-dir we are preventing the user
from listing any file outside of that directory

if not currentPath.startswith(normBase):
print "### CAUTION =="
print " Attempt to get to another root path ###"
print "  => Requested:", relativeDir
print "  => BaseDir:", normBase
print "  => Computed path:", currentPath
print "### CAUTION =="
currentPath = normBase

Although, it is true that we are not guarding the "open" function which is
a mistake and it will be address right away.

Regarding your question, ParaViewWeb tend to be deployed on secured
environments (intranet and/or behind firewalls) but could be deployed on
the internet if specific actions are taking care. The authentication should
be delegated to your infrastructure and your infrastructure should be
responsible of launching the ParaView process under the user privilege. Our
Python launcher is provided as an example and for quick demos in a secured
environment but can not be considered secured. Since we delegate the
launching and the authentication to your infrastructure, you should also
provide a mechanism to share in a secure way the secret key that was used
to launch your application. The goal of that secret key is to prevent any
user that could have guessed your session ID (endpoint URL) to connect to
your dedicated WebSocket.

Then, after that, we are assuming some kind of user responsibility as we
seems to trust them enough to use server side resources. Specially as they
can still bring down the machine by filling up the memory and/or using all
the CPU via complex geometry/pipeline processing. In which case, it will be
fairly hard to prevent such behavior.

Regarding your last question, we do not provide any commercial alternative
but we provide support which could be used to improve our current Open
source solutions to match your expectations or create new products which
will be your property.

Seb



On Sat, Aug 13, 2016 at 4:53 AM, Sven Kramer  wrote:

> I was wondering, if ParaviewWeb takes security concerns serious. Studying
> the server code, I found no measures against access to files outside of the
> specified --data-dir, against XSS or injection of arbitrary code in analogy
> to SQL injection.
>
> Would you consider ParaviewWeb secure when the server is open to anybody
> in the internet, or is its purpose only to be run within intranets behind a
> firewall? Assuming that ParaviewWeb has not undergone any security audits,
> are there any commercial alternatives?
>
> Thank you
> Sven
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] load plugin through python scripts

2016-08-12 Thread Sebastien Jourdain
you need to provide your globals to LoadPlugin, so it can add H5PartReader into
the main scope.
Otherwise, you will need to use the full path which should be something
along that

servermanager.sources.H5PartReader


def LoadPlugin(filename, remote=True, ns=None):

"""Loads a ParaView plugin and updates this module with new constructors

if any. The remote argument (default to True) is to specify whether

the plugin will be loaded on client (remote=False) or on server
(remote=True).

If you loaded the simple module with from paraview.simple import *,

make sure to pass globals() as an argument::


LoadPlugin("myplugin", False, globals()) # to load on client

LoadPlugin("myplugin", True, globals())  # to load on server

LoadPlugin("myplugin", ns=globals()) # to load on server


Otherwise, the new functions will not appear in the global namespace."""



On Fri, Aug 12, 2016 at 6:15 AM, 曹智选 <hitca...@gmail.com> wrote:

> No, I have this in the scripts.
>
> 2016-08-11 19:52 GMT-04:00 Sebastien Jourdain <sebastien.jourdain@kitware.
> com>:
>
>> Are you missing?
>>
>> from paraview.simple import *
>>
>> On Thu, Aug 11, 2016 at 4:10 PM, 曹智选 <hitca...@gmail.com> wrote:
>>
>>> Hi,
>>> I am trying to write a python scripts to "visualize" simulation results.
>>>
>>> I need load a plugin through GUI of paraview before opening data. If I
>>> first load plugin in the GUI and then run my python scripts through
>>> Paraview GUI -> tools ->python shell, it works well.
>>> To load plugin in python scrips. I use the trace tool of paraview found
>>> that the function to load plugin is:
>>> LoadPlugin('/rohit1/data/users/zhixuanc/Soft/ParaView-4.3.1-
>>> Linux-64bit/lib/paraview-4.3/libH5PartReader.so', remote=False).
>>>
>>> Instead of load plugin manually through GUI, I put this command at the
>>> very beginning of the existing python scripts and run the scripts through
>>> Paraview GUI -> tools ->python shell. But I got an error message and it
>>> does not work:
>>>
>>> Plot[plotname] = H5PartReader(FileName=maindirectory+subdirectory+name)
>>>
>>> NameError: global name 'H5PartReader' is not defined
>>>
>>> But when I go to Paraview GUI -> tools -> Manage Plugins, it shows that
>>> the required plugin is loaded.
>>>
>>> I am not sure what's wrong and how to fix this issue.
>>>
>>> Could anybody give me any advice on it?
>>>
>>>
>>>
>>>
>>> ___
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>>
>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/paraview
>>>
>>>
>>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


  1   2   3   4   5   6   >