Skip to content

Instantly share code, notes, and snippets.

@jappa
Created June 22, 2016 20:30
Show Gist options
  • Save jappa/0b34ff23b4a6d07155b700a19a73291c to your computer and use it in GitHub Desktop.
Save jappa/0b34ff23b4a6d07155b700a19a73291c to your computer and use it in GitHub Desktop.
.jupyter/custom/custom.js used to hide code cells
code_show=true;
function code_toggle() {
if (code_show){
$('div.input').hide();
} else {
$('div.input').show();
}
code_show = !code_show
}
$([IPython.events]).on("app_initialized.NotebookApp", function () {
$("#view_menu").append("<li id=\"toggle_toolbar\" title=\"Show/Hide code cells\"><a href=\"javascript:code_toggle()\">Toggle Code Cells</a></li>");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment