From dfbc2ca2c1b168640a42fc1d2c49f665cda91686 2013-07-06 17:49:24 From: Matthias BUSSONNIER Date: 2013-07-06 17:49:24 Subject: [PATCH] Trigger a single event on js app initilized Usefull to bind to extension loading, to load only once --- diff --git a/IPython/html/static/notebook/js/main.js b/IPython/html/static/notebook/js/main.js index c075a0a..f1af02b 100644 --- a/IPython/html/static/notebook/js/main.js +++ b/IPython/html/static/notebook/js/main.js @@ -100,6 +100,7 @@ function (marked) { }; $([IPython.events]).on('notebook_loaded.Notebook', first_load); + $([IPython.events]).trigger('app_initialized.NotebookApp'); IPython.notebook.load_notebook($('body').data('notebookId')); if (marked) {