This file contains hidden or 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 -*- | |
"""Embed raw media in an ipython notebook | |
The point of embedding raw media is that one can save as html, and | |
the media will automatically be embedded in the result. | |
Installation: | |
Place in ~/.ipython/extensions/, or wherever your extensions live. | |
Note: If the notebook server is not local, then embedding media may |
This file contains hidden or 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" |
NewerOlder