GithubHelp home page GithubHelp logo

Comments (3)

jourdain avatar jourdain commented on June 11, 2024 2

I think I know why...

Sorry to go into the details, but the remote setup use vtk-osmesa while the local one (working) is using regular vtk.
When the scene get serialized, we have a mapping between the server objects and the vtk-js ones. And I think the issue is that we are missing a mapping when the class is from osmesa vs xlib.

So to fix that issue we will need to properly register that missing class here, but for that we would need to get the name of the missing serializable class. Which you might be able to get it you do the following locally to run with osmesa

pip uninstall vtk
pip install vtk-osmesa --extra-index-url https://wheels.vtk.org

I think by default, you should see some log either on the python side or on the client side.
If it is on the client side, you might be able to know which class name is the culprit right away without any new testing.

HTH

from pyvista.

MatthewFlamm avatar MatthewFlamm commented on June 11, 2024

This looks like a duplicate of #5361 although this one more linearly describes the problem.

from pyvista.

evrose54 avatar evrose54 commented on June 11, 2024

@MatthewFlamm sorry for missing that issue you mentioned. Another important part of this I forgot to add is that the MultiBlock Object[s] is actually rendered correctly when I build and host my documentation locally. It's with the remote build/hosting that the MultiBlock object[s] isn't rendered at all. I'll attach two screen captures which show what I'm talking about. I built the documentation with the same example for both local and remote.

I also was able to remotely render the PolyData + MultiBlock objects fine using Trame, and they rendered appropriately using a custom embedded viewer I made which stemmed off of VTK's OfflineLocalView Example.

Here is the pyvista-plot directive used locally in the docs I built:

Screen.Recording.2024-03-21.at.9.27.36.AM.mov

And here is the same process done, only it's been hosted/rendered remotely.

Screen.Recording.2024-03-21.at.9.32.49.AM.mov

from pyvista.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.