Code Monkey home page Code Monkey logo

Comments (8)

chrisjsewell avatar chrisjsewell commented on May 22, 2024

So, given the error message, I guess the first question to ask is; have you (pip) installed ipywidgets >= 4.0

from ipyvolume.

maartenbreddels avatar maartenbreddels commented on May 22, 2024

Hi Casper,

the conda forge version is 0.3.x, pip has the 0.4.x alpha release, which you can install using the --pre argument. Make sure you install ipywidgets 7:

$ pip install ipywidgets~=7.0.0b1

should work (b3 might also work, but I didn't test it yet)
Hope this is useful, please let me know if there can be something improved for the installation instructions. I have to update setup.py to avoid this.

cheers,

Maarten

from ipyvolume.

cvisl avatar cvisl commented on May 22, 2024

@chrisjsewell Yes I have ipywidgets installed:

(hemosphere) casperl@surfsara-nghk:~$ pip list | grep ipywidgets
ipywidgets (7.0.0b2)

But ok, I found out what I did wrong I only used the github installation instructions which miss the activation of the ipywidgets nbextension given in the documentation page of ipyvolume

I wanna run it from the source code cause I am trying to figure out how to plot a mesh and how the mesh is formatted within ipyvolume so I can plot my own meshes. I see that as an input in the example you have 3, 40x40, np arrays? How does that for example relate to a set of vertices and a set triangles defined by the vertices, which is normally used to draw meshes? In the code their is no/sparse documentations and comments to figure out how it works.

Sorry for all the questions that might be obvious but wanna try it out with my own geometry and test the limits of ipyvolume when it comes to high poly simulation data.

But besides the questions the issue can be closed, cause the initial problems are solved.

Cheers,
Casper

from ipyvolume.

maartenbreddels avatar maartenbreddels commented on May 22, 2024

Hi Casper,

I've updated the installation instructions.
Yes, there is no documentation yet on meshes, there should be once 0.4 will be released. For now, you could take a look at https://github.com/maartenbreddels/ipyvolume/blob/8445780cb9cb44c84be974cc8804c55e775bfde0/docs/source/mesh.ipynb .
Take a look at plot_mesh, and plot_trisurf, where the first assumes a regular grid, and the last a series of triangles. Hope to have more proper documentation soon, and feedback is always welcome!

cheers,

Maarten

from ipyvolume.

maartenbreddels avatar maartenbreddels commented on May 22, 2024

The documentation is a bit better now at:
http://ipyvolume.readthedocs.io/en/latest/mesh.html
API docs still needs some work (will keep this open until)

from ipyvolume.

cvisl avatar cvisl commented on May 22, 2024

Hey Maarten,
Thanks for pointing me to the trisurf function that is indeed what I need. Now I am gonna stress test ipyvolume and see if it can take high poly simulations ;).

Was wandering though, why do you pass the x, y and z coords for the vertices separately? Not that it really matters but was wandering what the idea behind it was, cause it caused my initial confusion on how the mesh was formatted.

Thanks again, I think all of this looks very valuable for me. Besides that I have not thought about customized widgets within Jupyter notebook which for me is an eye opener for a lot of other problems I have.

from ipyvolume.

maartenbreddels avatar maartenbreddels commented on May 22, 2024

I think i'm gonna change that, for performance it's better to have the vertices in a single array. The idea was that you can do:

scatter.x = x * 2 +1

for instance. But this behaviour can be emulated using properties.
Let me know what you think of the performance!

from ipyvolume.

maartenbreddels avatar maartenbreddels commented on May 22, 2024

Since you've got it working, I'll close this, I'm happy to hear performance issues separately.

from ipyvolume.

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.