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

2018-05-14 Thread Dennis Conklin
Scott,

I assume that if I compile a ParaView executable with pandas included, then I 
could distribute my plugin as xml and everyone could access it.I’m a little 
unsure but I assume I would also have to recompile the server that we are using 
on an HPC cluster to include pandas.   I’m beginning to see why adding pandas 
to ParaView has been delayed a few times.

Dennis

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

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 
mailto: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 
mailto:dennis_conk...@goodyear.com>>
Cc: Paraview (parav...@paraview.org) 
mailto: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

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