Created
June 28, 2020 11:35
-
-
Save MarcoGorelli/83cee9b45713fa17e53118ad449ac1cf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# source: https://stackoverflow.com/a/28073228/9988333 | |
from IPython.display import HTML | |
HTML( | |
"""<script> | |
code_show=true; | |
function code_toggle() { | |
if (code_show){ | |
$('div.input').hide(); | |
} else { | |
$('div.input').show(); | |
} | |
code_show = !code_show | |
} | |
$( document ).ready(code_toggle); | |
</script> | |
<form action="javascript:code_toggle()"><input type="submit" value="Click here to toggle on/off the raw code."></form>""" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment