Scivianna: SCIentific VIsualizer for simulAtioN aNAlysis
Scivianna is an open-source Python simulation geometry and result visualizer based on Holoviz Panel. It provides a powerful and flexible environment for visualizing 1D plots and 2D geometries simultaneously, with support for real-time simulation result visualization through code coupling.
Quick Start
Basic Usage
from scivianna.layout.gridstack import GridStackLayout
from scivianna.panel.visualisation_panel import VisualizationPanel
from scivianna.slave import ComputeSlave
# Create a slave with your data interface
slave = ComputeSlave(YourInterface)
# Create a visualization panel
panel = VisualizationPanel(slave, name="My Panel")
# Create a layout and add the panel
layout = GridStackLayout({"panel1": panel})
# Display
layout.show()
Key Features
1. Simultaneous 1D, 2D, 3D and DataFrame Visualization
Visualize line plots, 2D geometries, 3D VTK-based plots, and pandas DataFrames together in an integrated dashboard.
2. Real-Time Code Coupling
Connect to simulations in real-time using the C3PO coupling platform and ICOCO interface. The visualizer can receive field updates during simulation execution.
3. Generic Data Interfaces
Scivianna provides flexible interfaces to read various data formats:
- MED (Salome MED file format)
- VTK (Visualization Toolkit files)
- CSV (Structured time-series data)
- Custom interfaces via
GenericInterfacebase class
4. Remote Server Access
Access the visualizer from a distant computer using Panel's server/client architecture. Perfect for running simulations on HPC clusters while visualizing locally.
5. Extensible Architecture
Extensions can be added to panels for additional functionality:
- Field selectors
- Line selection tools
- File loaders
- Layout management
- AI assistant integration
Code Coupling with C3PO
Scivianna integrates with the C3PO coupling tool through the ICOCO interface:
from scivianna.coupling.icoco import LayoutProblem
from scivianna.layout.gridstack import GridStackLayout
# Create your layout
layout = GridStackLayout(panels)
# Create the coupling problem
problem = LayoutProblem(layout, title="Coupled Simulation")
# Use with C3PO
# problem.initialize()
# problem.setInputMEDDoubleField("panel_name@field_name", field_data)
Requirements
- Python >= 3.8, < 4
- panel
- holoviews
- bokeh / jupyter_bokeh
- matplotlib
- numpy / pandas
- shapely / geopandas
- rasterio
- icoco (for coupling features)
- panel_material_ui
Repository Organization
scivianna/
├── src/
│ └── scivianna/ # Main package source code
│ ├── agent/ # LLM/Agent integration tools
│ ├── component/ # UI components (GridStack, Overlay, SplitJS, R3F)
│ ├── coupling/ # C3PO/ICOCO coupling interface
│ ├── data/ # Data containers and workers
│ ├── extension/ # Panel extensions (axes, layout, file loader, etc.)
│ ├── icon/ # UI icons
│ ├── input_file/ # Sample input files
│ ├── interface/ # Data interfaces (MED, VTK, CSV, DataFrame, generic)
│ ├── layout/ # Layout managers (GridStack, Split)
│ ├── panel/ # Visualization panels (1D, 2D, 3D, DataFrame) and GUI
│ ├── plotter_1d/ # 1D plotting backends
│ ├── plotter_2d/ # 2D plotting backends (grid, polygon)
│ ├── plotter_3d/ # 3D plotting backends (VTK.js)
│ ├── plotter_dataframe/ # DataFrame display backend
│ └── utils/ # Utilities (mesh tools, serialization, etc.)
│
├── tests/ # Test suite
├── utils/ # Development utilities
└── results/ # Example outputs
Core Modules
| Module | Purpose |
|---|---|
| panel/ | Visualization panels with GUI controls, extensions, and overlay components (1D, 2D, 3D, DataFrame) |
| layout/ | Layout managers for arranging multiple panels (GridStack, Split) |
| interface/ | Data interfaces for reading various file formats (MED, VTK, CSV, DataFrame, generic) |
| coupling/ | ICOCO-compatible interface for code coupling with C3PO |
| data/ | Data containers and workers for handling simulation data |
| extension/ | Extendable components for axes, field selection, file loading, etc. |
| plotter_1d/ | 1D plotting backends using Bokeh |
| plotter_2d/ | 2D plotting backends using Bokeh (polygon and grid modes) |
| plotter_3d/ | 3D plotting backends using VTK.js |
| plotter_dataframe/ | DataFrame display backend for pandas DataFrames |
| component/ | Custom Panel components including React Three Fiber integration |
Metadata
Release files for scivianna 0.9.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| scivianna-0.9.4.tar.gz | 890.4 kB | Without provenance | Details for scivianna-0.9.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scivianna-0.9.4-py3-none-any.whl | Python 3 | none | any | Details for scivianna-0.9.4-py3-none-any.whl |
Total release size: 1.9 MB
Release files / scivianna-0.9.4.tar.gz
| Download URL | scivianna-0.9.4.tar.gz |
|---|---|
| Size | 890.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
758c5dc52cef3d8785de458379868fa0d61085d85476674b036ba950ea53d3a4
|
|
BLAKE2b-256 checksum How to use checksums |
a1312062388f776f7f2107b5f11fb543bff133b7ce3d0d96be31c088a418932d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|
Release files / scivianna-0.9.4-py3-none-any.whl
| Download URL | scivianna-0.9.4-py3-none-any.whl |
|---|---|
| Size | 960.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7316f1ccca2bf10d17cb618295eb9c3209e89b569532b25b978964450edcfddc
|
|
BLAKE2b-256 checksum How to use checksums |
6ac84ff528615814f7913df2033485ba80d54ede7fbd24109f3908f05573e922
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|
Security for scivianna 0.9.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.