%matplotlib inline
from JSAnimation import IPython_display
import matplotlib.animation
from for_slides import example1
args, kwargs = example1()
matplotlib.animation.FuncAnimation(*args, **kwargs)
from for_slides import example2
args, kwargs = example2()
matplotlib.animation.FuncAnimation(*args, **kwargs)
from for_slides import example4
example4()
from for_slides import example5
example5()
$u "=" v$ when $$\int_{T} u \, \varphi \, dV = \int_T v \, \varphi \, dV$$
from for_slides import example6
example6()
from for_slides import example6a
example6a()
from for_slides import example7
example7()
from for_slides import example8
example8()
from for_slides import example9
example9()
# Custom styling, borrowed from https://github.com/ellisonbg/talk-2013-scipy
from IPython import display
# Make plots centered. H/T to http://stackoverflow.com/a/27168595/1068170
STYLE = """\
<style>
div.output_area, .ui-wrapper {
margin-left: auto !important;
margin-right: auto !important;
}
</style>
"""
SLIDES_STYLE = """
<style>
h1.bigtitle {
margin: 4cm 1cm 4cm 1cm;
font-size: 300%;
}
h1.title {
font-size: 250%;
}
.rendered_html h1 {
margin: 0.25em 0em 0.5em;
color: #015C9C;
text-align: center;
line-height: 1.2;
page-break-before: always;
}
</style>
"""
STYLE = STYLE + '\n' + SLIDES_STYLE
display.display(display.HTML(STYLE))