Python requirements in Rhino

@eirannejad,

A new syntax has just been approved for Python scripts which specify their own requirements, equivalent to the # requirements: package_name lines used by the new script editor in Rhino 8. It could be cool if Rhino supported this syntax:

# /// script
# dependencies = [
#   "requests<3",
#   "rich",
# ]
# requires-python = ">=3.11"
# ///

2 Likes

Great! I created a YT ticket for this

RH-79829 Adopt PEP723 in specifying in-script packages

Thanks for letting us know.

1 Like