20#ifdef _MODEL_PYBIND11_ // COMPILED WITH PYBIND11
21 pybind11::scoped_interpreter guard{};
22#endif
23 QSurfaceFormat::setDefaultFormat(QVTKOpenGLNativeWidget::defaultFormat()); // needed to ensure appropriate OpenGL context is created for VTK rendering.