Skip to content
This repository was archived by the owner on Apr 30, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The JupyterLab cell tags extension enables users to easily add, view, and manipu
## Install

```bash
jupyter labextension install @jupyterlab/celltags
jupyter labextension install @jupyterlab/celltags-ext
```

## Development
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: jupyterlab-celltags
name: jupyterlab-celltags-ext
channels:
- conda-forge
dependencies:
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@jupyterlab/celltags",
"name": "@jupyterlab/celltags-ext",
"version": "0.2.0",
"description": "Extension for adding descriptive tags to notebook cells (Beta)",
"keywords": [
Expand Down Expand Up @@ -34,8 +34,8 @@
"deduplicate": "jlpm yarn-deduplicate -s fewer",
"lab:install": "jupyter labextension install .",
"lab:link": "jupyter labextension install . --no-build",
"lab:uninstall": "jupyter labextension uninstall @jupyterlab/celltags",
"lab:unlink": "jupyter labextension uninstall @jupyterlab/celltags --no-build",
"lab:uninstall": "jupyter labextension uninstall @jupyterlab/celltags-ext",
"lab:unlink": "jupyter labextension uninstall @jupyterlab/celltags-ext --no-build",
"precommit": "lint-staged",
"prepublishOnly": "jlpm run clean && jlpm run build",
"prettier": "prettier --write '**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}'",
Expand Down
6 changes: 5 additions & 1 deletion src/components/tagstool.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ export class TagsTool extends NotebookTools.Tool {
protected onActiveCellChanged(msg: Message): void {
this.widget.currentActiveCell = this.notebookTools.activeCell;
this.widget.loadTagsForActiveCell();
this.widget.getAllTagsInNotebook();
}

protected onAfterShow() {
Expand All @@ -226,7 +227,10 @@ export class TagsTool extends NotebookTools.Tool {
});
}

protected onMetadataChanged(msg: ObservableJSON.ChangeMessage): void {
protected onActiveCellMetadataChanged(
msg: ObservableJSON.ChangeMessage
): void {
// only detects the entire 'tags' list being added/deleted, not changes to it
if (!this.widget.tagsListShallNotRefresh) {
this.widget.validateMetadataForActiveCell();
this.widget.loadTagsForActiveCell();
Expand Down
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { TagsTool } from './components';
import '../style/index.css';

/**
* Initialization data for the jupyterlab-celltags extension.
* Initialization data for the jupyterlab-celltags-ext extension.
*/
function activate(
app: JupyterLab,
Expand All @@ -19,7 +19,7 @@ function activate(
}

const extension: JupyterFrontEndPlugin<void> = {
id: 'jupyterlab-celltags',
id: 'jupyterlab-celltags-ext',
autoStart: true,
requires: [INotebookTools, INotebookTracker],
activate: activate
Expand Down