3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-25 13:53:40 +01:00
dft_tools/triqs/python_tools
Olivier Parcollet f1c32012a6 magic : redirect std::cout to python sys.out.write
- for all functions, except when GIL option (not implemented) is here
  we use a triqs::py_stream, which redirect the stream
  to python sys.write
- so that a simple C++ code with a std::cout
  print its output in the notebook...
- NB : it only works for the code within the cell.
  If it calls another function on the lib which uses cout,
  print is not redirected.
  Designed for simple tests....
- cerr not (yet) redirected. (useful ?).
2014-06-11 16:25:47 +02:00
..
CMakeLists.txt First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
py_stream.cpp magic : redirect std::cout to python sys.out.write 2014-06-11 16:25:47 +02:00
py_stream.hpp magic : redirect std::cout to python sys.out.write 2014-06-11 16:25:47 +02:00
pyref.hpp magic : redirect std::cout to python sys.out.write 2014-06-11 16:25:47 +02:00
wrapper_tools.cpp parameters & wrapper 2014-05-19 15:19:18 +02:00
wrapper_tools.hpp magic : redirect std::cout to python sys.out.write 2014-06-11 16:25:47 +02:00