Comments (8)
So, given the error message, I guess the first question to ask is; have you (pip) installed ipywidgets >= 4.0
from ipyvolume.
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.
@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.
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.
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.
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.
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.
Since you've got it working, I'll close this, I'm happy to hear performance issues separately.
from ipyvolume.
Related Issues (20)
- Error in JupyterLab HOT 1
- Creating movie from 3D Arrays
- Ambient lighting example in documentation no longer works
- 404 GET Errors When Trying to Run ipyvolume on Jupyter Notebook HOT 6
- Developer installation HOT 4
- 3D bar chart ? HOT 1
- Update @jupyterlab/builder for better metadata, fewer deps
- Ipyvolume cannot be imported in Jupyterlite: KeyError: 'emscripten' HOT 3
- Multi volume imaging example not working on 0.6.0 HOT 1
- quickvolshow and showvol crashes on VS Code HOT 3
- type object 'DataImage' has no attribute '_instance_inits' when importing ipyvolume HOT 3
- accept python lists in pylab.plot (not only numpy)
- Some frames are empty in animated scatter HOT 1
- Failed to create view for 'ScatterView' from module 'ipyvolume' with model 'ScatterModel' from module 'ipyvolume' undefined HOT 1
- Plots not rendering in Google Colab HOT 3
- Error when changing Camera HOT 2
- Syntaxis error in widgets.py: HOT 2
- Volshow and Scatter plot issues HOT 5
- partially initialized module 'ipyvolume' has no attribute '_version' (most likely due to a circular import) HOT 1
- Blank display when k3d is installed in the same environment
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ipyvolume.