Skip to content

Commit 03cf9ed

Browse files
committed
Fixed prettier formatting
1 parent ab4c9f2 commit 03cf9ed

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

advanced/kernel-messaging/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ that manages a single kernel session. Here is the code to initialize such sessio
4141
this._sessionContext = new SessionContext({
4242
sessionManager: manager.sessions,
4343
specsManager: manager.kernelspecs,
44-
name: 'Extension Examples',
44+
name: 'Extension Examples'
4545
});
4646
```
4747

@@ -96,7 +96,7 @@ export class ExamplePanel extends StackedPanel {
9696
this._sessionContext = new SessionContext({
9797
sessionManager: manager.sessions,
9898
specsManager: manager.kernelspecs,
99-
name: 'Extension Examples',
99+
name: 'Extension Examples'
100100
});
101101

102102
this._model = new KernelModel(this._sessionContext);
@@ -105,12 +105,12 @@ export class ExamplePanel extends StackedPanel {
105105
this.addWidget(this._example);
106106
void this._sessionContext
107107
.initialize()
108-
.then(async (value) => {
108+
.then(async value => {
109109
if (value) {
110110
await sessionContextDialogs.selectKernel(this._sessionContext);
111111
}
112112
})
113-
.catch((reason) => {
113+
.catch(reason => {
114114
console.error(
115115
`Failed to initialize the session in ExamplePanel.\n${reason}`
116116
);
@@ -148,7 +148,7 @@ Once a kernel is initialized and ready, code can be executed with the following
148148
// src/model.ts#L46-L48
149149

150150
this.future = this._sessionContext.session?.kernel?.requestExecute({
151-
code,
151+
code
152152
});
153153
```
154154

@@ -205,7 +205,7 @@ export class KernelModel {
205205
return;
206206
}
207207
this.future = this._sessionContext.session?.kernel?.requestExecute({
208-
code,
208+
code
209209
});
210210
}
211211

advanced/kernel-messaging/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {
22
JupyterFrontEnd,
3-
JupyterFrontEndPlugin,
3+
JupyterFrontEndPlugin
44
} from '@jupyterlab/application';
55

66
import { ICommandPalette } from '@jupyterlab/apputils';
@@ -30,7 +30,7 @@ const extension: JupyterFrontEndPlugin<void> = {
3030
autoStart: true,
3131
optional: [ILauncher],
3232
requires: [ICommandPalette, IMainMenu, ITranslator],
33-
activate: activate,
33+
activate: activate
3434
};
3535

3636
/**
@@ -58,7 +58,7 @@ function activate(
5858
if (launcher) {
5959
launcher.add({
6060
command: CommandIDs.create,
61-
category: category,
61+
category: category
6262
});
6363
}
6464

@@ -82,7 +82,7 @@ function activate(
8282
commands.addCommand(CommandIDs.create, {
8383
label: trans.__('Open the Kernel Messaging Panel'),
8484
caption: trans.__('Open the Kernel Messaging Panel'),
85-
execute: createPanel,
85+
execute: createPanel
8686
});
8787

8888
// add items in command palette and menu

0 commit comments

Comments
 (0)