Skip to content

[nanobind] Website API reference #24895

Description

@jwnimmer-tri

Per #21572 we are switching to nanobind. There is a flag to choose pybind11 vs nanobind, currently defaulted to pybind11.

If we try a documentation preview bazel run //doc/pydrake:build --@drake//tools/flags:python_binder=nanobind -- --serve with nanobind, it is notably worse. Most functions are missing signatures.

This isn't urgent (since we won't switch the website to use the new docs right away), but still needs attention. Ideally we'd fix it before switching the default (in 3 months), but at worst we could force the docs build to use pybind11, and then fix it before the final pybind11 removal (in 6 months).

Possibly sphinx-autodoc-typehints would help us fix this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions