celldega 0.0.0__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.
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# reference: https://github.com/developmentseed/lonboard/blob/main/.gitignore
|
|
2
|
+
*.html
|
|
3
|
+
*.zip
|
|
4
|
+
*.arrow
|
|
5
|
+
*.parquet
|
|
6
|
+
*.feather
|
|
7
|
+
.ruff_cache
|
|
8
|
+
dist
|
|
9
|
+
.DS_Store
|
|
10
|
+
# So that notebooks are only included _intentionally_
|
|
11
|
+
*.ipynb
|
|
12
|
+
.cache
|
|
13
|
+
site
|
|
14
|
+
|
|
15
|
+
# pixi environments
|
|
16
|
+
.pixi
|
|
17
|
+
.ipynb_checkpoints
|
|
18
|
+
.yarn
|
|
19
|
+
.venv
|
|
20
|
+
*.wasm
|
|
21
|
+
__pycache__
|
|
22
|
+
static
|
|
23
|
+
.pnp.cjs
|
|
24
|
+
.pnp.loader.mjs
|
|
25
|
+
node_modules
|
|
26
|
+
*.h5
|
celldega-0.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: celldega
|
|
3
|
+
Version: 0.0.0
|
|
4
|
+
Requires-Dist: anywidget
|
|
5
|
+
Provides-Extra: dev
|
|
6
|
+
Requires-Dist: jupyterlab; extra == 'dev'
|
|
7
|
+
Requires-Dist: watchfiles; extra == 'dev'
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
|
|
10
|
+
# celldega
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
pip install celldega
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Development installation
|
|
19
|
+
|
|
20
|
+
Create a virtual environment and and install celldega in *editable* mode with the
|
|
21
|
+
optional development dependencies:
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
python -m venv .venv
|
|
25
|
+
source .venv/bin/activate
|
|
26
|
+
pip install -e ".[dev]"
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
You then need to install the JavaScript dependencies and run the development server.
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
npm install
|
|
33
|
+
npm run dev
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Open `example.ipynb` in JupyterLab, VS Code, or your favorite editor
|
|
37
|
+
to start developing. Changes made in `js/` will be reflected
|
|
38
|
+
in the notebook.
|
celldega-0.0.0/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# celldega
|
|
2
|
+
|
|
3
|
+
## Installation
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
pip install celldega
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Development installation
|
|
10
|
+
|
|
11
|
+
Create a virtual environment and and install celldega in *editable* mode with the
|
|
12
|
+
optional development dependencies:
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
python -m venv .venv
|
|
16
|
+
source .venv/bin/activate
|
|
17
|
+
pip install -e ".[dev]"
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
You then need to install the JavaScript dependencies and run the development server.
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
npm install
|
|
24
|
+
npm run dev
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Open `example.ipynb` in JupyterLab, VS Code, or your favorite editor
|
|
28
|
+
to start developing. Changes made in `js/` will be reflected
|
|
29
|
+
in the notebook.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "celldega"
|
|
7
|
+
version = "0.0.0"
|
|
8
|
+
dependencies = ["anywidget"]
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
|
|
11
|
+
[project.optional-dependencies]
|
|
12
|
+
dev = ["watchfiles", "jupyterlab"]
|
|
13
|
+
|
|
14
|
+
# automatically add the dev feature to the default env (e.g., hatch shell)
|
|
15
|
+
[tool.hatch.envs.default]
|
|
16
|
+
features = ["dev"]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
[tool.hatch.build]
|
|
20
|
+
only-packages = true
|
|
21
|
+
artifacts = ["src/celldega/static/*"]
|
|
22
|
+
|
|
23
|
+
[tool.hatch.build.hooks.jupyter-builder]
|
|
24
|
+
build-function = "hatch_jupyter_builder.npm_builder"
|
|
25
|
+
ensured-targets = ["src/celldega/static/widget.js"]
|
|
26
|
+
skip-if-exists = ["src/celldega/static/widget.js"]
|
|
27
|
+
dependencies = ["hatch-jupyter-builder>=0.5.0"]
|
|
28
|
+
|
|
29
|
+
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
|
|
30
|
+
npm = "npm"
|
|
31
|
+
build_cmd = "build"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import importlib.metadata
|
|
2
|
+
import pathlib
|
|
3
|
+
|
|
4
|
+
import anywidget
|
|
5
|
+
import traitlets
|
|
6
|
+
|
|
7
|
+
try:
|
|
8
|
+
__version__ = importlib.metadata.version("celldega")
|
|
9
|
+
except importlib.metadata.PackageNotFoundError:
|
|
10
|
+
__version__ = "unknown"
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Counter(anywidget.AnyWidget):
|
|
14
|
+
_esm = pathlib.Path(__file__).parent / "static" / "widget.js"
|
|
15
|
+
_css = pathlib.Path(__file__).parent / "static" / "widget.css"
|
|
16
|
+
value = traitlets.Int(0).tag(sync=True)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.celldega-counter-button{background:linear-gradient(300deg,#93f 33.26%,#f66,#faca30,#00cd99,#0cf 86.29%);border-radius:10px;border:0;color:#fff;cursor:pointer;font-family:Roboto,sans-serif;font-size:2em;margin:10px;padding:10px 20px;transition:transform .25s ease-in-out}.celldega-counter-button:hover{transform:scale(1.05)}
|