Asymptote is a powerful vector graphics language for generating scientific diagrams. Among many other features, it is natively capable of drawing three-dimensional figures and uses a clean C-like syntax. Installation instructions for Asymptote may be found on Asymptote's website or on this page.
This IPython magic extension makes it easy to create and display Asymptote diagrams within an IPython notebook. Suggested versions include Python 2.7+, IPython 2.0+, and Asymptote 2.17+.
See the examples directory for installation instructions and examples of how to use this magic extension: