"Julia" (External Evaluation System)
Details

- Julia Version 0.7 and higher is supported. For ExternalFunction support, Julia 1.2 or higher is required.
- To configure Julia for use in the Wolfram Language, follow the instructions from the Configure Julia for ExternalEvaluate workflow.
ExternalEvaluate Usage

- ExternalEvaluate["Julia",code] executes the code string in a Julia REPL and returns the results as a Wolfram Language expression.
- ExternalEvaluate["Julia""String",code] executes the code string in a Julia REPL and returns the output as a Wolfram Language string.
Data Types

- The following Julia built-in types are supported:
-
Bool True False Boolean True/False values Int8, Int16, Int32, etc. Integer integer Float16, Float32, etc. Real real number Complex{Float16}, Complex{Float32}, etc. Complex complex number (returning from Julia only) String String string of characters Array List list of objects Dict Association associative array Set List unordered set without duplicates Tuple List fixed-length container Date, DateTime dates, date intervals NaN Indeterminate not-a-number nothing Null no return value
Examples
open allclose allBasic Examples (1)
Evaluate 2+2 in Julia and return the result:
Type > and select Julia from the drop-down menu to get a code cell that uses ExternalEvaluate to evaluate:
Dates are returned from Julia as DateObject expressions:
Scope (3)
Concatenate strings in Julia and return the result:
Dictionaries in Julia are returned as associations:
Define a Wolfram Language function that calls a Julia function:
A NumericArray is sent to Julia as an array with the same element type: