In [2]:
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[2]:
In [2]:
from IPython.display import HTML
HTML('''
<script async
class="speakerdeck-embed"
data-id="70da58ba5ce941e1adfd6fb92a614093"
data-ratio="1.33333333333333"
src="//speakerdeck.com/assets/embed.js">
</script>
''')
Out[2]: