This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
"""Make Mayavi plots inline to ipython notebooks | |
Imports mayavi and mlab and adds them to interpreter namespace. Loading | |
this extension also sets up inline matplotlib (aka `%matpotlib inline`) | |
and sets offscreen rendering on linux. | |
Note: | |
Offscreen rendering on OS X doesn't seem to work, but on linux, | |
inline plots don't work without offscreen rendering. "Don't work" |