Skip to content

Commit

Permalink
Select a kernel if necessary in the console
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Silvester committed Dec 20, 2019
1 parent 203b03e commit 3c847c8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/console/src/panel.ts
@@ -1,7 +1,11 @@
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

import { ISessionContext, SessionContext } from '@jupyterlab/apputils';
import {
ISessionContext,
SessionContext,
sessionContextDialogs
} from '@jupyterlab/apputils';

import { IEditorMimeTypeService } from '@jupyterlab/codeeditor';

Expand Down Expand Up @@ -83,7 +87,10 @@ export class ConsolePanel extends Panel {
});
this.addWidget(this.console);

void sessionContext.initialize().then(() => {
void sessionContext.initialize().then(async value => {
if (value) {
await sessionContextDialogs.selectKernel(sessionContext);
}
this._connected = new Date();
this._updateTitle();
});
Expand Down

0 comments on commit 3c847c8

Please sign in to comment.