Skip to content

Commit 58f7f02

Browse files
committed
lint
1 parent a6b425b commit 58f7f02

File tree

4 files changed

+18
-12
lines changed

4 files changed

+18
-12
lines changed

src/executor.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
*/
66

77
import { Dialog, showDialog } from '@jupyterlab/apputils';
8+
import { URLExt } from '@jupyterlab/coreutils';
89
import { CodeCell } from '@jupyterlab/cells';
910
import type { ICodeCellModel, MarkdownCell } from '@jupyterlab/cells';
10-
import { URLExt } from '@jupyterlab/coreutils';
1111
import { INotebookCellExecutor } from '@jupyterlab/notebook';
1212
import { ServerConnection } from '@jupyterlab/services';
1313
import { nullTranslator } from '@jupyterlab/translation';
@@ -47,7 +47,6 @@ export class NotebookCellServerExecutor implements INotebookCellExecutor {
4747
}: INotebookCellExecutor.IRunCellOptions): Promise<boolean> {
4848
translator = translator ?? nullTranslator;
4949
const trans = translator.load('jupyterlab');
50-
5150
switch (cell.model.type) {
5251
case 'markdown':
5352
(cell as MarkdownCell).rendered = true;
@@ -83,14 +82,12 @@ export class NotebookCellServerExecutor implements INotebookCellExecutor {
8382
await sessionDialogs.selectKernel(sessionContext);
8483
}
8584
}
86-
8785
if (sessionContext.hasNoKernel) {
8886
cell.model.sharedModel.transact(() => {
8987
(cell.model as ICodeCellModel).clearExecution();
9088
});
9189
return true;
9290
}
93-
9491
const kernelId = sessionContext?.session?.kernel?.id;
9592
const executeApiURL = URLExt.join(
9693
this._serverSettings.baseUrl,
@@ -100,7 +97,6 @@ export class NotebookCellServerExecutor implements INotebookCellExecutor {
10097
const cellId = cell.model.sharedModel.getId();
10198
const documentId = notebook.sharedModel.getState('document_id');
10299
const { recordTiming } = notebookConfig;
103-
104100
const init = {
105101
method: 'POST',
106102
body: JSON.stringify({
@@ -115,7 +111,7 @@ export class NotebookCellServerExecutor implements INotebookCellExecutor {
115111
onCellExecutionScheduled({ cell });
116112
let success = false;
117113
try {
118-
// FIXME quid of deletedCells and timing record
114+
// FIXME quid of deletedCells and timing record.
119115
const response = await requestServer(
120116
cell as CodeCell,
121117
executeApiURL,
@@ -136,9 +132,7 @@ export class NotebookCellServerExecutor implements INotebookCellExecutor {
136132
throw error;
137133
}
138134
}
139-
140135
onCellExecuted({ cell, success });
141-
142136
return true;
143137
}
144138
cell.model.sharedModel.transact(() => {

style/base.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
See the JupyterLab Developer Guide for useful CSS Patterns:
3-
4-
https://jupyterlab.readthedocs.io/en/stable/developer/css.html
5-
*/
2+
* Copyright (c) 2021-2024 Datalayer, Inc.
3+
*
4+
* Distributed under the terms of the Modified BSD License.
5+
*/

style/index.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1+
/*
2+
* Copyright (c) 2021-2024 Datalayer, Inc.
3+
*
4+
* Distributed under the terms of the Modified BSD License.
5+
*/
6+
17
@import url('base.css');

style/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1+
/*
2+
* Copyright (c) 2021-2024 Datalayer, Inc.
3+
*
4+
* Distributed under the terms of the Modified BSD License.
5+
*/
6+
17
import './base.css';

0 commit comments

Comments
 (0)