Replies: 1 comment
-
Sure, more examples would be great and PR adding this will be welcome! A few thoughts: current implementation (https://jugit.fz-juelich.de/mlz/sandbox/binder-sandbox/-/tree/main/callback) have ~9+ small files while total amount of code is minimal which makes reading it a bit difficult. So perhaps converting this whole set to a documentation page (with embedded code) might make a bit more sense and will be more readable. Also, i personally find use of word |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To prepare for full-scale adoption of binder/pybind11 in a large project of ours,
I wrote a short sandbox example that demonstrates how a Python-defined
callback function can be used with a C++-defined class constructor,
https://jugit.fz-juelich.de/mlz/sandbox/binder-sandbox/-/tree/main/callback.
Maybe you are interested to add this to the collection of binder examples.
The ease of this solution is a big advantage of binder/pybind11 over Swig.
Beta Was this translation helpful? Give feedback.
All reactions