zachmullen / trame-server-browser

Server browser / remote connection widget for trame

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trame Widget: File Browser

This widget can be used in a trame project by the following procedure:

Clone this repository to your machine. In your trame environment, perform an installation of this widget:

pip install [path/to/this/repository]

Invoke the trame Engine and UI classes for this widget in your trame project.

from serverbrowser import engine as serverbrowser_engine
...
serverbrowser_engine.initialize(server, self.state, self.ctrl, self.vtk_pipeline)
from serverbrowser.widget import ServerBrowser

Run the trame application (follow instructions for that project).

Development

After making changes to the vue component for the widget, be sure to build it for trame to use the compiled code. You may need to reinstall with pip in your trame environment if you did not install with the editable (-e) option.

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

About

Server browser / remote connection widget for trame


Languages

Language:Vue 69.9%Language:Python 13.0%Language:TypeScript 6.5%Language:HTML 6.1%Language:JavaScript 4.4%