Skip to content
Discussion options

You must be logged in to vote

The following thread will answer your question.
https://discourse.holoviz.org/t/trame-support-in-panel-to-fully-support-vtk/5275/1
The conclusion is that PyVista relies on the help of ipywidgets to plot on Jupyter. Therefore, in order to display PyVista in the browser, a framework is needed to display the output of ipywidgets in the browser, such as Panel from the Holoviz project.
Edit: Here is the code and output.

import panel as pn
import pyvista as pv
from IPython.display import IFrame
from pyvista import examples


def handler(viewer, src, **kwargs):
    return IFrame(src, "75%", "500px")


# Load the statue mesh
mesh = examples.download_nefertiti()
mesh.rotate_x(-90.0, inplace=True)  #…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@tkoyama010
Comment options

Comment options

You must be logged in to vote
3 replies
@tkoyama010
Comment options

Answer selected by gsal
@gsal
Comment options

@Jupihawx
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants