mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
fix print view
construct a completer only if the class exist otherwise print view won't load.
This commit is contained in:
parent
507a66235b
commit
068a60a8b7
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user