Skip to content

Commit 94d9e21

Browse files
committed
fix the link check
1 parent 79b20c5 commit 94d9e21

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ extension from Aachen (Aix) Virtual Platform for Materials Processing.
1212

1313
## Requirements
1414

15-
* JupyterLab >= 3.0
16-
15+
- JupyterLab >= 3.0
1716

1817
## Install
1918

@@ -64,4 +63,3 @@ jupyter lab --watch
6463
We acknowledge support from the EPFL Open Science Fund via the [OSSCAR](http://www.osscar.org) project.
6564

6665
<img src='https://www.osscar.org/_images/logos.png' width='700'>
67-

src/index.ts

Lines changed: 7 additions & 7 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 { IDisposable, DisposableDelegate } from '@lumino/disposable';
@@ -14,7 +14,7 @@ import { DocumentRegistry } from '@jupyterlab/docregistry';
1414
import {
1515
NotebookActions,
1616
NotebookPanel,
17-
INotebookModel,
17+
INotebookModel
1818
} from '@jupyterlab/notebook';
1919

2020
import '../style/index.css';
@@ -28,7 +28,7 @@ const extension: JupyterFrontEndPlugin<void> = {
2828
activate: (app: JupyterFrontEnd) => {
2929
app.docRegistry.addWidgetExtension('Notebook', new ButtonExtension());
3030
console.log('JupyterLab extension jupyterlab-hide-code is activated!');
31-
},
31+
}
3232
};
3333

3434
export class ButtonExtension
@@ -41,7 +41,7 @@ export class ButtonExtension
4141
const hideInputCode = () => {
4242
NotebookActions.runAll(panel.content, context.sessionContext);
4343

44-
panel.content.widgets.forEach((cell) => {
44+
panel.content.widgets.forEach(cell => {
4545
if (cell.model.type === 'code') {
4646
const layout = cell.layout as PanelLayout;
4747
layout.widgets[1].hide();
@@ -51,7 +51,7 @@ export class ButtonExtension
5151
buttonShowInput.show();
5252
};
5353
const showInputCode = () => {
54-
panel.content.widgets.forEach((cell) => {
54+
panel.content.widgets.forEach(cell => {
5555
if (cell.model.type === 'code') {
5656
const layout = cell.layout as PanelLayout;
5757
layout.widgets[1].show();
@@ -66,14 +66,14 @@ export class ButtonExtension
6666
className: 'myButton',
6767
iconClass: 'fa fa-sm fa-eye-slash fontawesome-colors',
6868
onClick: hideInputCode,
69-
tooltip: 'Hide Input',
69+
tooltip: 'Hide Input'
7070
});
7171

7272
const buttonShowInput = new ToolbarButton({
7373
className: 'myButton',
7474
iconClass: 'fa fa-sm fa-eye fontawesome-colors',
7575
onClick: showInputCode,
76-
tooltip: 'Show Input',
76+
tooltip: 'Show Input'
7777
});
7878

7979
buttonShowInput.hide();

ui-tests/tests/jupyterlab_hide_code.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ test('should emit an activation console message', async ({ page }) => {
1616
await page.goto();
1717

1818
expect(
19-
logs.filter(s => s === 'JupyterLab extension jupyterlab-hide-code is activated!')
19+
logs.filter(
20+
s => s === 'JupyterLab extension jupyterlab-hide-code is activated!'
21+
)
2022
).toHaveLength(1);
2123
});

0 commit comments

Comments
 (0)