Comments (29)
I This is probably a case of not starting the event loop: are you calling
'mlab.show()' or doing any specific action to start the event loop? If
not, your GUI is not live and will not respond interactively.
from mayavi.
Gael, Thank you for your quick response. I have tried to precede my call to
mlab.plot3d with mlab.show() with no change. A TVTK Scene opens with a
blank white field and declares (Not Responding) in the header. I also tried
the mlab.imshow(random.random((10,10))) example with the same result.
I have not gotten to the point where I am interested in working with the GUI
interactively. I'd just like to visualize the data I pass to plot3d.
Thanks for working with me. ~Zack
On Tue, Aug 21, 2012 at 4:13 PM, Gael Varoquaux [email protected]:
I This is probably a case of not starting the event loop: are you calling
'mlab.show()' or doing any specific action to start the event loop? If
not, your GUI is not live and will not respond interactively.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/43#issuecomment-7918351.
from mayavi.
On Tue, Aug 21, 2012 at 03:45:39PM -0700, Zack Brym wrote:
Gael, Thank you for your quick response. I have tried to precede my call
to
mlab.plot3d with mlab.show() with no change.
You need to put it afterwards. You should read the documentation on these
matters. Guess work is not the best use of your time.
from mayavi.
I've tried that as well to no avail before seeking your council. That's why
I assumed that perhaps you were suggesting it to precede my plot3d call to
"start the event loop."
On Tue, Aug 21, 2012 at 4:49 PM, Gael Varoquaux [email protected]:
On Tue, Aug 21, 2012 at 03:45:39PM -0700, Zack Brym wrote:
Gael, Thank you for your quick response. I have tried to precede my call
to
mlab.plot3d with mlab.show() with no change.You need to put it afterwards. You should read the documentation on these
matters. Guess work is not the best use of your time.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/43#issuecomment-7919215.
from mayavi.
Can you show me a minimum script where you have the problem.
By the way, it would be great to have this discussion on a mailing list,
such as the Mayavi mailing list, rather than an issue tracker: only the
Mayavi developers follow the issue trackers and thus the burden of
helping people out falls to us, that is 2 senior researchers that are
struggling with overcommitment.
Also, I'd like to apologize with the harsh tone of my previous reply
implying guess work. It was really unecessary and stupid.
Cheers,
Gaël
from mayavi.
Actually, make it one senior researcher since I've been so over committed that I've not been able to help Gaël. Gaël, thanks for all the work you have been putting on this over the last couple of years!
from mayavi.
@brymz -- Are you running all of these mayavi commands from an IPython session with a suitable gui? I.e. you should make sure you do the following:
$ export ETS_TOOLKIT=wx
$ ipython --gui=wx
Then everything should work as expected.
HTH.
Prabhu
from mayavi.
On Sun, Aug 26, 2012 at 7:04 AM, Prabhu Ramachandran <
[email protected]> wrote:
@brymz https://github.com/brymz -- Are you running all of these mayavi
commands from an IPython session with a suitable gui? I.e. you should make
sure you do the following:$ export ETS_TOOLKIT=wx
$ ipython --gui=wxfrom an iPython shell and the IDLE these commands return errors.
export ETS_TOOLKIT=wx
SyntaxError: invalid syntax
ipython --gui=wx
SyntaxError: can't assign to operator
from mayavi.
On Sun, Aug 26, 2012 at 3:04 AM, Gael Varoquaux [email protected]:
Can you show me a minimum script where you have the problem.
it would be great to have this discussion on a mailing list
import mayavi.mlab as my
x=[1,2,3,4]
y=[2,4,6,8]
z=[7,5,3,1]
my.plot3d(x,y,z)
***The code freezes before I can run a following command like my.show()
I also included my initial request on the epd listserve but have not yet
received a response.
from mayavi.
@brymz -- Sorry, the $ export ETS_TOOLKIT=wx is to be executed on your bash shell. I see you are using Windows and hence that makes no sense. How are you starting up IPython and what version of IPython is this?
from mayavi.
On Tue, Aug 28, 2012 at 12:45 PM, Prabhu Ramachandran <
[email protected]> wrote:
https://github.com/brymz How are you starting up IPython and what
version of IPython is this?I use the IDLE provided with the Enthought distribution or WindIDE 101.
Enthought installs Python 2.7.
from mayavi.
Ahh that explains it all. Mayavi will NOT work with IDLE and is not designed for it. The problem is IDLE runs on Tkinter which does not support the wxPython mainloop, so there is no easy way to have the wxPython GUI event loop running from within IDLE. You should use IPython to run Mayavi.
from mayavi.
On Tue, Aug 28, 2012 at 12:54 PM, Prabhu Ramachandran <
[email protected]> wrote:
You should use IPython to run Mayavi.
The code below run in iPython still produces the same frozen pane.
import mayavi.mlab as my
x=[1,2,3,4]
y=[1,2,3,4]
z=[1,2,3,4]
my.plot(x,y,z)
"""A TVTK Scene opens and immediately shows (Not Responding)"""
from mayavi.
Yes, but was IPython started with the wx backend, can you try this on the IPython shell:
%gui wx
And then retry importing mlab etc.?
from mayavi.
On Tue, Aug 28, 2012 at 1:05 PM, Prabhu Ramachandran <
[email protected]> wrote:
Yes, but was IPython started with the wx backend, can you try this on the
IPython shell:%gui wx
?
In [1:] %gui wx
Out[1:] <wx._core.App; proxy of <Swig Object of type 'wxPyApp *' at
0x1fcfce0>>
I was able to run export ETS_TOOLKIT=wx on a GitBash window, but ipython
--gui=wx returned ipython:command not found.
from mayavi.
Try this on IPython:
%gui wx
import mayavi.mlab as my
# your mlab example
And let us know.
from mayavi.
so, mayavi isn't compatible with idle? I have been able to run some scripts written in the idle and it ran successfully except for the colormap (which rendered the plot all black). Anyway, I'm not being able to plot a more specific kind of data from ndarrays, 1 x 1D and 2 x 2D, in mayavi. could this be due to idle using? If so should I code in IPython?
from mayavi.
Yes, it will not work with IDLE. You need to use either the Qt or wx backend on IPython.
from mayavi.
Compile what? Unfortunately, this is not the forum for general questions unrelated to mayavi issues.
from mayavi.
I met the same issue. Based on the answer here (http://stackoverflow.com/questions/5121574/wxpython-import-error), I downloaded wxversion.py from the WX svn repository: http://svn.wxwidgets.org/viewvc/wx/wxPython/trunk/wxversion/wxversion.py?content-type=text%2Fplain&view=co, and copied to python directory (in my case, C:\Anaconda\Lib\site-packages). Then, mayavi works fine.
from mayavi.
I am on linux, and when I plot using mayavi, I do not see any rendering. However, when I take a screenshot and then show the results, I get the correct 2D result. I use ipython and wx. If you know how I could fix it, please do let me know. Thanks.
from mayavi.
Can i have a look at the code?
Em 02/09/2014 17:38, "Arjun Jain" [email protected] escreveu:
I am on linux, and when I plot using mayavi, I do not see any rendering.
However, when I take a screenshot and then show the results, I get the
correct 2D result. I use ipython and wx. If you know how I could fix it,
please do let me know. Thanks.—
Reply to this email directly or view it on GitHub
#43 (comment).
from mayavi.
Hi @rcc26: I think its a Xming/Windows issue. I run my code on the server, and I forward X on a windows machine on which I run Xming. When I forward it on a OS X computer, the 3D rendering is fine. Let me know if you might still be interested in fixing this, or you do not support this use case. Thanks a lot for the quick reply.
from mayavi.
Are your drivers up to date in the windows machine? With your description I
cant think of other thing it might be :b
Em 02/09/2014 19:18, "Arjun Jain" [email protected] escreveu:
Hi @rcc26 https://github.com/rcc26: I think its a Xming/Windows issue.
I run my code on the server, and I forward X on a windows machine on which
I run Xming. When I forward it on a OS X computer, the 3D rendering is
fine. Let me know if you might still be interested in fixing this, or you
do not support this use case. Thanks a lot for the quick reply.—
Reply to this email directly or view it on GitHub
#43 (comment).
from mayavi.
Turns out I need Xming-mesa. All is good now! Thanks. 👍
from mayavi.
I'm happy for you, keep on it! Congrats :b
Em 02/09/2014 21:20, "Arjun Jain" [email protected] escreveu:
Turns out I need Xming-mesa. All is good now! Thanks. [image: 👍]
—
Reply to this email directly or view it on GitHub
#43 (comment).
from mayavi.
Seems to be solved. Closing.
from mayavi.
can any one of you please tell me how to remove my default mayavi ToolBar
import scipy as np
from mayavi import mlab
x,y = np.mgrid[-3:3:100j, -3:3:100j]
a = 0.3
a0 = 0.2
r1=np.sqrt((x-a)2 + y2)
values = np.sinc(-r1/a0)
mlab.surf(values, warp_scale='auto')
mlab.outline()
mlab.axes()
mlab.show()
from mayavi.
adding "mlab.show(stop=True)" may help to avoid "not responding mlab"
that works for me
from mayavi.
Related Issues (20)
- Mayavi, clip planes
- mayavi view (azimuth, elevation, distance) HOT 1
- Scaling Volume Slicer
- mayavi installation
- Incomplete Data Shown in Mayavi Window Plot
- QVTKRenderWindowInteractor.py _emit_wheel_event() will produce a NameError QWheelEvent undefined. HOT 1
- VTK rendering area does not scale with Qt Window change when using QT_SCALE_FACTOR for 4k displays
- I have encounter an error with ivtk.IVTKWithCrustAndBrowser
- Data containing NaN values
- Installation of Cadquery results in import error on Mayavi HOT 2
- Pick on surface and pick on ball only work when connected to monitor (MacOS)
- Animation freezes unexpectedly
- Install with pip HOT 9
- How to volume render a transparent space with mlab.pipleine.volume() and mlab.pipleine.scalar_field() as a data source?? HOT 1
- Error with VTK 9.3.0 HOT 3
- Failed Cython compilation (Cython > 3.0) HOT 2
- mlab.savefig saves wrong resolution (for first two images in loop)
- Potential issue with upcoming changes in VTK
- itkwidgets error in Jupyter Notebook
- Update a mayavi plot programmatically
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 mayavi.