This repository has been archived by the owner on Apr 30, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
521 additions
and
598 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,30 @@ | ||
# jupyterlab-celltags | ||
|
||
[![Binder](https://beta.mybinder.org/badge.svg)](https://mybinder.org/v2/gh/jupyterlab/jupyterlab-celltags/master?urlpath=lab) | ||
|
||
A JupyterLab extension for notebook cell tags | ||
|
||
## Prerequisites | ||
|
||
* JupyterLab | ||
|
||
## Install | ||
## Installation | ||
|
||
```bash | ||
jupyter labextension install jupyterlab-celltags | ||
``` | ||
|
||
## Development | ||
|
||
### Contributing | ||
|
||
If you would like to contribute to the project, please read our [contributor documentation](https://github.com/jupyterlab/jupyterlab/blob/master/CONTRIBUTING.md). | ||
|
||
JupyterLab follows the official [Jupyter Code of Conduct](https://github.com/jupyter/governance/blob/master/conduct/code_of_conduct.md). | ||
|
||
### Install | ||
|
||
Requires node 4+ and npm 4+ | ||
For a development install (requires npm version 4 or later), do the following in the repository directory: | ||
|
||
```bash | ||
# Clone the repo to your local environment | ||
git clone https://github.com/jupyterlab/jupyterlab-celltags.git | ||
cd jupyterlab-shortcelltagscutui | ||
# Install dependencies | ||
npm install # or yarn | ||
# Build Typescript source | ||
npm run build # or yarn build | ||
# Link your development version of the extension with JupyterLab | ||
npm install | ||
npm run build | ||
jupyter labextension link . | ||
# Rebuild Typescript source after making changes | ||
npm run build # or yarn build | ||
``` | ||
|
||
To rebuild the package and the JupyterLab app: | ||
|
||
```bash | ||
npm run build | ||
jupyter lab build | ||
``` | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from './tagstool'; | ||
export * from './tagstool'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,65 @@ | ||
import { style } from 'typestyle'; | ||
import SharedStyles from './shared-styles'; | ||
|
||
export namespace TagStyleClasses { | ||
export const tagLabelStyleClass = style({ | ||
export | ||
namespace TagStyleClasses { | ||
|
||
export | ||
const tagLabelStyleClass = style({ | ||
maxWidth: '100%', | ||
textOverflow: 'ellipsis', | ||
display: 'inline-block', | ||
overflow: 'hidden', | ||
boxSizing: 'border-box', | ||
paddingRight: '25px' | ||
}); | ||
|
||
export const defaultAddInputStyleClass = style( | ||
SharedStyles.tagInputStyleProperties, | ||
{ | ||
width: '64.52px', | ||
minWidth: '64.52px' | ||
} | ||
); | ||
|
||
export const blankAddInputStyleClass = style( | ||
SharedStyles.tagInputStyleProperties, | ||
{ | ||
display: 'inline', | ||
whiteSpace: 'nowrap' | ||
} | ||
); | ||
|
||
export const addTagStyleClass = style(SharedStyles.tagStyleProperties, { | ||
|
||
export | ||
const defaultAddInputStyleClass = style(SharedStyles.tagInputStyleProperties, { | ||
width: '64.52px', | ||
minWidth: '64.52px' | ||
}); | ||
|
||
export | ||
const blankAddInputStyleClass = style(SharedStyles.tagInputStyleProperties, { | ||
display: 'inline', | ||
whiteSpace: 'nowrap' | ||
}); | ||
|
||
export | ||
const addTagStyleClass = style(SharedStyles.tagStyleProperties, { | ||
backgroundColor: 'var(--jp-layout-color1)', | ||
border: '1px solid var(--jp-layout-color4)', | ||
maxWidth: '95%', | ||
maxHeight: '31px' | ||
}); | ||
|
||
export const tagIconStyleClass = style({ | ||
|
||
export | ||
const tagIconStyleClass = style({ | ||
marginLeft: '10px', | ||
marginTop: '2px', | ||
right: '0px', | ||
marginBottom: '-1px', | ||
height: '13px', | ||
position: 'absolute' | ||
}); | ||
|
||
export const inputIconStyleClass = style({ | ||
|
||
export | ||
const inputIconStyleClass = style({ | ||
marginLeft: '5px', | ||
marginTop: '1px', | ||
marginBottom: '-2px', | ||
height: '13px' | ||
}); | ||
|
||
export const tagIconLabelStyleClass = style({ | ||
export | ||
const tagIconLabelStyleClass = style({ | ||
position: 'absolute' | ||
}); | ||
|
||
export | ||
const addTagSpanStyleClass = style({ | ||
|
||
}); | ||
|
||
} |
Oops, something went wrong.