In [3]:
from IPython.display import HTML

HTML('''<script>
code_show=true; 
function code_toggle() {
 if (code_show){
 $('div.input').hide();
 $('div.prompt').hide();
 } else {
 $('div.input').show();
$('div.prompt').show();
 }
 code_show = !code_show
} 
$( document ).ready(code_toggle);
</script>
<form action="javascript:code_toggle()"><input type="submit" value="Code Toggle"></form>''')


Out[3]:

Use Binder for Live Examples

FiPy Hackathon Presentation


In [4]:
from IPython.display import HTML

HTML('''
<script async class="speakerdeck-embed" data-id="737dfeab8fb4426e8ee5fbff28274530" data-ratio="1.33333333333333" src="//speakerdeck.com/assets/embed.js"></script>
''')


Out[4]:

In [ ]: