# How to use vtk to display the figures on my computer from a remote server?

**URL:** https://discourse.vtk.org/t/how-to-use-vtk-to-display-the-figures-on-my-computer-from-a-remote-server/8059
**Category:** Support
**Created:** [March 15, 2022, 1:39pm UTC](https://discourse.vtk.org/t/how-to-use-vtk-to-display-the-figures-on-my-computer-from-a-remote-server/8059 "2022-03-15T13:39:07Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Cc-YY](https://discourse.vtk.org/user_avatar/discourse.vtk.org/cc-yy/32/4836_2.png) [@Cc-YY](https://discourse.vtk.org/u/Cc-YY)
#### Post date: [March 15, 2022, 1:39pm UTC](https://discourse.vtk.org/t/how-to-use-vtk-to-display-the-figures-on-my-computer-from-a-remote-server/8059/1 "2022-03-15T13:39:07Z")

</div>

Hello, I’m using vscode with Remote X11 extension and mobaXterm to connect the linux server and display the figures on my computer.  
It works well when I use the functions like matplotlib.pyplot.imshow().  
But when I use the functions like mayavi.mlab.figure() or mayavi.mlab.points3d(), it can not work properly with the error:

 ![image](https://discourse.vtk.org/uploads/default/original/2X/8/836426ecc162a2a0db2ca6c97f86ce87a52f3f99.png)  
It seems there are some problems with the vtk and the OpenGL.

Later I’m told that X11 and mobaXterm are not supported by vtk, so I’d like to ask how to use vtk to display the figures on my computer from a remote server. Better if it works with vscode. Thanks a lot.

---

<div class="post-metadata">

### Author: ![danlipsa](https://discourse.vtk.org/user_avatar/discourse.vtk.org/danlipsa/32/390_2.png) [@danlipsa](https://discourse.vtk.org/u/danlipsa)
#### Post date: [March 15, 2022, 5:07pm UTC](https://discourse.vtk.org/t/how-to-use-vtk-to-display-the-figures-on-my-computer-from-a-remote-server/8059/2 "2022-03-15T17:07:23Z")

</div>

Yes, you can search for X forwarding OpenGL for many discussions on this topic.

Possible solutions include turbovnc + virtualgl or nomachine.  
These will allow you to run opengl programs from a remote machine.

Dan

---

<div class="post-metadata">

### Author: ![Cc-YY](https://discourse.vtk.org/user_avatar/discourse.vtk.org/cc-yy/32/4836_2.png) [@Cc-YY](https://discourse.vtk.org/u/Cc-YY)
#### Post date: [March 16, 2022, 2:50am UTC](https://discourse.vtk.org/t/how-to-use-vtk-to-display-the-figures-on-my-computer-from-a-remote-server/8059/3 "2022-03-16T02:50:28Z")

</div>

Thanks a lot, I’ll try searching.

---

<div class="post-metadata">

### Author: ![danlipsa](https://discourse.vtk.org/user_avatar/discourse.vtk.org/danlipsa/32/390_2.png) [@danlipsa](https://discourse.vtk.org/u/danlipsa)
#### Post date: [March 16, 2022, 1:20pm UTC](https://discourse.vtk.org/t/how-to-use-vtk-to-display-the-figures-on-my-computer-from-a-remote-server/8059/5 "2022-03-16T13:20:50Z")

</div>

Not sure what solution involving WSL you are referring to.

turbovnc can be tunneled through ssh.  
[https://rawcdn.githack.com/TurboVNC/turbovnc/2.2.7/doc/index.html#hd006001](https://rawcdn.githack.com/TurboVNC/turbovnc/2.2.7/doc/index.html#hd006001)

nomachine has its own protocol which is encrypted.  
For the free nomachine version only one user can connect to the server, I think they have a paid version where several users can connect to the server.  
For turbovnc+virtualgl you can have several users connecting to the server.

---

<div class="post-metadata">

### Author: ![danlipsa](https://discourse.vtk.org/user_avatar/discourse.vtk.org/danlipsa/32/390_2.png) [@danlipsa](https://discourse.vtk.org/u/danlipsa)
#### Post date: [March 16, 2022, 1:31pm UTC](https://discourse.vtk.org/t/how-to-use-vtk-to-display-the-figures-on-my-computer-from-a-remote-server/8059/6 "2022-03-16T13:31:14Z")

</div>

Seems nomachine supports ssh as well  
[https://knowledgebase.nomachine.com/AR04S01121#:~:text=NoMachine%20provides%20its%20own%20web,supported%20from%20TLS%201.2%20ongoing](https://knowledgebase.nomachine.com/AR04S01121#:~:text=NoMachine%20provides%20its%20own%20web,supported%20from%20TLS%201.2%20ongoing).
