google / google/neuroglancer

feat: PEP 723 for python examples

Open
#877 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.5k
Forks
389
Avg merge
3d 21h
Merged PRs (30d)
3

Description

Adding a [PEP 723](https://peps.python.org/pep-0723/) header to the python example files would make them self-contained and executable by any PEP 723-compatible tool, like `uv` or `hatch`. If there's interest in this feature I'm happy to open a PR. We would add this comment to the top of every example in `python/examples/`:

```python
# /// script
# requires-python = ">=3.10"
# dependencies = [
# "neuroglancer",
# "numpy",
# ]
# ///
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.