-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
py.examples do not work in conda installed ipyvolume and install from source does not work #36
Comments
So, given the error message, I guess the first question to ask is; have you (pip) installed ipywidgets >= 4.0 |
Hi Casper, the conda forge version is 0.3.x, pip has the 0.4.x alpha release, which you can install using the $ pip install ipywidgets~=7.0.0b1 should work (b3 might also work, but I didn't test it yet) cheers, Maarten |
@chrisjsewell Yes I have ipywidgets installed:
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, |
Hi Casper, I've updated the installation instructions. cheers, Maarten |
The documentation is a bit better now at: |
Hey Maarten, 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. |
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. |
Since you've got it working, I'll close this, I'm happy to hear performance issues separately. |
I tried to get ipyvolume running on my system but I only get several parts to work when I install ipyvolume via anaconda install and the other methods don't work at all.
For the anaconda version it installed perfectly and the volume examples work but when I try the klein_bottle example it says that examples don't exist:
And when I try to install ipyvolume through pip or through installing it with the source code I get the following errors in the chrome developer tools:
The text was updated successfully, but these errors were encountered: