File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ export class CellAdapter {
224
224
extensions : editorExtensions ( ) ,
225
225
languages,
226
226
} ) ;
227
-
227
+ //
228
228
const cellModel = createStandaloneCell ( {
229
229
cell_type : type ,
230
230
source : source ,
@@ -251,7 +251,7 @@ export class CellAdapter {
251
251
if ( this . _type === 'markdown' ) {
252
252
( this . _cell as MarkdownCell ) . rendered = false ;
253
253
}
254
-
254
+ //
255
255
this . _sessionContext . kernelChanged . connect (
256
256
( _ , arg : Session . ISessionConnection . IKernelChangedArgs ) => {
257
257
const kernelConnection = arg . newValue ;
@@ -281,6 +281,7 @@ export class CellAdapter {
281
281
}
282
282
} ) ;
283
283
} ) ;
284
+ // Completer.
284
285
const editor = this . _cell . editor ;
285
286
const model = new CompleterModel ( ) ;
286
287
const completer = new Completer ( { editor, model } ) ;
@@ -308,8 +309,10 @@ export class CellAdapter {
308
309
timeout,
309
310
} ) ;
310
311
} ) ;
311
- handler . editor = editor ;
312
-
312
+ this . _cell . ready . then ( ( ) => {
313
+ handler . editor = this . _cell && this . _cell . editor ;
314
+ } ) ;
315
+ //
313
316
CellCommands ( commands , this . _cell ! , handler , this ) ;
314
317
completer . hide ( ) ;
315
318
completer . addClass ( 'jp-Completer-Cell' ) ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ function shim(regExp) {
18
18
19
19
const ENTRY =
20
20
// './src/app/App';
21
- // './src/examples/Cell';
21
+ './src/examples/Cell' ;
22
22
// './src/examples/Cells';
23
23
// './src/examples/CellsExecute';
24
24
// './src/examples/CellLite';
@@ -39,7 +39,7 @@ const ENTRY =
39
39
// './src/examples/KernelExecutor';
40
40
// './src/examples/Lumino';
41
41
// './src/examples/Matplotlib';
42
- './src/examples/Notebook' ;
42
+ // './src/examples/Notebook';
43
43
// './src/examples/NotebookUrl';
44
44
// './src/examples/NotebookColorMode';
45
45
// './src/examples/NotebookKernelChange';
You can’t perform that action at this time.
0 commit comments