You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Jupyter Notebook or in IPython I can normally press tab inside a function to autocomplete named arguments, but I cannot make this work for the example below. I can explicitly name the arguments, i.e. add(first=2, second=3) but not begin typing sec...+tab to complete to second. Is there a way of achieve this?
Reproducible example code
#include<pybind11/pybind11.h>intadd(int i, int j) {
return i + j;
}
namespacepy= pybind11;
PYBIND11_PLUGIN(example) {
usingnamespacepybind11::literals;
py::modulem("example", "pybind11 example plugin");
m.def("add", &add, "A function which adds two numbers", "first"_a, "second"_a);
return m.ptr();
}