SHARE
TWEET

Example

a guest Aug 25th, 2014 1,242 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. });
RAW Paste Data
Want to get better at JavaScript?
Learn to code JavaScript in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top