Skip to content

Commit

Permalink
Add explanatory comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kounelisagis committed May 20, 2024
1 parent 026dfcb commit 7f6bbd7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tiledb/cc/schema.cc
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ void init_schema(py::module &m) {

.def("_dump",
[](ArraySchema &schema) {
// To capture C stdout on jupyter, as described here
// https://pybind11.readthedocs.io/en/stable/advanced/pycpp/utilities.html#capturing-standard-output-from-ostream
py::scoped_ostream_redirect stream(
std::cout, py::module_::import("sys").attr("stdout"));
schema.dump();
Expand Down

0 comments on commit 7f6bbd7

Please sign in to comment.