ExternalValue

ExternalValue[sys,"sym"]

gives the value of "sym" in external evaluator sys.

ExternalValue[session,"sym"]

gives the value of "sym" in the specified external session.

Details

  • ExternalValue[session,"sym"] returns a Failure object if "sym" does not exist in session.
  • In ExternalValue[sys,], possible choices for sys include:
  • "Python"Python
    "NodeJS"JavaScript running through Node.js

Examples

Basic Examples  (1)

Start an external session:

Set an external value:

Get the external value:

End the external session:

Introduced in 2019
 (12.0)