Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kitware/trame-react

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kitware/trame-react

React wrapper to trame-iframe

  • 1.2.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
12
decreased by-94.47%
Maintainers
0
Weekly downloads
 
Created
Source

React/trame application

Requires a paraview 5.10+

Virtual environment

virtualenv .venv
source .venv/bin/activate
pip install -r trame-app/requirements.txt

trame application

Run trame-app

cd trame-app
path/to/pvpython ./app.py --port 8080 --server --venv absolute/path/to/.venv

React Application

Setup

In an other terminal:

npm install

Apps communication

Before launching the streamlit app, please modify .venv/lib/python3.9/site-packages/trame_iframe/module/serve/trame-iframe.umd.js file:

Change in "Communicator" section:

window.postMessage(e,"*");

by

window.top.postMessage(e,"*");

Open localhost:8081 on your web browser

FAQs

Package last updated on 23 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc