enthought / mayavi

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

Mayavi in Jupyterlab #733

Open brey opened 6 years ago

brey commented 6 years ago

Hi all, does Mayavi has a compatible x3d extension for Jupyterlab?

uucokgis commented 6 years ago

I suppose that mayavi support x3d extension for jupyter. I'm not sure for jupyterlab because it's pretty new. However, you can try it out as reading here: http://docs.enthought.com/mayavi/mayavi/tips.html

prabhuramachandran commented 5 years ago

I am not sure, I haven't played with jupyterlab in a while or seen what it would take to support. Do you have any experience with this?

brey commented 5 years ago

I follow the development and I have recently switched from Jupyter since nowadays most of the basic extensions have been developed (matplotlib, bokeh, etc.) . As far as I understand, the issue is mainly that new extensions have to be developed with some constrains in JS. However, it might be as easy as recompiling. I am no sure though if it is up to the Mayavi community to provide this extension or the x3d community should. There is more info here https://jupyterlab.readthedocs.io/en/stable/user/extensions.html#user-extensions.

mwaskom commented 5 years ago

~Piling onto this ... the ipy backend (which is delightful in the jupyter notebook) also does not seem to work in jupyterlab. There are no errors, but also nothing happens.~

~Jupyter lab now has a 1.0 release so there should be a stable path for adaptation. Unfortunately I do not know anything what would need to be done to make it happen :)~

Apparently my version of jupyterlab and ipyevents extension were out of sync. After re-building everything, it actually does work. It's a little laggy when working with a large mesh object, but definitely useable. Awesome!

prabhuramachandran commented 5 years ago

Yes, it should work with jupyterlab. The latest ipyevents release fixed an issue allowing it to work. By this I mean the latest jupyter ipy backend, not the x3d backend.

michaelaye commented 4 years ago

test_plot3d() object is not interactive in JLab 2.0. new issue?

brey commented 4 years ago

test_plot3d() object is not interactive in JLab 2.0. new issue?

Indeed