ExternalSessionObject
Listing of External Evaluators »represents an external session started by StartExternalSession for use with ExternalEvaluate.
Details
- ExternalSessionObject[…][prop] returns a property of the external session.
- The following possible properties can be used:
-
"System" the external system or language to start "Version" version of the external system to use (e.g. "3.6") "Kernel" the Jupyter kernel name (e.g. "IFSharp") "Target" the target to use for evaluating code "ReturnType" type of object to return ("String", "Expression", ...) "Prolog" code to run before the command "Epilog" code to run after the command "SessionProlog" code to run before the session "SessionEpilog" code to run after the session - Available properties can be queried with ExternalSessionObject[…]["Properties"].
Examples
open allclose allBasic Examples (2)
Start an external session to get an ExternalSessionObject:
Delete the external session with DeleteObject:
Query properties from an ExternalSessionObject:
Scope (2)
Make a dataset of all ExternalSessionObject properties:
Evaluate code in a session and see the "EvaluationCount" property increase:
Display how long the session has been running with the "SessionTime" property:
Properties & Relations (1)
Get all external sessions with ExternalSessions:
Text
Wolfram Research (2017), ExternalSessionObject, Wolfram Language function, https://reference.wolfram.com/language/ref/ExternalSessionObject.html.
CMS
Wolfram Language. 2017. "ExternalSessionObject." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ExternalSessionObject.html.
APA
Wolfram Language. (2017). ExternalSessionObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ExternalSessionObject.html