Skip to content

Commit ae6248c

Browse files
authored
Ensure tag widget are always displayed (#8)
1 parent 7dbf4a9 commit ae6248c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ A cell toolbar for JupyterLab.
66

77
![Demonstration](https://raw.githubusercontent.com/fcollonval/jlab-enhanced-cell-toolbar/main/demo_cell_toolbar.gif)
88

9-
109
## Requirements
1110

12-
* JupyterLab >= 3.0
11+
- JupyterLab >= 3.0
1312

1413
## Install
1514

@@ -35,7 +34,6 @@ or
3534
conda remove -c conda-forge jlab-enhanced-cell-toolbar
3635
```
3736

38-
3937
## Alternatives
4038

4139
Don't like what you see here? Try these other approaches:

src/tagbar.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ export class TagTool extends Widget {
3333
const tags: string[] = (model.metadata.get('tags') as string[]) || [];
3434
if (tags.length > 0) {
3535
allTags.pushAll(tags); // We don't care about duplicate here so we can remove all occurrences at will
36+
} else {
37+
this.refreshTags(); // Force displaying default tags if no tags specified
3638
}
3739
model.metadata.changed.connect(this.onCellMetadataChanged, this);
3840
}

0 commit comments

Comments
 (0)