In [ ]:
from IPython.core.display import HTML

with open('../common/creativecommons.html', 'r') as f:
    html = f.read()
    
with open('../common/custom.css', 'r') as f:
    styles = f.read()
    
HTML(styles)

text = 'Check this post at'
uri = 'http://nbviewer.ipython.org/urls/raw.github.com/ocefpaf/python4oceanographers/master/content/downloads/notebooks'
name = get_notebook_name()
link = """<p>%s <a href="%s/%s"><em>nbviewer</em>.</a></p>""" % (text, uri, name)
html += str(link)

In [ ]:
import numpy as np
import matplotlib.pyplot as plt

from sympy import init_printing, symbols, pi
from sympy.plotting import plot3d_parametric_surface

init_printing()

In [ ]:
r, h, u = symbols('r h u')
V = (r**2 * h * pi) / 3
V

In [ ]:
circ = V.diff(r)
circ

In [ ]:
area = V.diff(h)
area

In [ ]:
HTML(html)