ipython mayavi session - change of syntax
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mayavi2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
This is not a true bug but there has been a change of syntax (starting with ubuntu 12.04)
which was not evident for me (and I could not find the full correct syntax anywhere else in the web).
Therefore I decided to put it here, hoping it would save others some time...
on previous ubuntu versions I used to use mayavi's module "mlab" within an ipython + pylab session, using the following command:
ipython -wthread -pylab
After updating to ubuntu 12.04 this no longer works.
Searching the web I found that pylab should be called using --pylab (double dash instead of a single one)
and -wthread should be replaced with --gui=wx (again, a double dash is required).
trying:
ipython --pylab --gui=wx
(as well as interchanging the order of the arguments) failed.
First due to python-gtkwx problem which I reported (and some solution is proposed) here: https:/
Next there was a problem with the behaviour of the mayavi window, invoked in ipython using (for example):
from mayavi import mlab
mlab.
The plot was unresponsive.
To make it interactive I had to run:
mlab.show()
which turned the ipython session unresponsive till the mayavi window was closed.
Finally, I started the session using:
ipython --gui=wx --pylab=wx
(so far, works also when omitting "--gui=wx")
For those who would like to run in the "notebook" flavour, inlining the pylab plots:
ipython notebook --gui=wx --pylab inline
works nicely so far...
I hope this is useful for other users as well.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: mayavi2 4.0.0-3build1
ProcVersionSign
Uname: Linux 3.2.0-24-generic x86_64
NonfreeKernelMo
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
Date: Sun May 13 13:23:08 2012
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
ProcEnviron:
LANGUAGE=en_GB:en
PATH=(custom, user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: mayavi2
UpgradeStatus: Upgraded to precise on 2012-04-29 (13 days ago)
Status changed to 'Confirmed' because the bug affects multiple users.