Skip to content

Commit 3c9c30a

Browse files
authored
Merge pull request #492 from zivy/uvScriptSupport
Adding inline script metadata per PEP 723.
2 parents aede152 + aaafc61 commit 3c9c30a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Python/scripts/characterize_data.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,24 @@
1717
#
1818
# =========================================================================
1919

20+
#
21+
# Run the script directly from GitHub without downloading it using uv (https://github.com/astral-sh/uv):
22+
# uv run https://raw.githubusercontent.com/InsightSoftwareConsortium/SimpleITK-Notebooks/refs/heads/main/Python/scripts/characterize_data.py -h
23+
#
24+
25+
#
26+
# Provide inline script metadata per PEP 723 (https://peps.python.org/pep-0723/)
27+
# /// script
28+
# requires-python = ">=3.11"
29+
# dependencies = [
30+
# "matplotlib",
31+
# "numpy",
32+
# "pandas",
33+
# "tqdm",
34+
# "SimpleITK",
35+
# ]
36+
# ///
37+
2038
import SimpleITK as sitk
2139
import pandas as pd
2240
import numpy as np

0 commit comments

Comments
 (0)