Advertisement
Guest User

Example

a guest
Aug 25th, 2014
4,284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. code_show=true;
  2. function code_toggle() {
  3.  if (code_show){
  4.  $('div.input').hide();
  5.  } else {
  6.  $('div.input').show();
  7.  }
  8.  code_show = !code_show
  9. }
  10.  
  11. $([IPython.events]).on("app_initialized.NotebookApp", function () {
  12.   $("#view_menu").append("<li id=\"toggle_toolbar\" title=\"Show/Hide code cells\"><a href=\"javascript:code_toggle()\">Toggle Code Cells</a></li>");
  13. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement