Skip to content

Commit 7415f8f

Browse files
Merge pull request #7 from mariobuikhuizen/rename
refactor: rename project
2 parents f731d17 + 4b64f29 commit 7415f8f

File tree

10 files changed

+26
-26
lines changed

10 files changed

+26
-26
lines changed

MANIFEST.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ include LICENSE
22
include README.md
33

44
include setupbase.py
5-
include jupyter-config/jupyterlab-code-snippets.json
5+
include jupyter-config/jupyterlab-snippets.json
66

77
include package.json
88
include ts*.json
9-
include jupyterlab-code-snippets/labextension/*.tgz
9+
include jupyterlab-snippets/labextension/*.tgz
1010

1111
# Javascript files
1212
graft src

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# jupyterlab-code-snippets
1+
# jupyterlab-snippets
22

3-
![Github Actions Status](https://github.com/QuantStack/jupyterlab-code-snippets/workflows/Build/badge.svg)
3+
![Github Actions Status](https://github.com/QuantStack/jupyterlab-snippets/workflows/Build/badge.svg)
44

55
Code Snippets Extension for JupyterLab.
66

7-
This extension is composed of a Python package named `jupyterlab-code-snippets`
8-
for the server extension and a NPM package named `jupyterlab-code-snippets`
7+
This extension is composed of a Python package named `jupyterlab-snippets`
8+
for the server extension and a NPM package named `jupyterlab-snippets`
99
for the frontend extension.
1010

1111
## Requirements
@@ -16,7 +16,7 @@ for the frontend extension.
1616
## Install
1717

1818
```bash
19-
pip install jupyterlab-code-snippets
19+
pip install jupyterlab-snippets
2020
jupyter lab build
2121
```
2222

@@ -62,12 +62,12 @@ The `jlpm` command is JupyterLab's pinned version of
6262

6363
```bash
6464
# Clone the repo to your local environment
65-
# Move to jupyterlab-code-snippets directory
65+
# Move to jupyterlab-snippets directory
6666
# Install the server extension
6767
pip install -e .
6868

6969
# Register the server extension
70-
jupyter serverextension enable --py jupyterlab-code-snippets
70+
jupyter serverextension enable --py jupyterlab-snippets
7171

7272
# Install the dependencies
7373
jlpm
@@ -98,6 +98,6 @@ jupyter lab --watch
9898
### Uninstall
9999

100100
```bash
101-
pip uninstall jupyterlab-code-snippets
102-
jupyter labextension uninstall jupyterlab-code-snippets
101+
pip uninstall jupyterlab-snippets
102+
jupyter labextension uninstall jupyterlab-snippets
103103
```
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"NotebookApp": {
33
"nbserver_extensions": {
4-
"jupyterlab-code-snippets": true
4+
"jupyterlab-snippets": true
55
}
66
}
77
}

jupyterlab-code-snippets/__init__.py renamed to jupyterlab-snippets/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
def _jupyter_server_extension_paths():
77
return [{
8-
'module': 'jupyterlab-code-snippets'
8+
'module': 'jupyterlab-snippets'
99
}]
1010

1111

File renamed without changes.

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"name": "jupyterlab-code-snippets",
2+
"name": "jupyterlab-snippets",
33
"version": "0.1.0",
44
"description": "Code Snippets Extension for JupyterLab",
55
"keywords": [
66
"jupyter",
77
"jupyterlab",
88
"jupyterlab-extension"
99
],
10-
"homepage": "https://github.com/QuantStack/jupyterlab-code-snippets",
10+
"homepage": "https://github.com/QuantStack/jupyterlab-snippets",
1111
"bugs": {
12-
"url": "https://github.com/QuantStack/jupyterlab-code-snippets/issues"
12+
"url": "https://github.com/QuantStack/jupyterlab-snippets/issues"
1313
},
1414
"license": "BSD-3-Clause",
1515
"author": "QuantStack",
@@ -22,16 +22,16 @@
2222
"style": "style/index.css",
2323
"repository": {
2424
"type": "git",
25-
"url": "https://github.com/QuantStack/jupyterlab-code-snippets.git"
25+
"url": "https://github.com/QuantStack/jupyterlab-snippets.git"
2626
},
2727
"scripts": {
2828
"build": "jlpm run build:lib",
29-
"build:labextension": "cd jupyterlab-code-snippets && rimraf labextension && mkdirp labextension && cd labextension && npm pack ../..",
29+
"build:labextension": "cd jupyterlab-snippets && rimraf labextension && mkdirp labextension && cd labextension && npm pack ../..",
3030
"build:lib": "tsc",
3131
"build:all": "jlpm run build:labextension",
3232
"clean": "jlpm run clean:lib",
3333
"clean:lib": "rimraf lib tsconfig.tsbuildinfo",
34-
"clean:labextension": "rimraf jupyterlab-code-snippets/labextension",
34+
"clean:labextension": "rimraf jupyterlab-snippets/labextension",
3535
"clean:all": "jlpm run clean:lib && jlpm run clean:labextension",
3636
"prepare": "jlpm run clean && jlpm run build",
3737
"watch": "tsc -w"
@@ -61,7 +61,7 @@
6161
"pip"
6262
],
6363
"base": {
64-
"name": "jupyterlab-code-snippets"
64+
"name": "jupyterlab-snippets"
6565
}
6666
}
6767
},

setup.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Setup Module to setup Python Handlers for the jupyterlab-code-snippets extension.
2+
Setup Module to setup Python Handlers for the jupyterlab-snippets extension.
33
"""
44
import os
55

@@ -12,7 +12,7 @@
1212
HERE = os.path.abspath(os.path.dirname(__file__))
1313

1414
# The name of the project
15-
name="jupyterlab-code-snippets"
15+
name="jupyterlab-snippets"
1616

1717
# Ensure a valid python version
1818
ensure_python(">=3.6")
@@ -36,7 +36,7 @@
3636
data_files_spec = [
3737
("share/jupyter/lab/extensions", lab_path, "*.tgz"),
3838
("etc/jupyter/jupyter_notebook_config.d",
39-
"jupyter-config", "jupyterlab-code-snippets.json"),
39+
"jupyter-config", "jupyterlab-snippets.json"),
4040
]
4141

4242
cmdclass = create_cmdclass("jsdeps",
@@ -55,7 +55,7 @@
5555
setup_args = dict(
5656
name=name,
5757
version=version,
58-
url="https://github.com/QuantStack/jupyterlab-code-snippets",
58+
url="https://github.com/QuantStack/jupyterlab-snippets",
5959
author="QuantStack",
6060
description="Code Snippets Extension for JupyterLab",
6161
long_description=long_description,

src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ function createMenu(commands: CommandRegistry , tree: Tree, path: string[] = [])
7777
}
7878

7979
/**
80-
* Initialization data for the jupyterlab-code-snippets extension.
80+
* Initialization data for the jupyterlab-snippets extension.
8181
*/
8282
const extension: JupyterFrontEndPlugin<void> = {
83-
id: "jupyterlab-code-snippets",
83+
id: "jupyterlab-snippets",
8484
autoStart: true,
8585
optional: [IMainMenu, INotebookTracker],
8686
activate: async (

0 commit comments

Comments
 (0)