.. _program_listing_file_interfaces_python.cc: Program Listing for File python.cc ================================== |exhale_lsh| :ref:`Return to documentation for file ` (``interfaces/python.cc``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifdef LUPNT_WITH_PYTHON # include "lupnt/core/python.h" namespace lupnt { py::module_ py_pnt = []() { PythonInterpreter::GetInstance(); return py::module_::import("pylupnt"); }(); py::module_ py_plot = []() { PythonInterpreter::GetInstance(); return py::module_::import("pylupnt.plot"); }(); py::module_ py_pio = []() { PythonInterpreter::GetInstance(); return py::module_::import("plotly.io"); }(); py::module_ py_go = []() { PythonInterpreter::GetInstance(); return py::module_::import("plotly.graph_objects"); }(); py::module_ py_plt = []() { PythonInterpreter::GetInstance(); return py::module_::import("matplotlib.pyplot"); }(); } // namespace lupnt #endif // LUPNT_WITH_PYTHON