On 7/31/18 2:21 AM, mys...@ravijoshi.xyz wrote:
> Hi,
>
> I am using mayavi in Jupyter. However, I am using the separate mayavi window
> for visualization, since I like it.
>
> Please see the screenshot of the notebook in the following shared DropBox
> link- https://www.dropbox.com/s/f35ypsbrg8vzsfb/mayavi-jupyter.png?dl=0
>
> As you can see from the above screenshot that in a cell, I already have
> activated mayavi visualizer. Hence I can see a popped up window. However, I
> want to visualize another data in the second instance of mayavi visualizer.
> Right now, to see the second window, I need to close the currently active
> window.
That is because you have not setup Jupyter to use a UI window and continue to
allow interactivity. You must always start with
%gui qt
What this does is to activate the UI toolkit so that windows can be popped up
without blocking Jupyter/IPython.
This is discussed here prominently at the start of the page:
http://docs.enthought.com/mayavi/mayavi/mlab.html
It is also mentioned in the tutorial material here:
https://github.com/prabhuramachandran/mayavi-tutorial/slides
You may find the first hour or so of the tutorial here useful to watch:
https://www.youtube.com/watch?v=r6OD07Qq2mw
> My questions are following-
> 1) Can we open multiple instances of mlab.figure()?
> 2) Is it possible to open new mayavi visualizer window without closing the
> currently open mayavi visualizer?
Yes, to both so long as you run %gui qt right up at the start.
cheers,
Prabhu
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
MayaVi-users mailing list
MayaVi-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mayavi-users