[Paraview-developers] Pass Javascript array to Python
Aashish Chaudhary
aashish.chaudhary at kitware.com
Wed Dec 11 16:16:52 EST 2013
I believe it does it automatically ( I could be wrong though). Did you try
it? If not you can pass it as a string and construct array on the backend.
- Aashish
On Mon, Dec 9, 2013 at 10:34 AM, kyr <akyrieleis at gmail.com> wrote:
> Hi,
>
> I am using ParaviewWeb 4.1 and have written a custom protocol. I want to
> transfer an array of values from Javascript to the python function in the
> protocol. I.e. when using
>
> pv.connection.session.call(‘vtk:fct_name, arg1, arg2,
> ..).then(function(reply){ ..});
>
> in my Javascript then arg1 should be an array (but a Javascript array is
> not
> a Python list object). Can I transfer a Javascript array somehow to the
> python code ?
>
> Thank you very much.
>
> kyr.
>
>
>
> --
> View this message in context:
> http://the-unofficial-paraview-developers-forum.34153.x6.nabble.com/Pass-Javascript-array-to-Python-tp2704.html
> Sent from the The Unofficial ParaView Developers Forum mailing list
> archive at Nabble.com.
> _______________________________________________
> Paraview-developers mailing list
> Paraview-developers at paraview.org
> http://public.kitware.com/mailman/listinfo/paraview-developers
>
--
| Aashish Chaudhary
| R&D Engineer
| Kitware Inc.
| www.kitware.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20131211/0442e8d7/attachment.htm>
More information about the Paraview-developers
mailing list