Skip to content

Commit

Permalink
fix py docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nbauernfeind committed Dec 23, 2023
1 parent b6ee165 commit 765a90b
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions sphinx/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 765a90b

Please sign in to comment.