enthought / mayavi

3D visualization of scientific data in Python
http://docs.enthought.com/mayavi/mayavi/
Other
1.32k stars 285 forks source link

Slow rendering in jupyter notebook mode #454

Open choldgraf opened 8 years ago

choldgraf commented 8 years ago

The new jupyter notebook mode is a great addition to Mayavi, though I've found it to be much, much slower than using the default plotting mode. For example, plotting a triangular mesh takes ~1 second normally, but after activating notebook mode, it takes more like 10-30 seconds.

E.g.,

It takes <1 second normally but here it takes much longer.

Are there any optimizations under the hood that could speed this up?

prabhuramachandran commented 6 years ago

Wow, that is very slow. I am not sure how it can be fixed. I think going forward it might be a good idea to see if we can use ipyvolume as a "frontend" on the notebook. The X3D idea was just a start to get something somewhat usable on the notebook.

choldgraf commented 6 years ago

+1 I think that's a nice idea...makes sense to use threejs for this since it'll have a much larger OS community behind it. In fact, MNE-python (the project I was doing this 3D viz for) actually has a GSOC student helping to prototype 3D viz with ipyvolume :-)