[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

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: > Attac

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

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 pres

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 ho

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] 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 o

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 thi

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

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

[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 i

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 t

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:

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 cl

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 t

[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