stellars-jupyterlab-sublime-theme 1.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- stellars_jupyterlab_sublime_theme-1.0.1/.copier-answers.yml +14 -0
- stellars_jupyterlab_sublime_theme-1.0.1/.gitignore +122 -0
- stellars_jupyterlab_sublime_theme-1.0.1/.prettierignore +6 -0
- stellars_jupyterlab_sublime_theme-1.0.1/.yarnrc.yml +1 -0
- stellars_jupyterlab_sublime_theme-1.0.1/CHANGELOG.md +5 -0
- stellars_jupyterlab_sublime_theme-1.0.1/LICENSE +29 -0
- stellars_jupyterlab_sublime_theme-1.0.1/Makefile +13 -0
- stellars_jupyterlab_sublime_theme-1.0.1/PKG-INFO +154 -0
- stellars_jupyterlab_sublime_theme-1.0.1/README.md +99 -0
- stellars_jupyterlab_sublime_theme-1.0.1/RELEASE.md +80 -0
- stellars_jupyterlab_sublime_theme-1.0.1/install.json +5 -0
- stellars_jupyterlab_sublime_theme-1.0.1/package.json +188 -0
- stellars_jupyterlab_sublime_theme-1.0.1/pyproject.toml +76 -0
- stellars_jupyterlab_sublime_theme-1.0.1/screenshot-stellars-sublime.png +0 -0
- stellars_jupyterlab_sublime_theme-1.0.1/setup.py +1 -0
- stellars_jupyterlab_sublime_theme-1.0.1/src/index.ts +30 -0
- stellars_jupyterlab_sublime_theme-1.0.1/stellars_jupyterlab_sublime_theme/__init__.py +16 -0
- stellars_jupyterlab_sublime_theme-1.0.1/stellars_jupyterlab_sublime_theme/_version.py +4 -0
- stellars_jupyterlab_sublime_theme-1.0.1/stellars_jupyterlab_sublime_theme/labextension/package.json +192 -0
- stellars_jupyterlab_sublime_theme-1.0.1/stellars_jupyterlab_sublime_theme/labextension/static/509.d8cdae86757ffaf9fc38.js +1 -0
- stellars_jupyterlab_sublime_theme-1.0.1/stellars_jupyterlab_sublime_theme/labextension/static/remoteEntry.41520a2c20da53ad31e8.js +1 -0
- stellars_jupyterlab_sublime_theme-1.0.1/stellars_jupyterlab_sublime_theme/labextension/static/style.js +4 -0
- stellars_jupyterlab_sublime_theme-1.0.1/stellars_jupyterlab_sublime_theme/labextension/static/third-party-licenses.json +3 -0
- stellars_jupyterlab_sublime_theme-1.0.1/stellars_jupyterlab_sublime_theme/labextension/themes/@stellars/jupyterlab_sublime_theme/index.css +581 -0
- stellars_jupyterlab_sublime_theme-1.0.1/stellars_jupyterlab_sublime_theme/labextension/themes/@stellars/jupyterlab_sublime_theme/index.js +0 -0
- stellars_jupyterlab_sublime_theme-1.0.1/style/codemirror-darcula.css +82 -0
- stellars_jupyterlab_sublime_theme-1.0.1/style/index.css +18 -0
- stellars_jupyterlab_sublime_theme-1.0.1/style/scrollbars.css +84 -0
- stellars_jupyterlab_sublime_theme-1.0.1/style/variables.css +481 -0
- stellars_jupyterlab_sublime_theme-1.0.1/tsconfig.json +23 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
|
|
2
|
+
_commit: v4.3.5
|
|
3
|
+
_src_path: https://github.com/jupyterlab/extension-template
|
|
4
|
+
author_email: konrad.jelen@gmail.com
|
|
5
|
+
author_name: Konrad Jelen
|
|
6
|
+
has_binder: false
|
|
7
|
+
has_settings: false
|
|
8
|
+
kind: theme
|
|
9
|
+
labextension_name: '@stellars/jupyterlab_sublime_theme'
|
|
10
|
+
project_short_description: Sublime dark theme tweaked by Stellars
|
|
11
|
+
python_name: stellars_jupyterlab_sublime_theme
|
|
12
|
+
repository: ''
|
|
13
|
+
test: false
|
|
14
|
+
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
*.bundle.*
|
|
2
|
+
lib/
|
|
3
|
+
node_modules/
|
|
4
|
+
yarn.lock
|
|
5
|
+
*.log
|
|
6
|
+
.eslintcache
|
|
7
|
+
.stylelintcache
|
|
8
|
+
*.egg-info/
|
|
9
|
+
.ipynb_checkpoints
|
|
10
|
+
*.tsbuildinfo
|
|
11
|
+
stellars_jupyterlab_sublime_theme/labextension
|
|
12
|
+
# Version file is handled by hatchling
|
|
13
|
+
stellars_jupyterlab_sublime_theme/_version.py
|
|
14
|
+
|
|
15
|
+
# Created by https://www.gitignore.io/api/python
|
|
16
|
+
# Edit at https://www.gitignore.io/?templates=python
|
|
17
|
+
|
|
18
|
+
### Python ###
|
|
19
|
+
# Byte-compiled / optimized / DLL files
|
|
20
|
+
__pycache__/
|
|
21
|
+
*.py[cod]
|
|
22
|
+
*$py.class
|
|
23
|
+
|
|
24
|
+
# C extensions
|
|
25
|
+
*.so
|
|
26
|
+
|
|
27
|
+
# Distribution / packaging
|
|
28
|
+
.Python
|
|
29
|
+
build/
|
|
30
|
+
develop-eggs/
|
|
31
|
+
dist/
|
|
32
|
+
downloads/
|
|
33
|
+
eggs/
|
|
34
|
+
.eggs/
|
|
35
|
+
lib/
|
|
36
|
+
lib64/
|
|
37
|
+
parts/
|
|
38
|
+
sdist/
|
|
39
|
+
var/
|
|
40
|
+
wheels/
|
|
41
|
+
pip-wheel-metadata/
|
|
42
|
+
share/python-wheels/
|
|
43
|
+
.installed.cfg
|
|
44
|
+
*.egg
|
|
45
|
+
MANIFEST
|
|
46
|
+
|
|
47
|
+
# PyInstaller
|
|
48
|
+
# Usually these files are written by a python script from a template
|
|
49
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
50
|
+
*.manifest
|
|
51
|
+
*.spec
|
|
52
|
+
|
|
53
|
+
# Installer logs
|
|
54
|
+
pip-log.txt
|
|
55
|
+
pip-delete-this-directory.txt
|
|
56
|
+
|
|
57
|
+
# Unit test / coverage reports
|
|
58
|
+
htmlcov/
|
|
59
|
+
.tox/
|
|
60
|
+
.nox/
|
|
61
|
+
.coverage
|
|
62
|
+
.coverage.*
|
|
63
|
+
.cache
|
|
64
|
+
nosetests.xml
|
|
65
|
+
coverage/
|
|
66
|
+
coverage.xml
|
|
67
|
+
*.cover
|
|
68
|
+
.hypothesis/
|
|
69
|
+
.pytest_cache/
|
|
70
|
+
|
|
71
|
+
# Translations
|
|
72
|
+
*.mo
|
|
73
|
+
*.pot
|
|
74
|
+
|
|
75
|
+
# Scrapy stuff:
|
|
76
|
+
.scrapy
|
|
77
|
+
|
|
78
|
+
# Sphinx documentation
|
|
79
|
+
docs/_build/
|
|
80
|
+
|
|
81
|
+
# PyBuilder
|
|
82
|
+
target/
|
|
83
|
+
|
|
84
|
+
# pyenv
|
|
85
|
+
.python-version
|
|
86
|
+
|
|
87
|
+
# celery beat schedule file
|
|
88
|
+
celerybeat-schedule
|
|
89
|
+
|
|
90
|
+
# SageMath parsed files
|
|
91
|
+
*.sage.py
|
|
92
|
+
|
|
93
|
+
# Spyder project settings
|
|
94
|
+
.spyderproject
|
|
95
|
+
.spyproject
|
|
96
|
+
|
|
97
|
+
# Rope project settings
|
|
98
|
+
.ropeproject
|
|
99
|
+
|
|
100
|
+
# Mr Developer
|
|
101
|
+
.mr.developer.cfg
|
|
102
|
+
.project
|
|
103
|
+
.pydevproject
|
|
104
|
+
|
|
105
|
+
# mkdocs documentation
|
|
106
|
+
/site
|
|
107
|
+
|
|
108
|
+
# mypy
|
|
109
|
+
.mypy_cache/
|
|
110
|
+
.dmypy.json
|
|
111
|
+
dmypy.json
|
|
112
|
+
|
|
113
|
+
# Pyre type checker
|
|
114
|
+
.pyre/
|
|
115
|
+
|
|
116
|
+
# End of https://www.gitignore.io/api/python
|
|
117
|
+
|
|
118
|
+
# OSX files
|
|
119
|
+
.DS_Store
|
|
120
|
+
|
|
121
|
+
# Yarn cache
|
|
122
|
+
.yarn/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
nodeLinker: node-modules
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024, Konrad Jelen
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
10
|
+
list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
13
|
+
this list of conditions and the following disclaimer in the documentation
|
|
14
|
+
and/or other materials provided with the distribution.
|
|
15
|
+
|
|
16
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
17
|
+
contributors may be used to endorse or promote products derived from
|
|
18
|
+
this software without specific prior written permission.
|
|
19
|
+
|
|
20
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
21
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
22
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
23
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
24
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
25
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
26
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
27
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
28
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
29
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: stellars_jupyterlab_sublime_theme
|
|
3
|
+
Version: 1.0.1
|
|
4
|
+
Summary: Sublime dark theme based on Darcula, tweaked by Stellars
|
|
5
|
+
Project-URL: Homepage, https://github.com/stellarshenson/jupyterlab_stellars_sublime_theme
|
|
6
|
+
Project-URL: Bug Tracker, https://github.com/stellarshenson/jupyterlab_stellars_sublime_theme/issues
|
|
7
|
+
Project-URL: Repository, https://github.com/stellarshenson/jupyterlab_stellars_sublime_theme.git
|
|
8
|
+
Author-email: Konrad Jelen <konrad.jelen@gmail.com>
|
|
9
|
+
License: BSD 3-Clause License
|
|
10
|
+
|
|
11
|
+
Copyright (c) 2024, Konrad Jelen
|
|
12
|
+
All rights reserved.
|
|
13
|
+
|
|
14
|
+
Redistribution and use in source and binary forms, with or without
|
|
15
|
+
modification, are permitted provided that the following conditions are met:
|
|
16
|
+
|
|
17
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
18
|
+
list of conditions and the following disclaimer.
|
|
19
|
+
|
|
20
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
21
|
+
this list of conditions and the following disclaimer in the documentation
|
|
22
|
+
and/or other materials provided with the distribution.
|
|
23
|
+
|
|
24
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
25
|
+
contributors may be used to endorse or promote products derived from
|
|
26
|
+
this software without specific prior written permission.
|
|
27
|
+
|
|
28
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
29
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
30
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
31
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
32
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
33
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
34
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
35
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
36
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
37
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
38
|
+
License-File: LICENSE
|
|
39
|
+
Keywords: jupyter,jupyterlab,jupyterlab-extension
|
|
40
|
+
Classifier: Framework :: Jupyter
|
|
41
|
+
Classifier: Framework :: Jupyter :: JupyterLab
|
|
42
|
+
Classifier: Framework :: Jupyter :: JupyterLab :: 4
|
|
43
|
+
Classifier: Framework :: Jupyter :: JupyterLab :: Extensions
|
|
44
|
+
Classifier: Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt
|
|
45
|
+
Classifier: License :: OSI Approved :: BSD License
|
|
46
|
+
Classifier: Programming Language :: Python
|
|
47
|
+
Classifier: Programming Language :: Python :: 3
|
|
48
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
49
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
50
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
51
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
52
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
53
|
+
Requires-Python: >=3.8
|
|
54
|
+
Description-Content-Type: text/markdown
|
|
55
|
+
|
|
56
|
+
# Stellars Jupyterlab Sublime Theme
|
|
57
|
+
|
|
58
|
+
[](/actions/workflows/build.yml)
|
|
59
|
+
|
|
60
|
+
**Dark Gray-blue clone based on Sublime Text Editor**
|
|
61
|
+
|
|
62
|
+
Dark Sublime Text Editor theme clone for jupyterlab based on [Sublime Text Editor](https://www.sublimetext.com).
|
|
63
|
+
This theme has simple, dark gray-blue clean colours and minimal intruision into the standard jupyterlab styling.
|
|
64
|
+
Base theme on which this one was built is the original [Jupyterlab Darcula theme](https://github.com/telamonian/theme-darcula)
|
|
65
|
+
|
|
66
|
+
Project is based on the latest [jupyterlab extension template](https://github.com/jupyterlab/extension-template) and built with with copier.
|
|
67
|
+
|
|
68
|
+

|
|
69
|
+
## Requirements
|
|
70
|
+
|
|
71
|
+
- JupyterLab >= 4.0.0
|
|
72
|
+
|
|
73
|
+
## Install
|
|
74
|
+
|
|
75
|
+
To install the extension, execute:
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
pip install stellars_jupyterlab_sublime_theme
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Uninstall
|
|
82
|
+
|
|
83
|
+
To remove the extension, execute:
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
pip uninstall stellars_jupyterlab_sublime_theme
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## Contributing
|
|
90
|
+
|
|
91
|
+
### Development install
|
|
92
|
+
|
|
93
|
+
Note: You will need NodeJS to build the extension package.
|
|
94
|
+
|
|
95
|
+
#### Dependencies
|
|
96
|
+
- install nodejs with conda: `conda install nodejs`
|
|
97
|
+
- install jupyterlab: `conda install jupyterlab`
|
|
98
|
+
- install maketools: `conda install make`
|
|
99
|
+
- install build and setuptools: `pip install build setuptools`
|
|
100
|
+
|
|
101
|
+
#### Build
|
|
102
|
+
|
|
103
|
+
- invoke `make` to build the `.whl` package
|
|
104
|
+
- invoke `make clean` to run cleanup & uninstall
|
|
105
|
+
- invoke `make install` to build and install extension
|
|
106
|
+
- invoke `make uninstall` to uninstall extension
|
|
107
|
+
|
|
108
|
+
#### Development
|
|
109
|
+
|
|
110
|
+
The `jlpm` command is JupyterLab's pinned version of
|
|
111
|
+
[yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use
|
|
112
|
+
`yarn` or `npm` in lieu of `jlpm` below.
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
# Clone the repo to your local environment
|
|
116
|
+
# Change directory to the stellars_jupyterlab_sublime_theme directory
|
|
117
|
+
# Install package in development mode
|
|
118
|
+
pip install -e "."
|
|
119
|
+
# Link your development version of the extension with JupyterLab
|
|
120
|
+
jupyter labextension develop . --overwrite
|
|
121
|
+
# Rebuild extension Typescript source after making changes
|
|
122
|
+
jlpm build
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
You can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
# Watch the source directory in one terminal, automatically rebuilding when needed
|
|
129
|
+
jlpm watch
|
|
130
|
+
# Run JupyterLab in another terminal
|
|
131
|
+
jupyter lab
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).
|
|
135
|
+
|
|
136
|
+
By default, the `jlpm build` command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
jupyter lab build --minimize=False
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Development uninstall
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
pip uninstall stellars_jupyterlab_sublime_theme
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
In development mode, you will also need to remove the symlink created by `jupyter labextension develop`
|
|
149
|
+
command. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`
|
|
150
|
+
folder is located. Then you can remove the symlink named `@stellars/jupyterlab_sublime_theme` within that folder.
|
|
151
|
+
|
|
152
|
+
### Packaging the extension
|
|
153
|
+
|
|
154
|
+
See [RELEASE](RELEASE.md)
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# Stellars Jupyterlab Sublime Theme
|
|
2
|
+
|
|
3
|
+
[](/actions/workflows/build.yml)
|
|
4
|
+
|
|
5
|
+
**Dark Gray-blue clone based on Sublime Text Editor**
|
|
6
|
+
|
|
7
|
+
Dark Sublime Text Editor theme clone for jupyterlab based on [Sublime Text Editor](https://www.sublimetext.com).
|
|
8
|
+
This theme has simple, dark gray-blue clean colours and minimal intruision into the standard jupyterlab styling.
|
|
9
|
+
Base theme on which this one was built is the original [Jupyterlab Darcula theme](https://github.com/telamonian/theme-darcula)
|
|
10
|
+
|
|
11
|
+
Project is based on the latest [jupyterlab extension template](https://github.com/jupyterlab/extension-template) and built with with copier.
|
|
12
|
+
|
|
13
|
+

|
|
14
|
+
## Requirements
|
|
15
|
+
|
|
16
|
+
- JupyterLab >= 4.0.0
|
|
17
|
+
|
|
18
|
+
## Install
|
|
19
|
+
|
|
20
|
+
To install the extension, execute:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
pip install stellars_jupyterlab_sublime_theme
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Uninstall
|
|
27
|
+
|
|
28
|
+
To remove the extension, execute:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
pip uninstall stellars_jupyterlab_sublime_theme
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Contributing
|
|
35
|
+
|
|
36
|
+
### Development install
|
|
37
|
+
|
|
38
|
+
Note: You will need NodeJS to build the extension package.
|
|
39
|
+
|
|
40
|
+
#### Dependencies
|
|
41
|
+
- install nodejs with conda: `conda install nodejs`
|
|
42
|
+
- install jupyterlab: `conda install jupyterlab`
|
|
43
|
+
- install maketools: `conda install make`
|
|
44
|
+
- install build and setuptools: `pip install build setuptools`
|
|
45
|
+
|
|
46
|
+
#### Build
|
|
47
|
+
|
|
48
|
+
- invoke `make` to build the `.whl` package
|
|
49
|
+
- invoke `make clean` to run cleanup & uninstall
|
|
50
|
+
- invoke `make install` to build and install extension
|
|
51
|
+
- invoke `make uninstall` to uninstall extension
|
|
52
|
+
|
|
53
|
+
#### Development
|
|
54
|
+
|
|
55
|
+
The `jlpm` command is JupyterLab's pinned version of
|
|
56
|
+
[yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use
|
|
57
|
+
`yarn` or `npm` in lieu of `jlpm` below.
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# Clone the repo to your local environment
|
|
61
|
+
# Change directory to the stellars_jupyterlab_sublime_theme directory
|
|
62
|
+
# Install package in development mode
|
|
63
|
+
pip install -e "."
|
|
64
|
+
# Link your development version of the extension with JupyterLab
|
|
65
|
+
jupyter labextension develop . --overwrite
|
|
66
|
+
# Rebuild extension Typescript source after making changes
|
|
67
|
+
jlpm build
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
You can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
# Watch the source directory in one terminal, automatically rebuilding when needed
|
|
74
|
+
jlpm watch
|
|
75
|
+
# Run JupyterLab in another terminal
|
|
76
|
+
jupyter lab
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).
|
|
80
|
+
|
|
81
|
+
By default, the `jlpm build` command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
jupyter lab build --minimize=False
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Development uninstall
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
pip uninstall stellars_jupyterlab_sublime_theme
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
In development mode, you will also need to remove the symlink created by `jupyter labextension develop`
|
|
94
|
+
command. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`
|
|
95
|
+
folder is located. Then you can remove the symlink named `@stellars/jupyterlab_sublime_theme` within that folder.
|
|
96
|
+
|
|
97
|
+
### Packaging the extension
|
|
98
|
+
|
|
99
|
+
See [RELEASE](RELEASE.md)
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Making a new release of stellars_jupyterlab_sublime_theme
|
|
2
|
+
|
|
3
|
+
The extension can be published to `PyPI` and `npm` manually or using the [Jupyter Releaser](https://github.com/jupyter-server/jupyter_releaser).
|
|
4
|
+
|
|
5
|
+
## Manual release
|
|
6
|
+
|
|
7
|
+
### Python package
|
|
8
|
+
|
|
9
|
+
This extension can be distributed as Python packages. All of the Python
|
|
10
|
+
packaging instructions are in the `pyproject.toml` file to wrap your extension in a
|
|
11
|
+
Python package. Before generating a package, you first need to install some tools:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
pip install build twine hatch
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Bump the version using `hatch`. By default this will create a tag.
|
|
18
|
+
See the docs on [hatch-nodejs-version](https://github.com/agoose77/hatch-nodejs-version#semver) for details.
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
hatch version <new-version>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Make sure to clean up all the development files before building the package:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
jlpm clean:all
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
You could also clean up the local git repository:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
git clean -dfX
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
To create a Python source package (`.tar.gz`) and the binary package (`.whl`) in the `dist/` directory, do:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
python -m build
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
> `python setup.py sdist bdist_wheel` is deprecated and will not work for this package.
|
|
43
|
+
|
|
44
|
+
Then to upload the package to PyPI, do:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
twine upload dist/*
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### NPM package
|
|
51
|
+
|
|
52
|
+
To publish the frontend part of the extension as a NPM package, do:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
npm login
|
|
56
|
+
npm publish --access public
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Automated releases with the Jupyter Releaser
|
|
60
|
+
|
|
61
|
+
The extension repository should already be compatible with the Jupyter Releaser. But
|
|
62
|
+
the GitHub repository and the package managers need to be properly set up. Please
|
|
63
|
+
follow the instructions of the Jupyter Releaser [checklist](https://jupyter-releaser.readthedocs.io/en/latest/how_to_guides/convert_repo_from_repo.html).
|
|
64
|
+
|
|
65
|
+
Here is a summary of the steps to cut a new release:
|
|
66
|
+
|
|
67
|
+
- Go to the Actions panel
|
|
68
|
+
- Run the "Step 1: Prep Release" workflow
|
|
69
|
+
- Check the draft changelog
|
|
70
|
+
- Run the "Step 2: Publish Release" workflow
|
|
71
|
+
|
|
72
|
+
> [!NOTE]
|
|
73
|
+
> Check out the [workflow documentation](https://jupyter-releaser.readthedocs.io/en/latest/get_started/making_release_from_repo.html)
|
|
74
|
+
> for more information.
|
|
75
|
+
|
|
76
|
+
## Publishing to `conda-forge`
|
|
77
|
+
|
|
78
|
+
If the package is not on conda forge yet, check the documentation to learn how to add it: https://conda-forge.org/docs/maintainer/adding_pkgs.html
|
|
79
|
+
|
|
80
|
+
Otherwise a bot should pick up the new version publish to PyPI, and open a new PR on the feedstock repository automatically.
|