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
'''Creates a button to toggle code inputs on and off.''' | |
from IPython.core.display import display_html | |
di.display_html(''' | |
<script> | |
'use strict'; | |
function code_toggle() { | |
let code = $('div.input'); | |
code.css('display') == 'none' ? code.show() : code.hide(); | |
} |