Skip to main content

Jupyter-Dash-VTK-Viewer (jdvv)

image

Intro and Motivation

There are an ever growing number of 3d visualization tools in python and for jupyter. In my opinion VTK by Kitware provides the most complete set of tools for this purpose. The learning curve is a bit steep and the syntax isn't always particularly pythonic (often the underlying C++ bleeds through) but it is top notch. For those wanting a bit more user friendly and pythonic "batteries included" approach, have a look at PyVista.

The motivation for this small vtk-viewer is to make viewing vtk objects easier from within jupyter lab. PyVista and VTK both offer a great viewer that can be launched external to jupyter lab in a QT window and this works great. The purpose of this package is to provide a similar experience within jupyter lab by taking advantage of the dash-vtk suite of components.

TL;DR

View VTK (or PyVista) objects either inline or in a separate tab within Jupyter Lab. A handful of controls are provided.

Quickstart

pip install jdvv

A Basic example

from jdvv import viewer
import pyvista as pv

# make a simple vtk object
cyl = pv.Cylinder()

# give it a name to be used in the viewer controls
cyl.name = "my cylinder"

# view inline
viewer.inline(cyl)

# view in a new tab within juptyer lab
viewer.tab(cyl)

# view externally in a separate browser tab
viewer.external(cyl)

image

Features

  • view inline, tab without needing to leave Jupyter Lab or view as an external browswer tab
  • view multiple objects, separate controls for each
  • Controls
    • visibility on/off
    • color & oppacity for objects with no associated data
    • Select color map, set min/max and opacity for object with attached arrays
    • change point size
    • select surface representation (wireframe, surface, volume)
    • Change background colors

Metadata

Release files for jdvv 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jdvv 0.0.2
File Size Uploaded Provenance Actions
jdvv-0.0.2.tar.gz 7.7 kB Without provenance Details for jdvv-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jdvv 0.0.2
File Interpreter ABI Platform Actions
jdvv-0.0.2-py3-none-any.whl Python 3 none any Details for jdvv-0.0.2-py3-none-any.whl

Total release size: 15.9 kB

Release files / jdvv-0.0.2.tar.gz

Download URL jdvv-0.0.2.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5689655b4e5ffe257d3a3d1bd30f5bcbed6acdfdfecf186a14e7faa76602d919
BLAKE2b-256 checksum
How to use checksums
303b65f9d63c8c517d3279b62030b40be3261e039f9065a075a011c78f5cc676
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

Release files / jdvv-0.0.2-py3-none-any.whl

Download URL jdvv-0.0.2-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ec884482bd00dd5e4080ef474f685c0ceb83f9771aa27c6461e178c9184c00a
BLAKE2b-256 checksum
How to use checksums
c11e9081f5e4256165fb023425d1c9a4ecae3a4200725f77a966686c28fa5b55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

Security for jdvv 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page