From 765a90bafb5dc21d3e58fbd1410948bdae48b752 Mon Sep 17 00:00:00 2001 From: Nathaniel Bauernfeind Date: Fri, 22 Dec 2023 17:20:24 -0700 Subject: [PATCH] fix py docs --- sphinx/source/conf.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/sphinx/source/conf.py b/sphinx/source/conf.py index 27accbdb119..26f13515214 100644 --- a/sphinx/source/conf.py +++ b/sphinx/source/conf.py @@ -105,13 +105,21 @@ import jpy py_scope_jpy = jpy.get_type("io.deephaven.engine.util.PythonScopeJpyImpl").ofMainGlobals() + +no_op_thread_factory = jpy.get_type("io.deephaven.util.thread.ThreadInitializationFactory").NO_OP +_JOperationInitializationThreadPool = jpy.get_type("io.deephaven.engine.table.impl.OperationInitializationThreadPool") +_j_operation_initializer = _JOperationInitializationThreadPool(no_op_thread_factory) + _JUpdateGraph = jpy.get_type("io.deephaven.engine.updategraph.impl.PeriodicUpdateGraph") -docs_update_graph = _JUpdateGraph.newBuilder("PYTHON_DOCS").build() +docs_update_graph = _JUpdateGraph.newBuilder("PYTHON_DOCS") \ + .operationInitializer(_j_operation_initializer) \ + .build() + _JPythonScriptSession = jpy.get_type("io.deephaven.integrations.python.PythonDeephavenSession") -no_op_operation_initializer = jpy.get_type("io.deephaven.util.thread.ThreadInitializationFactory").NO_OP -py_dh_session = _JPythonScriptSession(docs_update_graph, no_op_operation_initializer, py_scope_jpy) +py_dh_session = _JPythonScriptSession(docs_update_graph, _j_operation_initializer, no_op_thread_factory, py_scope_jpy) py_dh_session.getExecutionContext().open() + pygments_style = 'sphinx' import deephaven