Skip to content

Instantly share code, notes, and snippets.

View FinanceData's full-sized avatar
💭
I may be slow to respond.

FinanceData.KR FinanceData

💭
I may be slow to respond.
View GitHub Profile
@FinanceData
FinanceData / code_toggle.py
Created July 22, 2016 05:05 — forked from jamesbishopca/code_toggle.py
Code toggle button for IPython notebook
'''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();
}