Last active
August 29, 2015 14:22
-
-
Save aivuk/8052d6c89481a7f007cb to your computer and use it in GitHub Desktop.
This file contains 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
from IPython.display import HTML, Javascript, display | |
display( HTML(""" | |
<button class="toogle-button", id="botao">Mostrar/ocultar célula</button> | |
""")) | |
js = """ | |
var cell = $(".selected"); | |
var input_area = $(".input_area", cell); | |
input_area.hide(); | |
$(document).ready( | |
function() { | |
$( "#botao" ).click(function() { | |
input_area.toggle(); | |
}); | |
} | |
); | |
""" | |
js = Javascript(js) | |
display(js) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment