[Paraview] ParaViewWeb and multiple windows

2018-05-11 Thread Sgouros, Thomas
Hi All:

I have a ParaViewWeb application going with a pvpython back end, and it
looks great. I want to show views of multiple datasets in it now. I gather
that the layout() methods are not supported in pvpython, so I have to use
separate windows.

I'm creating the render window on the client with this:

const renderer = VtkRenderer.newInstance({ client: model.pvwClient });

I can certainly create two such renderer objects, but I don't see how to
link the Render on my pvpython server to one or the other of the client's
renderer objects.

I assume I've been using some default behavior where my Show() and Update()
commands get sent to the one renderer, but how do I direct them to one or
the other?

Thank you,

 -Tom
___
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://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] layout question, pvpython

2018-05-11 Thread Sgouros, Thomas
Thank you, you're very kind. I'm all about functional workarounds these
days. It leads to another question of course, but that's a ParaViewWeb
question, so I'll make it another post.

Thank you,

 -Tom


On Fri, May 11, 2018 at 4:06 PM, Utkarsh Ayachit <
utkarsh.ayac...@kitware.com> wrote:

> Attached is a script that demonstrates what I meant. Note, this is just a
> workaround and not a graceful solution :).
>
> Utkarsh
> On Fri, May 11, 2018 at 3:37 PM Sgouros, Thomas 
> wrote:
>
> > Alas, indeed. Just as I thought I was starting to understand what's going
> on. Was I just misled because there is a trace output that has this in it?
>
> > # get layout
> > layout1 = GetLayoutByName("Layout #1")
> > # split cell
> > layout1.SplitHorizontal(0, 0.5)
>
>
> > Without layout support, can I use pvpython to present two render views
> and link them with a camera link? Can you suggest what direction might
> succeed?
>
> > You may have suggested this already, but I'm not sure the hint about
> view.GetRenderWindow().SetPosition(x, y) is enough for me. I don't really
> get how that's a way forward. What are you suggesting I use that function
> to do?
>
> > Thanks,
>
> >   -Tom
>
> > On Fri, May 11, 2018 at 3:04 PM, Utkarsh Ayachit <
> utkarsh.ayac...@kitware.com> wrote:
>
> >> Tom,
>
> >> Alas, there's no layout support in pvpython. There indeed is a layout
> proxy
> >> (vtkSMLayoutProxy), but they rely on the Qt ParaView components to
> layout
> >> the windows. The proxy itself is the "model", if you will.  And it works
> >> when you execute the layout related updates in the Python shell in the
> >> ParaView UI.
>
> >> A clumpsy way to set a window's position in Python is:
> >> > view.GetRenderWindow().SetPosition(x, y)
>
> >> You can use that to lay out the windows, short of doing something more
> >> elaborate with a GUI library.
>
> >> Utkarsh
>
>
>
>
> >> On Fri, May 11, 2018 at 2:34 PM Sgouros, Thomas <
> thomas_sgou...@brown.edu
>
> >> wrote:
>
> >> > Hi All:
>
> >> > I've become accustomed to throwing around render view objects in
> >> pvpython, swapping them in and out of the view with simple.Show() and
> >> simple.Hide(). Now I have to learn about layout objects. Can someone
> >> suggest the best way to think about these? Are they containers into
> which I
> >> can drop one or more render views and move them around, or are they more
> >> like molds into which I can pour a render view and then use the layout
> as
> >> handles with which to manipulate the views?
>
> >> > Where can I find a list of the methods of a layout object? Or would it
> be
> >> better to call it a layout proxy?
>
> >> > Thank you,
>
> >> >   -Tom
> >> > ___
> >> > 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://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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] layout question, pvpython

2018-05-11 Thread Utkarsh Ayachit
Attached is a script that demonstrates what I meant. Note, this is just a
workaround and not a graceful solution :).

Utkarsh
On Fri, May 11, 2018 at 3:37 PM Sgouros, Thomas 
wrote:

> Alas, indeed. Just as I thought I was starting to understand what's going
on. Was I just misled because there is a trace output that has this in it?

> # get layout
> layout1 = GetLayoutByName("Layout #1")
> # split cell
> layout1.SplitHorizontal(0, 0.5)


> Without layout support, can I use pvpython to present two render views
and link them with a camera link? Can you suggest what direction might
succeed?

> You may have suggested this already, but I'm not sure the hint about
view.GetRenderWindow().SetPosition(x, y) is enough for me. I don't really
get how that's a way forward. What are you suggesting I use that function
to do?

> Thanks,

>   -Tom

> On Fri, May 11, 2018 at 3:04 PM, Utkarsh Ayachit <
utkarsh.ayac...@kitware.com> wrote:

>> Tom,

>> Alas, there's no layout support in pvpython. There indeed is a layout
proxy
>> (vtkSMLayoutProxy), but they rely on the Qt ParaView components to layout
>> the windows. The proxy itself is the "model", if you will.  And it works
>> when you execute the layout related updates in the Python shell in the
>> ParaView UI.

>> A clumpsy way to set a window's position in Python is:
>> > view.GetRenderWindow().SetPosition(x, y)

>> You can use that to lay out the windows, short of doing something more
>> elaborate with a GUI library.

>> Utkarsh




>> On Fri, May 11, 2018 at 2:34 PM Sgouros, Thomas > wrote:

>> > Hi All:

>> > I've become accustomed to throwing around render view objects in
>> pvpython, swapping them in and out of the view with simple.Show() and
>> simple.Hide(). Now I have to learn about layout objects. Can someone
>> suggest the best way to think about these? Are they containers into
which I
>> can drop one or more render views and move them around, or are they more
>> like molds into which I can pour a render view and then use the layout as
>> handles with which to manipulate the views?

>> > Where can I find a list of the methods of a layout object? Or would it
be
>> better to call it a layout proxy?

>> > Thank you,

>> >   -Tom
>> > ___
>> > 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://public.kitware.com/mailman/listinfo/paraview
from paraview.simple import *

# NOTE THIS IS NOT INTENDED FOR USE IN PYTHON SHELL IN PARAVIEW UI
# BUT ONLY FOR `pvython`

s = Sphere()

a = []
for x in range(4):
v = CreateRenderView()
Show(s, v)
a.append(v)
if len(a) >= 2:
AddCameraLink(a[-2], a[-1], "clink%d" % len(a))

a[0].GetRenderWindow().SetPosition(0, 0)
a[1].GetRenderWindow().SetPosition(0, 410)
a[2].GetRenderWindow().SetPosition(410, 0)
a[3].GetRenderWindow().SetPosition(410, 410)

for x in a:
Render(x)

Interact(a[0])
___
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://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] layout question, pvpython

2018-05-11 Thread Sgouros, Thomas
Alas, indeed. Just as I thought I was starting to understand what's going
on. Was I just misled because there is a trace output that has this in it?

# get layout
layout1 = GetLayoutByName("Layout #1")
# split cell
layout1.SplitHorizontal(0, 0.5)


Without layout support, can I use pvpython to present two render views and
link them with a camera link? Can you suggest what direction might succeed?

You may have suggested this already, but I'm not sure the hint about
view.GetRenderWindow().SetPosition(x, y) is enough for me. I don't really
get how that's a way forward. What are you suggesting I use that function
to do?

Thanks,

 -Tom

On Fri, May 11, 2018 at 3:04 PM, Utkarsh Ayachit <
utkarsh.ayac...@kitware.com> wrote:

