[IPython-dev] Event rename_notebook.Notebook
Konrad Hinsen
konrad.hinsen at fastmail.net
Mon Jun 23 10:08:53 EDT 2014
Hi everyone,
I am trying to catch notebook rename events, using the event
rename_notebook.Notebook. However, my explorations show that when this
event is triggered, the notebook still has its previous name.
What I did is add
$([IPython.events]).on('rename_notebook.Notebook', function() {
console.log("notebook renamed to " + IPython.notebook.notebook_name);
});
to custom.js. This shows, very reliably, the notebook name before the
change.
Am I using this in the wrong way?
Konrad.
More information about the IPython-dev
mailing list