# how to use trame

**URL:** https://discourse.vtk.org/t/how-to-use-trame/10855
**Category:** Web
**Created:** [March 2, 2023, 9:01am UTC](https://discourse.vtk.org/t/how-to-use-trame/10855 "2023-03-02T09:01:35Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![jane](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/j/ecb155/32.png) [@jane](https://discourse.vtk.org/u/jane)
#### Post date: [March 2, 2023, 9:01am UTC](https://discourse.vtk.org/t/how-to-use-trame/10855/1 "2023-03-02T09:01:35Z")

</div>

Hello! How to implement multi-user problems with the TRARE framework. Note that for multi-users you need to use and configure a launcher.

---

<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: [March 2, 2023, 11:46pm UTC](https://discourse.vtk.org/t/how-to-use-trame/10855/2 "2023-03-02T23:46:54Z")

</div>

We expose a [docker image](https://github.com/Kitware/trame/tree/master/docker) on which you can install your trame app. That docker image will handle the multi-user setup for you.

We have a [single file trame app example](https://github.com/Kitware/trame-app-cone) making use of that docker.

Also if you use the [cookiecutter](https://github.com/Kitware/trame-cookiecutter) to build your trame application it will provide a setup for bundling your app into such docker image as well.

---

<div class="post-metadata">

### Author: ![jane](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/j/ecb155/32.png) [@jane](https://discourse.vtk.org/u/jane)
#### Post date: [March 30, 2023, 12:58pm UTC](https://discourse.vtk.org/t/how-to-use-trame/10855/3 "2023-03-30T12:58:46Z")

</div>

/deploy/server/venv/bin/python: Error while finding module specification for ‘wslink.launcher’ (ModuleNotFoundError: No module named ‘wslink’)

---

<div class="post-metadata">

### Author: ![jane](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/j/ecb155/32.png) [@jane](https://discourse.vtk.org/u/jane)
#### Post date: [March 31, 2023, 7:44am UTC](https://discourse.vtk.org/t/how-to-use-trame/10855/4 "2023-03-31T07:44:06Z")

</div>

Traceback (most recent call last):  
File “/usr/local/bin/visualis”, line 11, in   
load\_entry\_point(‘visualis==1.0.0’, ‘console\_scripts’, ‘visualis’)()  
File “/usr/lib/python3.6/site-packages/pkg\_resources/ **init**.py”, line 476, in load\_entry\_point  
return get\_distribution(dist).load\_entry\_point(group, name)  
File “/usr/lib/python3.6/site-packages/pkg\_resources/ **init**.py”, line 2700, in load\_entry\_point  
return ep.load()  
File “/usr/lib/python3.6/site-packages/pkg\_resources/ **init**.py”, line 2318, in load  
return self.resolve()  
File “/usr/lib/python3.6/site-packages/pkg\_resources/ **init**.py”, line 2324, in resolve  
module = **import** (self.module\_name, fromlist=[‘ **name** ’], level=0)  
File “/usr/local/lib/python3.6/site-packages/visualis/ **init**.py”, line 1, in   
from .app import main  
File “/usr/local/lib/python3.6/site-packages/visualis/app/ **init**.py”, line 1, in   
from .main import main  
File “/usr/local/lib/python3.6/site-packages/visualis/app/main.py”, line 1, in   
from trame import setup\_dev  
ImportError: cannot import name ‘setup\_dev’

---

<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: [March 31, 2023, 2:24pm UTC](https://discourse.vtk.org/t/how-to-use-trame/10855/5 "2023-03-31T14:24:13Z")

</div>

What are you asking? How to delete the import for the setup\_dev or something else?

That part was deprecated to use the new infrastructure that support hot reloading…

---

<div class="post-metadata">

### Author: ![jane](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/j/ecb155/32.png) [@jane](https://discourse.vtk.org/u/jane)
#### Post date: [April 4, 2023, 4:11am UTC](https://discourse.vtk.org/t/how-to-use-trame/10855/6 "2023-04-04T04:11:38Z")

</div>

Hi！How do I deploy the trame framework to a server?

---

<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: [April 5, 2023, 12:05am UTC](https://discourse.vtk.org/t/how-to-use-trame/10855/7 "2023-04-05T00:05:40Z")

</div>

If all the infromation above is not enough, you can use [that caprover demo](https://github.com/Kitware/trame-app-cone).

---

<div class="post-metadata">

### Author: ![jane](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/j/ecb155/32.png) [@jane](https://discourse.vtk.org/u/jane)
#### Post date: [April 6, 2023, 7:06am UTC](https://discourse.vtk.org/t/how-to-use-trame/10855/8 "2023-04-06T07:06:45Z")

</div>

app.py we run the trame framework, two URLs appear, why can’t the second one be accessed? Why can’t the network be accessed?  
 ![image](https://discourse.vtk.org/uploads/default/original/2X/0/088ff57ce84efdca95f97c6764007db53abc0447.png)

---

<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: [April 6, 2023, 2:34pm UTC](https://discourse.vtk.org/t/how-to-use-trame/10855/9 "2023-04-06T14:34:35Z")

</div>

On linux, you need to set the host to 0.0.0.0 (`--host 0.0.0.0`) otherwise it is not accessible from another machine.

---

<div class="post-metadata">

### Author: ![dbtruong](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/d/f08c70/32.png) [@dbtruong](https://discourse.vtk.org/u/dbtruong)
#### Post date: [December 30, 2024, 6:44am UTC](https://discourse.vtk.org/t/how-to-use-trame/10855/10 "2024-12-30T06:44:39Z")

</div>

Hi @Sebastien_Jourdain  
I tried using wslink to connect to trame-server. How can the client send messages to be received by the trame-server?

---

<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: [December 30, 2024, 6:34pm UTC](https://discourse.vtk.org/t/how-to-use-trame/10855/11 "2024-12-30T18:34:08Z")

</div>

It might be easier to use the JS library for trame which rely on wslink.

> **[trame-client/js-lib at master · Kitware/trame-client](https://github.com/Kitware/trame-client/tree/master/js-lib)**
>
> Internal client side implementation of trame. Contribute to Kitware/trame-client development by creating an account on GitHub.

You can also look at the code to see which RPC + pub/sub endpoints we have with trame-server.