> Tom,
>
> Alas, there's no layout support in pvpython. There indeed is a layout proxy
> (vtkSMLayoutProxy), but they rely on the Qt ParaView components to layout
> the windows. The proxy itself is the "model", if you will.  And it works
> when you execute the layout related updates in the Python shell in the
> ParaView UI.
>
> A clumpsy way to set a window's position in Python is:
> > view.GetRenderWindow().SetPosition(x, y)
>
> You can use that to lay out the windows, short of doing something more
> elaborate with a GUI library.
>
> Utkarsh
>
>
>
>
> On Fri, May 11, 2018 at 2:34 PM Sgouros, Thomas 
> wrote:
>
> > Hi All:
>
> > I've become accustomed to throwing around render view objects in
> pvpython, swapping them in and out of the view with simple.Show() and
> simple.Hide(). Now I have to learn about layout objects. Can someone
> suggest the best way to think about these? Are they containers into which I
> can drop one or more render views and move them around, or are they more
> like molds into which I can pour a render view and then use the layout as
> handles with which to manipulate the views?
>
> > Where can I find a list of the methods of a layout object? Or would it be
> better to call it a layout proxy?
>
> > Thank you,
>
> >   -Tom
> > ___
> > 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://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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] [EXT] Re: Using Pandas in Paraview v5.4.1

2018-05-11 Thread Scott Wittenburg
Hi Dennis,

I'm not sure I understand precisely what you mean when you say "compile
here with an external python".  Do you mean compiling your plugin (which
would imply not a simple xml plugin), or compiling ParaView?  Even if you
compile ParaView on your end with an external python, I don't see how that
will result in something that will allow you to distribute your plugin as
xml.  You could try to distribute a custom ParaView binary (which includes
your new plugin as well as pandas python modules), but for that you would
normally need to use the ParaView superbuild.  Even then I think you would
have to tweak the superbuild to get the python to include pandas.

Hopefully someone out  there with more knowledge can chime in and provide
some hints or suggestions.  Then maybe we'll find out what you want to do
it quite easy, in which case I'll be excited to learn about it :-)

Cheers,
Scott

p.s.  I'm sure you may have read through this before, but just in case (or
for people who come across this later):

https://www.paraview.org/Wiki/ParaView/Plugin_HowTo


On Fri, May 11, 2018 at 12:28 PM, Dennis Conklin <
dennis_conk...@goodyear.com> wrote:

> Scott,
>
>
>
> Interesting idea and I was not aware of any of that.
>
>
>
> I should be specific that I need to make an xml Server side plugin for
> general distribution that needs to call pandas to execute.   So I don’t
> think I can get everyone here to load up that virtual environment and
> install pandas.
>
>
>
> I think I’m hearing that pandas for everyone is not available unless I
> compile here with an external python, right?
>
>
>
> Thanks
>
> Dennis
>
>
>
> *From:* Scott Wittenburg [mailto:scott.wittenb...@kitware.com]
> *Sent:* Friday, May 11, 2018 1:21 PM
> *To:* Dennis Conklin 
> *Cc:* Paraview (parav...@paraview.org) 
> *Subject:* [EXT] Re: [Paraview] Using Pandas in Paraview v5.4.1
>
>
>
>  *CAUTION: *EXTERNAL email. Please think before clicking on any links or
> attachments.
>
>
>
> Hello Dennis,
>
>
>
> Depending on how you want to use pandas within ParaView, one approach that
> could work involves creating a virtual environment and installing pandas
> there.  Then a couple of lines of python can make modules installed in that
> virtualenv available from pvpython.  See this blog post for more
> information:
>
>
>
> https://blog.kitware.com/using-pvpython-and-virtualenv/
> 
>
>
>
> Hope this helps,
>
> Scott
>
>
>
> On Fri, May 11, 2018 at 11:11 AM, Dennis Conklin <
> dennis_conk...@goodyear.com> wrote:
>
> All,
>
>
>
> I need some pandas functions for some filters.Pandas, unfortunately is
> not a simple library (there is no pands.py) – it needs to be installed into
> your version of python as a module.How can I get this in Paraview
> (hopefully, without compiling from source).Can I install pandas into
> the python installation included with the PV download?
>
>
>
> Thanks
>
>
>
> Dennis
>
>
> ___
> 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://public.kitware.com/mailman/listinfo/paraview
> 

