Package io.deephaven.engine.util
Class PythonEvaluatorJpy
java.lang.Object
io.deephaven.engine.util.PythonEvaluatorJpy
- All Implemented Interfaces:
- PythonEvaluator
The sole implementation of the 
PythonEvaluator, using Jpy to create a cpython interpreter instance inside of
 our JVM.
 Each evaluator has their own copy of the globals.- 
Method SummaryModifier and TypeMethodDescriptionvoidevalScript(String s) Evaluate the provided statements.voidEvaluate the provided statement.Gets the Python interpreter version string.getScope()voidRuns a Python script.voidSets the variable within our session.static PythonEvaluatorJpystatic PythonEvaluatorJpy
- 
Method Details- 
withGlobalCopypublic static PythonEvaluatorJpy withGlobalCopy() throws IOException, InterruptedException, TimeoutException
- 
withGlobalspublic static PythonEvaluatorJpy withGlobals() throws IOException, InterruptedException, TimeoutException
- 
getScope
- 
evalStatementDescription copied from interface:PythonEvaluatorEvaluate the provided statement. Not suitable for use with scripts; because multiple statements will be ignored.- Specified by:
- evalStatementin interface- PythonEvaluator
- Parameters:
- s- the string to evaluate
 
- 
evalScriptDescription copied from interface:PythonEvaluatorEvaluate the provided statements. If you've got a multi-line script; you must use this version.- Specified by:
- evalScriptin interface- PythonEvaluator
- Parameters:
- s- the string to evaluate
 
- 
runScriptDescription copied from interface:PythonEvaluatorRuns a Python script.- Specified by:
- runScriptin interface- PythonEvaluator
- Parameters:
- scriptFile- the file to execute
- Throws:
- FileNotFoundException- if scriptFile was not found
 
- 
getPythonVersionDescription copied from interface:PythonEvaluatorGets the Python interpreter version string.- Specified by:
- getPythonVersionin interface- PythonEvaluator
- Returns:
- The Python interpreter version string.
 
- 
setDescription copied from interface:PythonEvaluatorSets the variable within our session.- Specified by:
- setin interface- PythonEvaluator
- Parameters:
- name- the name of the variable to set.
- value- the value of the variable.
 
 
-