<div dir="ltr">Hi <span style="font-family:arial,sans-serif;font-size:13px">Junyi Han,</span><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><font face="arial, sans-serif">those methods are defined on the server side using &quot;protocols&quot;. To know which one is available you can look at the file src/Web/Python/protocols.py.</font></div>
<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">But usually those method are already wrapped into some UI component that could be directly reused.</font></div><div><font face="arial, sans-serif"><br>
</font></div><div><font face="arial, sans-serif">Seb</font><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 15, 2013 at 10:14 AM, Junyi Han <span dir="ltr">&lt;<a href="mailto:demonmerlin@gmail.com" target="_blank">demonmerlin@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Seb,<div><br></div><div>Thanks very much for your help. </div><div>I&#39;m trying to open a vtk file by modifying the sample code. Could you please help me to understand following code:</div>
<div><div>pv.connection.session.call(&quot;pv:openFileFromPath&quot;, filePath).then(function(reply){pv.viewport.render();});</div>
</div><div><br></div><div>1. After connecting to a session, methods such as pv:openFileFromPath and vtk:render can be called. But I don&#39;t know where to find those methods, I only got these two from examples.</div><div>

2. Where is the session defined? I want to know how does session function works.</div><div><br></div><div>Best wishes,</div><div>Junyi Han </div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br>
<div class="gmail_quote">2013/11/15 Sebastien Jourdain <span dir="ltr">&lt;<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>Hi Junyi,</div><div><br></div><div>That specific sample application expect a session manager to automatically start a new python process for each visualization. </div>

<div><br></div><div>If you run an existing web application, you can only load its corresponding web page. </div><div><br></div><div>Hope that make sense,</div><div><br></div><div>Seb</div><div><div><div><br>On Nov 14, 2013, at 21:07, Junyi Han &lt;<a href="mailto:demonmerlin@gmail.com" target="_blank">demonmerlin@gmail.com</a>&gt; wrote:<br>

<br></div><blockquote type="cite"><div><div dir="ltr">Hi all,<div><br></div><div>I start up a python http server and try to test samples as shown on the front page of wiki. But I got a 404 error as follow:</div><div>2013-11-14 22:51:30-0500 [HTTPChannel,4,127.0.0.1] 127.0.0.1 - - [15/Nov/2013:03:51:30 +0000] &quot;POST <b>/paraview</b> HTTP/1.1&quot; 404 145 &quot;<a href="http://localhost:8080/apps/LiveArticles/embed.html?data=can.ex2" target="_blank">http://localhost:8080/apps/LiveArticles/embed.html?data=can.ex2</a>&quot; &quot;Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.66 Safari/537.36&quot;<br>


</div><div><br></div><div>I don&#39;t find a directory called <b>paraview</b> under ../../paraview-4.0/www but it&#39;s used as parameter of POST command. Did I don something wrong?</div><div><br></div><div>Best wishes,</div>


<div>Junyi Han</div></div>
</div></blockquote></div></div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>