<div dir="ltr"><div class="gmail_default"><div class="gmail_default"><font face="tahoma, sans-serif">Hi Claude,</font></div><div class="gmail_default"><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default"><font face="tahoma, sans-serif">I tried using the filename hard coded in the config json as well as the index.html. But I am not able to view the file in the Visualizer. </font></div><div class="gmail_default"><font face="tahoma, sans-serif">It is only showing the blank window/pane with no figure. I can move the orientation axes, but nothing is being rendered. Even when I choose a file from the Files tab, nothing is being displayed. </font></div><div class="gmail_default"><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default"><div class="gmail_default" style="font-family:tahoma,sans-serif">My launcher config has:</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default"><font face="monospace, monospace">.......</font></div><div class="gmail_default"><font face="monospace, monospace">"properties" : {</font></div><div class="gmail_default"><font face="monospace, monospace">    "python_exec" : "C:/paraview/ParaView5.2.0/bin/pvpython.exe",</font></div><div class="gmail_default"><font face="monospace, monospace"><span class="gmail-Apple-tab-span" style="white-space:pre">       </span>"visualizer": "C:/paraview/ParaView5.2.0/share/paraview-5.2/web/visualizer/server/pvw-visualizer.py",</font></div><div class="gmail_default"><font face="monospace, monospace"><span class="gmail-Apple-tab-span" style="white-space:pre">       </span>"data_dir": "C:/paraview/ParaView5.2.0/data"</font></div><div class="gmail_default"><font face="monospace, monospace">  },</font></div><div class="gmail_default"><font face="monospace, monospace">  "apps": {</font></div><div class="gmail_default"><font face="monospace, monospace">    "visualizer": {</font></div><div class="gmail_default"><font face="monospace, monospace">        "cmd": [</font></div><div class="gmail_default"><font face="monospace, monospace">            "${python_exec}", "-dr", "${visualizer}", "--port", "${port}", "--data", "${data_dir}", "--authKey", "${secret}", "--load-file", "${data_dir}/can.ex2"</font></div><div class="gmail_default"><font face="monospace, monospace">        ],</font></div><div class="gmail_default"><font face="monospace, monospace">        "ready_line" : "Starting factory"</font></div><div class="gmail_default"><font face="monospace, monospace">    }</font></div><div class="gmail_default"><font face="monospace, monospace">  }</font></div><div class="gmail_default"><font face="monospace, monospace">......</font></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div></div><div class="gmail_default"><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default"><div class="gmail_default" style="font-family:tahoma,sans-serif">(You can see that the file name is hard coded)</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default"><font face="tahoma, sans-serif">The </font><font face="monospace, monospace">launcher.bat</font><font face="tahoma, sans-serif"> script has:</font></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default"><font face="monospace, monospace">set PV_HOME=C:\paraview\ParaView5.2.0</font></div><div class="gmail_default"><font face="monospace, monospace">%PV_HOME%\bin\pvpython.exe %PV_HOME%\bin\Lib\site-packages\vtk\web\launcher.py %PV_HOME%\launcher.config</font></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div style="font-family:tahoma,sans-serif"><br></div></div><div class="gmail_default"><span style="font-family:tahoma,sans-serif">However, I am able to view the file when I launch the </span><font face="monospace, monospace">pvpython.exe</font><span style="font-family:tahoma,sans-serif"> script directly using:</span><br></div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace">.\bin\pvpython.exe "C:\paraview\ParaView5.2.0\share\paraview-5.2\web\visualizer\server\pvw-visualizer.py" --content "C:\paraview\ParaView5.2.0\share\paraview-5.2\web\visualizer\www" --data "C:\paraview\ParaView5.2.0\data" --port 8080<br></font></div><div class="gmail_default" style="font-family:tahoma,sans-serif"> <br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><div class="gmail_default">So, I am guessing I may have mixed up some configuration items because of which the display is not coming when I try to launch it through the launcher scirpt/config. Surprisingly, there are no error messages in the log files. Could you please suggest something.</div><div class="gmail_default"><br></div><div class="gmail_default">I have added the details in the gist for your reference: <a href="https://gist.github.com/clavicule/7b8b3963ceb17302cff725f8dc36bc57">https://gist.github.com/clavicule/7b8b3963ceb17302cff725f8dc36bc57</a></div><div><br></div><div>The screenshots are also attached for your reference.</div><div><br></div></div></div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Cheers & Best Wishes,</div><div>Debopam</div><div>-------------------------------</div><div>Cell: +91 98304 10041</div></div></div></div>
<br><div class="gmail_quote">On Fri, Jan 13, 2017 at 6:04 PM, Claude <span dir="ltr"><<a href="mailto:claude@theweak.link" target="_blank">claude@theweak.link</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div></div><div>Hi Debopam,</div><div><br></div><div>Thanks for the added details on the gist and congratulations for setting up the server, you are almost there.</div><div>For Visualizer to be able to load a file, it will need the argument --load-file (it seems to have disappeared in your config launcher). The option --data specifies the directory, so whatever file you want to load, it must be relative to that directory. For example to load the data file <span style="background-color:rgba(255,255,255,0)">C:/my_data/dir/example1/my_<wbr>file.vti you could do:</span></div><div>--data is C:/my_data/dir</div><div>--load-file is <span style="background-color:rgba(255,255,255,0)">example1/my_file.vti</span></div><div><span style="background-color:rgba(255,255,255,0)"><br></span></div><div>Here is a question for you: do you want to always have the same data loaded by default or to be able to specify it? </div><div>* If it's always the same, you can directly hardcode it in the launcher config file. Then it will be loaded when you navigate to the paraview URL.</div><div>* if it's not always the same, you could use the solution on the gist which is specifying it in the URL directly (there are other alternatives of course). In that case, the URL must contain the file to load (otherwise paraview cannot guess it :)). For instance:</div><div><a href="http://localhost:9000/?data=example1/my_file" target="_blank">http://localhost:9000/?data=<wbr>example1/my_file</a></div><div><br></div><div>(The JavaScript code automatically adds the extension .vti, you may change that behavior of course).</div><div><br></div><div>I'll be posting the detailed changes on your code in the gist comment shortly.</div><div><br></div><div>Let me know</div><div>Cheers</div><span class="HOEnZb"><font color="#888888"><div>Claude </div></font></span><div><div class="h5"><div><br></div><div><br>On Jan 13, 2017, at 5:05 AM, Debopam Ghoshal <<a href="mailto:debopamg@gmail.com" target="_blank">debopamg@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div><p style="box-sizing:border-box;margin-bottom:16px;color:rgb(51,51,51);font-size:14px;margin-top:0px"><font face="tahoma, sans-serif">Hi Claude,</font></p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-size:14px"><font face="tahoma, sans-serif">I followed your instructions with some modifications since I was having problems. Finally, I was able to configure the Apache front end with the ParaView Web launcher, and now I can view the index page of the visualizer. However, when I choose any of the sample files, they are not being rendered in the visualizer pane. </font></p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-size:14px"><font face="tahoma, sans-serif">I have added the details in the gist you created at: <a href="https://gist.github.com/clavicule/7b8b3963ceb17302cff725f8dc36bc57" target="_blank">https://gist.github.com/<wbr>clavicule/<wbr>7b8b3963ceb17302cff725f8dc36bc<wbr>57</a></font></p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-size:14px"><font face="tahoma, sans-serif">Would appreciate your thoughts on this.</font></p><ol style="box-sizing:border-box;padding-left:2em;margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-size:14px"></ol></div><div><font face="tahoma, sans-serif"><br></font></div><div class="gmail_extra"><font face="tahoma, sans-serif"><br clear="all"></font><div><div class="m_-2985665748455820593gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><font face="tahoma, sans-serif">Cheers & Best Wishes,</font></div><div><font face="tahoma, sans-serif">Debopam</font></div><div><font face="tahoma, sans-serif">------------------------------<wbr>-</font></div><div><br></div></div></div></div>
<br><div class="gmail_quote">On Thu, Jan 12, 2017 at 5:22 PM, Debopam Ghoshal <span dir="ltr"><<a href="mailto:debopamg@gmail.com" target="_blank">debopamg@gmail.com</a>></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 Claude<div><br></div><div>Thank you so much for your detailed explanation. The gist has been very useful. I am working on it at present, and is in the process of smoothening out a few creases because of the operating system I am using (Windows 10).</div><div><br></div><div>Will let you know once I am able to use paraview web properly. And in case of any issue, I will bother you once again.</div><div><br></div><div>Hi Seb,</div><div><br></div><div>Thanks for the link. Much appreciated.</div><div><br></div><div><br></div><div class="gmail_extra"><span><div><div class="m_-2985665748455820593m_7449516894874276934gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Cheers & Best Wishes,</div><div>Debopam</div><div>------------------------------<wbr>-</div><div><br></div></div></div></div></span><div><div class="m_-2985665748455820593h5"><div class="gmail_quote">On Wed, Jan 11, 2017 at 9:48 PM, Sebastien Jourdain <span dir="ltr"><<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.co<wbr>m</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks Claude,<div><br></div><div>Here is the add-on of what functions can be called on Visualizer. (All the function with export)</div><div><br></div><div><a href="https://github.com/Kitware/visualizer/blob/master/src/app.js" target="_blank">https://github.com/Kitware/vis<wbr>ualizer/blob/master/src/app.js</a><br></div><div><br></div><div>We are planning to add some helper for extracting arguments from the URL. We actually add a class in the ParaViewWeb repo, but we haven't got to the point of using it and making it available in visualizer.</div><div><br></div><div>Seb</div></div><div class="m_-2985665748455820593m_7449516894874276934HOEnZb"><div class="m_-2985665748455820593m_7449516894874276934h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 11, 2017 at 7:32 AM, claude <span dir="ltr"><<a href="mailto:claude@theweak.link" target="_blank">claude@theweak.link</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <p>Hi Debopam,</p>
    <p><br>
    </p>
    <p>I think there is one thing to consider first before taking care
      of data being passed through: if you manually start one instance
      of pvw-visualizer, it means all people connecting to port 8080
      will see the same thing and act on the same viewer, which means
      potentially conflicting with each other action (e.g. a probable
      disconnection for everyone if one decide to exit maybe?). In that
      case, you need to have a virtual server that will launch a new
      process every time someone connect to port 8080. That way, all
      viewers are independent, the same person can open several viewers,
      etc.</p>
    <p><br>
    </p>
    <p>Now regarding the data being loaded at startup: you html index
      file should have a function grabbing the 'data' parameter from a
      URL, a form, a dropdown menu, etc. then sending it as a key to the
      Visualizer application (so that the launcher knows which file to
      load at startup).<br>
    </p>
    <p>It would have been complicated to explain all the details in a
      email, so I made a gist with all the files and "code" addressing
      both points (launcher and data):</p>
    <p><a class="m_-2985665748455820593m_7449516894874276934m_707051543154546495m_4495136292653519199moz-txt-link-freetext" href="https://gist.github.com/clavicule/7b8b3963ceb17302cff725f8dc36bc57" target="_blank">https://gist.github.com/clavic<wbr>ule/7b8b3963ceb17302cff725f8dc<wbr>36bc57</a><br>
    </p>
    <br>
    Note that this gist was gathered info from the Paraview Web and
    Visualizer online documentations: kuddos to Paraview people.<br>
    2nd note: in that gist I'm giving the instructions for Apache server
    (you could technically choose any other, e.g. NGinx) for Linux.  I
    see you are on Windows: I don't know how Apache works on Windows but
    I assume (and hope) the steps and config file should be similar.<br>
    <br>
    I hope it helps! Good luck!<br>
    cheers<br>
    claude<div><div class="m_-2985665748455820593m_7449516894874276934m_707051543154546495h5"><br>
    <br>
    <br>
    <br>
    <div class="m_-2985665748455820593m_7449516894874276934m_707051543154546495m_4495136292653519199moz-cite-prefix">On 01/11/2017 04:10 AM, Debopam Ghoshal
      wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="m_-2985665748455820593m_7449516894874276934m_707051543154546495h5">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>
          <div>We have a requirement where our application will send a
            request to the paraview web server to render a specific file
            (which will be available in the data given directory) in the
            visualizer app, and this will be embedded within our
            application page as a iframe, whose source is the Visualizer
            app's index.html.</div>
          <div><br>
          </div>
        </div>
        <div>We are using the pvpython.exe executable to start the
          paraview web server. The command used to start the server is:<br>
        </div>
        <div><br>
        </div>
        <div><font face="monospace, monospace">.\bin\pvpython.exe
