#include #include #include "py_algorithms.hh" #include "py_ex.hh" #include "py_kernel.hh" #include "py_packages.hh" #include "py_progress.hh" #include "py_properties.hh" #include "py_stopwatch.hh" #include "py_tableau.hh" #include "py_ntensor.hh" #include "Kernel.hh" namespace cadabra { namespace py = pybind11; std::string init_ipython() { py::exec("from IPython.display import Math"); return "Cadabra typeset output for IPython notebook initialised."; } PYBIND11_MODULE(cadabra2, m) { py::options options; options.disable_function_signatures(); m.def("init_ipython", &init_ipython); // These must be initialized in the order of which // symbols appear init_packages(m); init_kernel(m); init_progress_monitor(m); init_ntensor(m); init_stopwatch(m); init_ex(m); init_tableau(m); init_algorithms(m); init_properties(m); } }