Re: [Paraview] layout question, pvpython

2018-05-11 Thread Utkarsh Ayachit
Tom,

Alas, there's no layout support in pvpython. There indeed is a layout proxy
(vtkSMLayoutProxy), but they rely on the Qt ParaView components to layout
the windows. The proxy itself is the "model", if you will.  And it works
when you execute the layout related updates in the Python shell in the
ParaView UI.

A clumpsy way to set a window's position in Python is:
> view.GetRenderWindow().SetPosition(x, y)

You can use that to lay out the windows, short of doing something more
elaborate with a GUI library.

Utkarsh




On Fri, May 11, 2018 at 2:34 PM Sgouros, Thomas 
wrote:

> Hi All:

> I've become accustomed to throwing around render view objects in
pvpython, swapping them in and out of the view with simple.Show() and
simple.Hide(). Now I have to learn about layout objects. Can someone
suggest the best way to think about these? Are they containers into which I
can drop one or more render views and move them around, or are they more
like molds into which I can pour a render view and then use the layout as
handles with which to manipulate the views?

> Where can I find a list of the methods of a layout object? Or would it be
better to call it a layout proxy?

> Thank you,

>   -Tom
> ___
> 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://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:
https://public.kitware.com/mailman/listinfo/paraview


[Paraview] layout question, pvpython

2018-05-11 Thread Sgouros, Thomas
Hi All:

I've become accustomed to throwing around render view objects in pvpython,
swapping them in and out of the view with simple.Show() and simple.Hide().
Now I have to learn about layout objects. Can someone suggest the best way
to think about these? Are they containers into which I can drop one or more
render views and move them around, or are they more like molds into which I
can pour a render view and then use the layout as handles with which to
manipulate the views?

Where can I find a list of the methods of a layout object? Or would it be
better to call it a layout proxy?

Thank you,

 -Tom
___
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://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] [EXT] Re: Using Pandas in Paraview v5.4.1

2018-05-11 Thread Dennis Conklin
Scott,

Interesting idea and I was not aware of any of that.

I should be specific that I need to make an xml Server side plugin for general 
distribution that needs to call pandas to execute.   So I don’t think I can get 
everyone here to load up that virtual environment and install pandas.

I think I’m hearing that pandas for everyone is not available unless I compile 
here with an external python, right?

Thanks
Dennis

From: Scott Wittenburg [mailto:scott.wittenb...@kitware.com]
Sent: Friday, May 11, 2018 1:21 PM
To: Dennis Conklin 
Cc: Paraview (parav...@paraview.org) 
Subject: [EXT] Re: [Paraview] Using Pandas in Paraview v5.4.1

 CAUTION: EXTERNAL email. Please think before clicking on any links or 
attachments.



Hello Dennis,

Depending on how you want to use pandas within ParaView, one approach that 
could work involves creating a virtual environment and installing pandas there. 
 Then a couple of lines of python can make modules installed in that virtualenv 
available from pvpython.  See this blog post for more information:

https://blog.kitware.com/using-pvpython-and-virtualenv/

Hope this helps,
Scott

On Fri, May 11, 2018 at 11:11 AM, Dennis Conklin 
mailto:dennis_conk...@goodyear.com>> wrote:
All,

I need some pandas functions for some filters.Pandas, unfortunately is not 
a simple library (there is no pands.py) – it needs to be installed into your 
version of python as a module.How can I get this in Paraview (hopefully, 
without compiling from source).Can I install pandas into the python 
installation included with the PV download?

Thanks

Dennis

___
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://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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Paraview display issue on Windows

2018-05-11 Thread Zhu Junxi
Hello Cory,

I tried a bunch of different versions and found out that those with Qt5
does not work while those with Qt4 looks fine (i.e., v5.3 and above does
not work, the latest version that works is v5.2.0 with Qt4). It seems that
it has something to do with the Qt5. I am wondering if other users are
experiencing similar issues with Qt5?