"C:\ParaView-5.2.0-Qt4-OpenGL2<wbr>-MPI-Windows-64bit\share\parav<wbr>iew-5.2\web\visualizer\server\<wbr>pvw-visualizer.py"
            --content
"C:\ParaView-5.2.0-Qt4-OpenGL2<wbr>-MPI-Windows-64bit\share\parav<wbr>iew-5.2\web\visualizer\www"
            --data
            "C:\ParaView-5.2.0-Qt4-OpenGL2<wbr>-MPI-Windows-64bit\data"
            --port 8080<br>
          </font></div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>From the command, we can see that the web content is being
          served from the <span style="font-family:monospace,monospace">C:\ParaView-5.2.0-Qt4-Open<wbr>GL2-MPI-Windows-64bit\share\pa<wbr>raview-5.2\web\visualizer\www</span> <wbr>directory.
          The <font face="monospace, monospace">index.html </font>file
          uses the <font face="monospace, monospace">Visualizer.js </font>script
          and calls the following functions:</div>
        <div><br>
        </div>
        <div><font face="monospace, monospace">Visualizer.connect({
            application: 'visualizer' });<br>
          </font></div>
        <div>
          <div><font face="monospace, monospace">Visualizer.autoStopServer(10);</font></div>
        </div>
        <div><br>
        </div>
        <div>Is there any way to find out the available functions in the
          <font face="monospace, monospace">Visualizer.js</font> script
          and call them from our custom html file? What we intend to do
          is to update the <font face="monospace, monospace">index.html</font>
          file and</div>
        <div>a. add a javascript function which will accept a filename
          to be rendered</div>
        <div>b. once the filename is received by this function, it will
          call the visualizer and display the specified file</div>
        <div>c. in the visualizer page, the open files tab should be
          hidden.</div>
        <div><br>
        </div>
        <div>Please let me know if you require any clarification.</div>
        <div><br>
        </div>
        <div>Cheers & Best Wishes,<br>
        </div>
        <div>
          <div>
            <div class="m_-2985665748455820593m_7449516894874276934m_707051543154546495m_4495136292653519199gmail_signature">
              <div dir="ltr">
                <div>Debopam</div>
                <div>------------------------------<wbr>-</div>
                <div><br>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="m_-2985665748455820593m_7449516894874276934m_707051543154546495m_4495136292653519199mimeAttachmentHeader"></fieldset>
      <br>
      </div></div><pre>______________________________<wbr>_________________
Powered by <a class="m_-2985665748455820593m_7449516894874276934m_707051543154546495m_4495136292653519199moz-txt-link-abbreviated" href="http://www.kitware.com" target="_blank">www.kitware.com</a>

Visit other Kitware open-source projects at <a class="m_-2985665748455820593m_7449516894874276934m_707051543154546495m_4495136292653519199moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a>

Please keep messages on-topic and check the ParaView Wiki at: <a class="m_-2985665748455820593m_7449516894874276934m_707051543154546495m_4495136292653519199moz-txt-link-freetext" href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaV<wbr>iew</a>

Search the list archives at: <a class="m_-2985665748455820593m_7449516894874276934m_707051543154546495m_4495136292653519199moz-txt-link-freetext" href="http://markmail.org/search/?q=ParaView" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a>

Follow this link to subscribe/unsubscribe:
<a class="m_-2985665748455820593m_7449516894874276934m_707051543154546495m_4495136292653519199moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/paraview</a>
</pre>
    </blockquote>
    <br>
  </div>

<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaV<wbr>iew</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/paraview</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div>
</div></blockquote></div></div></div></blockquote></div><br></div>