Lines Matching refs:pybind11
6 While pybind11 is mainly focused on extending Python using C++, it's also
9 general pybind11 usage. This section will cover a few extra things required
16 lines of CMake and the ``pybind11::embed`` target, as shown below. For more
24 find_package(pybind11 REQUIRED) # or `add_subdirectory(pybind11)`
27 target_link_libraries(example PRIVATE pybind11::embed)
33 #include <pybind11/embed.h> // everything needed for embedding
34 namespace py = pybind11;
43 all the functions and classes in pybind11. The RAII guard class `scoped_interpreter`
56 #include <pybind11/embed.h>
57 namespace py = pybind11;
69 Alternatively, similar results can be achieved using pybind11's API (see
74 #include <pybind11/embed.h>
75 namespace py = pybind11;
90 #include <pybind11/embed.h>
93 namespace py = pybind11;
152 #include <pybind11/embed.h>
153 namespace py = pybind11;
189 #include <pybind11/embed.h>
190 namespace py = pybind11;
223 Modules created with pybind11 can be safely re-initialized after the interpreter
238 pybind11's internal data.
247 feature of the CPython API and should be handled with care. pybind11 does not
251 We'll just mention a couple of caveats the sub-interpreters support in pybind11:
260 pybind11, keep in mind that `gil_scoped_release` and `gil_scoped_acquire`