As for add-ons, do you have a list of specific add-ons that you are
particularly suspicious of? My desktop has a bunch of software installed
but they are either work-related (e.g., Matlab) or seemingly harmless
(e.g., steam). BTW, I don't have Nahimic sound driver, which I saw other
people reporting messing up with Qt.

Best,
Junxi

On Thu, May 10, 2018 at 8:36 PM Cory Quammen 
wrote:

> On Thu, May 10, 2018 at 11:40 AM Zhu Junxi 
> wrote:
>
>> Hello Cory,
>>
>> Thank you for such a quick reply. I checked the OpenGL entries and it is
>> indeed using the NVIDIA video card. The OpenGL renderer is listed as
>> GeForce GTX1080/PCIe/SSE2. I search online and although people say my
>> i7-6700k processor has a built-in 530 graphics card, I do not see it in the
>> device manager somehow..
>>
>
> Okay, thanks for checking. We have encountered a number of issues with
> Intel graphics in the last year or so, but driver updates have mainly
> resolved most of them. That doesn't seem to be the concern here, though.
>
>
>> I have also tried the NVIDIA control panel. I did not find the High
>> performance NVIDIA processer you mentioned in the global settings, but I
>> did change the OpenGL renderer to GTX1080.
>>
>
> That should ensure you are using the GTX1080, but it looks like ParaView
> already was using it.
>
>
>> However, Paraview still cannot display correctly after applying the
>> changes (so does the 3D Slicer). I am wondering if you need any system logs
>> to diagnose this issue and I would be happy to provide them.
>>
>
> I can't think of any system logs that would help. But there are a couple
> things you could try.
>
> 1). Install an older version of ParaView and see if that works. If it
> does, that will help us narrow down possible reasons for the transparency
> you are using. ParaView 4.4 would be a good one to try:
> https://www.paraview.org/download/
>
> 2). Do you have any add-ons to Windows installed that modify the window
> system in some way? If so, try disabling or uninstalling those.
>
> Thanks, and sorry for the trouble.
>
> Cory
>
>
>> Best,
>> Junxi
>>
>> On Thu, May 10, 2018 at 11:22 AM Cory Quammen 
>> wrote:
>>
>>> Junxi,
>>>
>>> Does your system also have an Intel video chip that it may be using? If
>>> so, ParaView may not be using your NVIDIA driver. You can check by going to
>>> the Help -> About ParaView menu item. What do the Open GL entries say?
>>>
>>> To ensure ParaView is using your NVIDIA card, you can try going to the
>>> NVIDIA control panel. Under 3D Settings in the panel on the left, click
>>> on "Manage 3D settings". On the right side, click on the "Global Settings"
>>> tab. Make sure "High-performance NVIDIA processor" is selected. Apply
>>> the changes, then run ParaView again to see if the problem is resolved.
>>>
>>> Hope that helps,
>>> Cory
>>>
>>> On Thu, May 10, 2018 at 10:38 AM Zhu Junxi 
>>> wrote:
>>>
 Hello everyone,

 I am referred to this mailing list by a developer at the 3D Slicer
 forum. I installed the Paraview v5.5 (and nightly build of 3D Slicer) and
 both suffered from the same display issue, i.e., the interface of the
 software looks semi-transparent, please see attached picture (in case the
 picture does not show correctly, here is the dropbox link to it:
 https://www.dropbox.com/s/1bveei3gjg01svb/bbb.png?dl=0). The developer
 at the 3D Slicer forum said it might be a video card driver issue and that
 I might get more help here. My computer is a desktop, with only one video
 card (GTX1080) and the driver version is 397.64 from the Geforce Experience
 software. The operating system is Windows 10 64 bit with latest April
 Update installed (I haven't tested Paraview before that...)



 It also happens on 3D slicer nightly build (05/02) (in case it does not
 show correctly, here is the dropbox link to the picture:
 https://www.dropbox.com/s/dqj5yh0hcj5ma7v/aaa.png?dl=0):


 BTW, when I first got Paraview v5.5 installed, it threw an OpenGL
 driver error upon launching. Then I updated the video card driver to the
 latest one and now the error is gone but the interface still seems
 semi-transparent.

 Any help is greatly appreciated!

 Best,
 Junxi

>>> ___
 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://ma

Re: [Paraview] Using Pandas in Paraview v5.4.1

2018-05-11 Thread Scott Wittenburg
Hello Dennis,

Depending on how you want to use pandas within ParaView, one approach that
could work involves creating a virtual environment and installing pandas
there.  Then a couple of lines of python can make modules installed in that
virtualenv available from pvpython.  See this blog post for more
information:

https://blog.kitware.com/using-pvpython-and-virtualenv/

Hope this helps,
Scott

On Fri, May 11, 2018 at 11:11 AM, Dennis Conklin <
dennis_conk...@goodyear.com> wrote:

> All,
>
>
>
> I need some pandas functions for some filters.Pandas, unfortunately is
> not a simple library (there is no pands.py) – it needs to be installed into
> your version of python as a module.How can I get this in Paraview
> (hopefully, without compiling from source).Can I install pandas into
> the python installation included with the PV download?
>
>
>
> Thanks
>
>
>
> Dennis
>
> ___
> 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://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:
https://public.kitware.com/mailman/listinfo/paraview


[Paraview] Using Pandas in Paraview v5.4.1

2018-05-11 Thread Dennis Conklin
All,

I need some pandas functions for some filters.Pandas, unfortunately is not 
a simple library (there is no pands.py) - it needs to be installed into your 
version of python as a module.How can I get this in Paraview (hopefully, 
without compiling from source).Can I install pandas into the python 
installation included with the PV download?

Thanks

Dennis
___
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://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] control comparative render in python?

2018-05-11 Thread Utkarsh Ayachit
Great! Glad you tracked it down. I've also reported an issue for this trace
issue: https://gitlab.kitware.com/paraview/paraview/issues/18166


On Fri, May 11, 2018 at 11:16 AM Sgouros, Thomas 
wrote:

> Just FYI, the "Link Camera" dialog that you get by right-clicking in a
window also appears not to log whatever it's doing to the Trace output. But
for the next person who finds this note, there seems to be an
AddCameraLink() function to the paraview 'simple' module, that appears to
work like this:

>   view1 = simple.CreateView("myfirstview")
>   view2 = simple.CreateView("mysecondview")
>   simple.AddCameraLink(view1, view2, "arbitraryNameOfLink")

> I assume that the Link Camera dialog invokes this function, though it
doesn't appear in the Trace.

> Thank you,

>   -Tom

> On Fri, May 11, 2018 at 9:05 AM, Sgouros, Thomas
> 
wrote:

>> Hi Utkarsh:

>> I understand, perhaps you're right that comparative render is not what
I'm after. What I want is just to see two different data sets using the
same visualization side by side, with cameras linked as they are with the
comparative view. I can create the visualizations I want in the Qt client
or in python. But apparently I could just use some direction on the best
approach to link the cameras and make the views appear side-by-side.

>> Thank you,

>> -Tom


>> On Fri, May 11, 2018 at 8:39 AM, Utkarsh Ayachit <
utkarsh.ayac...@kitware.com> wrote:

>>> Tom,

>>> > The Trace functionality seems indifferent to whatever I do on the
>>> comparative view inspector window, and I can't find any more than a
mention
>>> in the Guide.

>>> That is indeed a bug. I've reported it as an issue here:
>>> https://gitlab.kitware.com/paraview/paraview/issues/18164

>>> > I want to have two windows, side by side, rendering different views of
>>> the same data, or the same view of two different data sources, side by
>>> side, ideally always with the same camera position. This seems like
exactly
>>> what the comparative render view was built for.

>>> My hunch is comparative view is not what you want. All you want is
simply
>>> two views with linked cameras. Are you able to setup the visualizations
you
>>> need in the ParaView Qt client? If so, I can provide you hints on how to
>>> convert that to the corresponding Python script.

>>> > What is the python that corresponds to setting the MxN size of the
>>> comparison

>>> the view has a "Dimensions" parameter that you change e.g.
>>> view = CreateComparativeRenderView()
>>> view.Dimensions = [ 3, 1]

>>> > and how do I assign a render to some given sector of my comparison? Is
>>> there more to it than that?

>>> you simple use `Show`. You can't assign a dataset to show in a specific
>>> view, that's not what the comparative view is intended for. You show
data
>>> in all views and you vary one or more parameters on the pipelines in the
>>> view using the animation tracks in the comparative panel.

>>> Utkarsh

>>> > Thank you,

>>> > -Tom



>>> > ___
>>> > 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://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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] control comparative render in python?

2018-05-11 Thread Sgouros, Thomas
Just FYI, the "Link Camera" dialog that you get by right-clicking in a
window also appears not to log whatever it's doing to the Trace output. But
for the next person who finds this note, there seems to be an
AddCameraLink() function to the paraview 'simple' module, that appears to
work like this:

 view1 = simple.CreateView("myfirstview")
 view2 = simple.CreateView("mysecondview")
 simple.AddCameraLink(view1, view2, "arbitraryNameOfLink")

I assume that the Link Camera dialog invokes this function, though it
doesn't appear in the Trace.

Thank you,

 -Tom

On Fri, May 11, 2018 at 9:05 AM, Sgouros, Thomas 
wrote:

> Hi Utkarsh:
>
> I understand, perhaps you're right that comparative render is not what I'm
> after. What I want is just to see two different data sets using the same
> visualization side by side, with cameras linked as they are with the
> comparative view. I can create the visualizations I want in the Qt client
> or in python. But apparently I could just use some direction on the best
> approach to link the cameras and make the views appear side-by-side.
>
> Thank you,
>
> -Tom
>
>
> On Fri, May 11, 2018 at 8:39 AM, Utkarsh Ayachit <
> utkarsh.ayac...@kitware.com> wrote:
>
>> Tom,
>>
>> > The Trace functionality seems indifferent to whatever I do on the
>> comparative view inspector window, and I can't find any more than a
>> mention
>> in the Guide.
>>
>> That is indeed a bug. I've reported it as an issue here:
>> https://gitlab.kitware.com/paraview/paraview/issues/18164
>>
>> > I want to have two windows, side by side, rendering different views of
>> the same data, or the same view of two different data sources, side by
>> side, ideally always with the same camera position. This seems like
>> exactly
>> what the comparative render view was built for.
>>
>> My hunch is comparative view is not what you want. All you want is simply
>> two views with linked cameras. Are you able to setup the visualizations
>> you
>> need in the ParaView Qt client? If so, I can provide you hints on how to
>> convert that to the corresponding Python script.
>>
>> > What is the python that corresponds to setting the MxN size of the
>> comparison
>>
>> the view has a "Dimensions" parameter that you change e.g.
>> view = CreateComparativeRenderView()
>> view.Dimensions = [ 3, 1]
>>
>> > and how do I assign a render to some given sector of my comparison? Is
>> there more to it than that?
>>
>> you simple use `Show`. You can't assign a dataset to show in a specific
>> view, that's not what the comparative view is intended for. You show data
>> in all views and you vary one or more parameters on the pipelines in the
>> view using the animation tracks in the comparative panel.
>>
>> Utkarsh
>>
>> > Thank you,
>>
>> > -Tom
>>
>>
>>
>> > ___
>> > 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://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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] control comparative render in python?

2018-05-11 Thread Sgouros, Thomas
Hi Utkarsh:

I understand, perhaps you're right that comparative render is not what I'm
after. What I want is just to see two different data sets using the same
visualization side by side, with cameras linked as they are with the
comparative view. I can create the visualizations I want in the Qt client
or in python. But apparently I could just use some direction on the best
approach to link the cameras and make the views appear side-by-side.

Thank you,

-Tom

On Fri, May 11, 2018 at 8:39 AM, Utkarsh Ayachit <
utkarsh.ayac...@kitware.com> wrote:

> Tom,
>
> > The Trace functionality seems indifferent to whatever I do on the
> comparative view inspector window, and I can't find any more than a mention
> in the Guide.
>
> That is indeed a bug. I've reported it as an issue here:
> https://gitlab.kitware.com/paraview/paraview/issues/18164
>
> > I want to have two windows, side by side, rendering different views of
> the same data, or the same view of two different data sources, side by
> side, ideally always with the same camera position. This seems like exactly
> what the comparative render view was built for.
>
> My hunch is comparative view is not what you want. All you want is simply
> two views with linked cameras. Are you able to setup the visualizations you
> need in the ParaView Qt client? If so, I can provide you hints on how to
> convert that to the corresponding Python script.
>
> > What is the python that corresponds to setting the MxN size of the
> comparison
>
> the view has a "Dimensions" parameter that you change e.g.
> view = CreateComparativeRenderView()
> view.Dimensions = [ 3, 1]
>
> > and how do I assign a render to some given sector of my comparison? Is
> there more to it than that?
>
> you simple use `Show`. You can't assign a dataset to show in a specific
> view, that's not what the comparative view is intended for. You show data
> in all views and you vary one or more parameters on the pipelines in the
> view using the animation tracks in the comparative panel.
>
> Utkarsh
>
> > Thank you,
>
> > -Tom
>
>
>
> > ___
> > 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://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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] control comparative render in python?

2018-05-11 Thread Utkarsh Ayachit
Tom,

> The Trace functionality seems indifferent to whatever I do on the
comparative view inspector window, and I can't find any more than a mention
in the Guide.

That is indeed a bug. I've reported it as an issue here:
https://gitlab.kitware.com/paraview/paraview/issues/18164

> I want to have two windows, side by side, rendering different views of
the same data, or the same view of two different data sources, side by
side, ideally always with the same camera position. This seems like exactly
what the comparative render view was built for.

My hunch is comparative view is not what you want. All you want is simply
two views with linked cameras. Are you able to setup the visualizations you
need in the ParaView Qt client? If so, I can provide you hints on how to
convert that to the corresponding Python script.

> What is the python that corresponds to setting the MxN size of the
comparison

the view has a "Dimensions" parameter that you change e.g.
view = CreateComparativeRenderView()
view.Dimensions = [ 3, 1]

> and how do I assign a render to some given sector of my comparison? Is
there more to it than that?

you simple use `Show`. You can't assign a dataset to show in a specific
view, that's not what the comparative view is intended for. You show data
in all views and you vary one or more parameters on the pipelines in the
view using the animation tracks in the comparative panel.

Utkarsh

> Thank you,

> -Tom



> ___
> 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://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:
https://public.kitware.com/mailman/listinfo/paraview


[Paraview] control comparative render in python?

2018-05-11 Thread Sgouros, Thomas
Hi All:

I have a paraviewweb application that accepts a bunch of options and
produces a nice visualization supplied by a pvpython server -- thank you
all for the help you've offered so far. Everyone is happy with this, but of
course the problem with that is now they want more.

I want to have two windows, side by side, rendering different views of the
same data, or the same view of two different data sources, side by side,
ideally always with the same camera position. This seems like exactly what
the comparative render view was built for. Unfortunately, I can't find how
to control that view through python. The Trace functionality seems
indifferent to whatever I do on the comparative view inspector window, and
I can't find any more than a mention in the Guide.

What is the python that corresponds to setting the MxN size of the
comparison and how do I assign a render to some given sector of my
comparison? Is there more to it than that?

Thank you,

-Tom
___
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://public.kitware.com/mailman/listinfo/paraview