0

If I run code from Python, the Mayavi2 plot window will either disappear really quick or if it doesn't, I can't interact with it because it freezes.

However, if I run mayavi2 /path/to/code, I can interact with the figure without any issue.

Additionally, if I run Mayavi2 normally, I receive in the logger the following error:

could not restore editor [TVTK Scene 1]

Then when I close Mayavi2 I receive this error:

(python:1820): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed

If I run it as sudo, I receive

(python:5288): IBUS-WARNING **: The owner of /home/dustin/.config/ibus/bus is not root!

What is the deal with this program? How can I fix any of these issues?

4
  • Try running IPython with --pylab - it has some tricks to allow interactive windows while it's running.
    – Thomas K
    Apr 30, 2013 at 12:14
  • @ThomasK that doesn't stop it from happening either. I also tried ipython --pylab=qt
    – dustin
    Apr 30, 2013 at 15:50
  • Have a look at github.com/ipython/ipython/issues/8 (and feel free to file a new bug if you think it's warranted).
    – Thomas K
    Apr 30, 2013 at 22:28
  • maybe it is due the backend you chose from Mayavi's preferences (Tools > Preferences > Mayavi > mlab > backend). I use the default option auto and it works fine with $ ipython --gui=wx
    – Falcon
    Aug 8, 2013 at 23:03

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.