Skip to content

Commit

Permalink
fix(pvw): Update to latest pvw and wslink
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Aug 24, 2021
1 parent d37f378 commit 2c18a67
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 37 deletions.
20 changes: 10 additions & 10 deletions dist/Visualizer.js

Large diffs are not rendered by default.

27 changes: 12 additions & 15 deletions documentation/content/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,29 @@ ParaView already come with Visualizer and allow you to run it from the command l

```macOS
$ cd paraview.app/Contents
$ ./bin/pvpython \
./Resources/web/visualizer/server/pvw-visualizer.py \
--content ./Resources/web/visualizer/www/ \
--data $PWD/data \
$ ./bin/pvpython \
-m paraview.apps.visualizer \
--data $PWD/data \
--port 8080
==> Open your browser to http://localhost:8080/
```

```Linux
$ cd ParaView-5.6.0-Linux-64bit
$ ./bin/pvpython \
./share/paraview-5.6/web/visualizer/server/pvw-visualizer.py \
--content ./share/paraview-5.6/web/visualizer/www/ \
--data $PWD/share/paraview-5.6/data \
$ ./bin/pvpython \
-m paraview.apps.visualizer \
--data $PWD/data \
--port 8080
==> Open your browser to http://localhost:8080/
```

```Windows
$ cd ParaView-5.6.0-Windows-64bit
$ .\bin\pvpython.exe \
share\paraview-5.6\web\visualizer\server\pvw-visualizer.py \
--content share\paraview-5.6\web\visualizer\www\ \
--data "C:\...full_path...\data" \
$ .\bin\pvpython.exe \
-m paraview.apps.visualizer \
--data "C:\...full_path...\data" \
--port 8080
==> Open your browser to http://localhost:8080/
Expand All @@ -63,10 +60,10 @@ $ npm install -g pvw-visualizer
$ Visualizer --paraview /Applications/paraview.app --data ~/Desktop
```

For production usage, ParaView Visualizer should be deployed within your Web infrastructure following the proper requirements:
For production usage, ParaView Visualizer should be deployed within your Web infrastructure following the proper requirements:

1) Serve the Visualizer application to the client (Static content: JS + HTML) using any kind of Web server (Apache, Nginx, Tomcat, Node...).
2) Enable the client to start a new ParaView process on the server side (Cluster). We provide a generic launcher implementation using Python which could be replaced with something more appropriate to your infrastructure.
2) Enable the client to start a new ParaView process on the server side (Cluster). We provide a generic launcher implementation using Python which could be replaced with something more appropriate to your infrastructure.
3) Configure your network to forward the WebSocket connection to the proper backend host running the ParaView server.

For better rendering performance, the ParaView server should run on a GPU machine.
Expand Down Expand Up @@ -118,7 +115,7 @@ Alternatively, download and run [node](http://nodejs.org/).

### Install pvw-visualizer

This is useful if you want to embed Visualizer within your own application or just use some Visualizer components.
This is useful if you want to embed Visualizer within your own application or just use some Visualizer components.

``` bash
$ npm install pvw-visualizer --save
Expand Down
7 changes: 5 additions & 2 deletions documentation/content/index.jade
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
layout: index
description: Full feature ParaViewWeb application
subtitle: The ParaView like application in the Web
cmd: npm install -g pvw-visualizer
cmd: pvpython -m paraview.apps.visualizer
comments: false
---

Expand All @@ -13,7 +13,10 @@ ul#intro-feature-list
h3.intro-feature-title
a(href="https://www.npmjs.com/package/pvw-visualizer").link Releases
img(style="padding-left: 25px",src="https://badge.fury.io/js/pvw-visualizer.svg")
p.intro-feature-desc ParaView Visualizer is available via npm and should be used via Webpack or Browserify within your project using standard ES6 import syntax for embedded usage.
p.intro-feature-desc
| ParaView Visualizer is available inside
a(href="https://www.paraview.org/download/").link ParaView
| and can be run via its Python environment (pvpython) using the command line listed above.

li.intro-feature-wrap
.intro-feature
Expand Down
53 changes: 45 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
"reselect": "4.0.0",
"kw-web-suite": "8.0.0",
"kw-doc": "1.3.1",
"paraviewweb": "3.2.14",
"paraviewweb": "3.2.21",
"vtk.js": "19.2.2",
"wslink": "0.1.11"
"wslink": "1.0.6"
},
"scripts": {
"validate": "prettier --config ./prettier.config.js --list-different \"src/**/*.js\"",
Expand Down

0 comments on commit 2c18a67

Please sign in to comment.