Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions IPython/html/static/notebook/js/maintoolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,36 @@ var IPython = (function (IPython) {
}
}
],'turtle_power');

this.add_buttons_group([
{
id : 'cowabunga',
label : 'Pause Turtle',
icon : 'icon-bug',
callback : function () {
turtle_pause();
}
}
],'cowabunga');

this.add_buttons_group([
{
id : 'radical_dude',
label : 'Andrew Button 1',
icon : 'icon-bug',
callback : function () {
ak_button1();
}
},
{
id : 'pizza',
label : 'Andrew Button 2',
icon : 'icon-anchor',
callback : function () {
ak_button2();
}
}
],'Donatello');
};

MainToolBar.prototype.add_celltype_list = function () {
Expand Down
28 changes: 26 additions & 2 deletions IPython/html/static/notebook/js/notebook.js
Original file line number Diff line number Diff line change
Expand Up @@ -1407,9 +1407,9 @@ var IPython = (function (IPython) {
};

/**
* Execute or render cell outputs and go into command mode.
*.
*
*
* @method execute_cell
*/
Notebook.prototype.execute_cell = function () {
//clear turtle timeout
Expand All @@ -1433,6 +1433,30 @@ var IPython = (function (IPython) {
Notebook.prototype.turtle_help = function () {
window.open('/static/notebook/js/helppage.html');
}

/**
* Claudine's requested button
*
*
*/
Notebook.prototype.turtle_pause = function(){
}

/**
* Andrew's requested button #1
*
*
*/
Notebook.prototype.ak1_button = function(){
}

/**
* Andrews's requested button #2
*
*
*/
Notebook.prototype.ak2_button = function(){
}

/**
* Execute or render cell outputs and insert a new cell below.
Expand Down