@ -137,7 +137,6 @@ define([
this . undelete _below = false ;
this . paste _enabled = false ;
this . writable = false ;
this . include _other _output = true ;
// It is important to start out in command mode to match the intial mode
// of the KeyboardManager.
this . mode = 'command' ;
@ -1574,60 +1573,6 @@ define([
this . get _selected _cell ( ) . toggle _line _numbers ( ) ;
} ;
// Support for displaying input and output messages from other iPy clients.
/ * *
* Toggles the ability to display input / output message events from
* externally connected clients ( i . e . other iPython shells , vim - ipython ,
* etc ) .
*
* @ method toggle _ignore _unsolicited _msgs
* /
Notebook . prototype . toggle _ignore _unsolicited _msgs = function ( ) {
this . include _other _output = ! this . include _other _output ;
this . events . trigger ( 'toggle_other_client_output.Notebook' ,
[ this . include _other _output ] ) ;
return this . include _other _output ;
} ;
/ * *
* Handles the display of unsolicited messages , i . e . inputs or outputs that
* were generated by a client other than this notebook . New messages are
* displayed at the bottom of the notebook .
*
* @ method handle _unsolicited _msg
* /
Notebook . prototype . handle _unsolicited _msg = function ( msg ) {
if ( ! this . include _other _output ) {
return ;
}
if ( msg . msg _type == 'execute_input' ) {
var cell = this . insert _cell _at _bottom ( 'code' ) ;
if ( cell ) {
var cell _index = this . ncells ( ) - 1 ;
cell . last _msg _id = msg . parent _header . msg _id ;
cell . set _text ( msg . content . code ) ;
cell . _handle _execute _reply ( msg ) ;
this . scroll _to _cell ( cell _index ) ;
this . select ( cell _index ) ;
}
} else {
/ * F i n d t h e i n p u t c e l l t h a t c o r r e s p o n d s w i t h t h e o u t p u t , t h e n a d d
* the contents to the cell ' s output area .
* /
var count = this . ncells ( ) ;
while ( count -- ) {
var cell = this . get _cell ( count ) ;
if ( cell && cell . last _msg _id == msg . parent _header . msg _id ) {
cell . output _area . handle _output ( msg ) ;
this . scroll _to _cell ( count ) ;
this . select ( count ) ;
break ;
}
}
}
} ;
/ * *
* Set the codemirror mode for all code cells , including the default for
* new code cells .
@ -1705,7 +1650,6 @@ define([
cell . set _kernel ( this . session . kernel ) ;
}
}
this . kernel . unsolicited _msg _callback = $ . proxy ( this . handle _unsolicited _msg , this ) ;
} ;
Notebook . prototype . _session _start _failed = function ( jqxhr , status , error ) {
this . _session _starting = false ;