From a754052bbe08066ba02093d6c5935c864c580919 2014-01-26 01:24:14 From: MinRK Date: 2014-01-26 01:24:14 Subject: [PATCH] don't show tooltip if object is not found closes #4875 --- diff --git a/IPython/html/static/notebook/js/tooltip.js b/IPython/html/static/notebook/js/tooltip.js index 659dcf5..d0e0809 100644 --- a/IPython/html/static/notebook/js/tooltip.js +++ b/IPython/html/static/notebook/js/tooltip.js @@ -303,6 +303,10 @@ var IPython = (function (IPython) { // move the bubble if it is not hidden // otherwise fade it var content = reply.content; + if (!content.found) { + // object not found, nothing to show + return; + } this.name = content.name; // do some math to have the tooltip arrow on more or less on left or right