From 068a60a8b764eec3949073b777a5e1e837626525 Mon Sep 17 00:00:00 2001 From: Matthias BUSSONNIER Date: Sun, 15 Apr 2012 13:11:27 +0200 Subject: [PATCH] fix print view construct a completer only if the class exist otherwise print view won't load. --- IPython/frontend/html/notebook/static/js/codecell.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/IPython/frontend/html/notebook/static/js/codecell.js b/IPython/frontend/html/notebook/static/js/codecell.js index 608457351..7d8b6a437 100644 --- a/IPython/frontend/html/notebook/static/js/codecell.js +++ b/IPython/frontend/html/notebook/static/js/codecell.js @@ -47,8 +47,12 @@ var IPython = (function (IPython) { this.element = cell; this.collapse(); - // construct a completer + // construct a completer only if class exist + // otherwise no print view + if (IPython.Completer != undefined ) + { this.completer = new IPython.Completer(this); + } }; CodeCell.prototype.handle_codemirror_keyevent = function (editor, event) {