# VTK Remote Server with C++

**URL:** <https://discourse.vtk.org/t/vtk-remote-server-with-c/6218>\
**Category:** Web\
**Created:** [July 21, 2021, 4:16pm UTC](https://discourse.vtk.org/t/vtk-remote-server-with-c/6218 "2021-07-21T16:16:07Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)\
**Post date:** [July 28, 2021, 11:01pm UTC](https://discourse.vtk.org/t/vtk-remote-server-with-c/6218/6 "2021-07-28T23:01:30Z")

</div>

Sorry for the late reply but like @lassoan is saying your VTK/C++ should be able to be reused as-is. It is true that you will have to create a Python front-end to your code but with the wrapping available within VTK you should be able to drive your C++ code fairly easily and only focus on what the client (web/html) needs to trigger on the server side. You can even encapsulate all your C++ calls inside a single C++ class that will only expose in Python (via vtk/python wrapping) what you need from the web side.

A project that you may want to look at is [PyWebVue](https://github.com/kitware/py-web-vue) (next gen VTK/ParaView-Web) and [that VTK example](https://github.com/Kitware/py-web-vue/tree/master/examples/01_cone/cone-vtk-remote-rendering) doing remote rendering

The example readme suggest to use the code from the repo but it might be easier to use the published version.

```auto
virtualenv vtk-web
source ./vtk-web/bin/activate
pip install pywebvue vtk==9.0.20210717.dev0
python ./examples/01_cone/cone-vtk-remote-rendering/app.py --port 1234

```

HTH

---

_[View the full topic](https://discourse.vtk.org/t/vtk-remote-server-with-c/6218)._
