jlenv
Change default environment of Julia interpreter.
📝Syntax
jlenv
je = jlenv('Version', julia_path)
je = jlenv(...)
📥Input Arguments
Parameter Description
julia_path a string, or row characters array: executable file name of Julia.
📤Output Arguments
Parameter Description
je JuliaEnvironment object.
📄Description

Use jlenv to modify the default version or execution mode of the Julia interpreter, ensuring these adjustments persist across various Nelson sessions.

The value set by jlenv is persistent across Nelson sessions.

Properties:

Version: string: Julia version

Executable: string: Name of Julia executable file

Library: string: Shared library file

Home: string: Home folder

Status: Process status: "NotLoaded" (default), "Loaded", "Terminated"

ExecutionMode: Execution mode: "InProcess" (default) or "OutOfProcess"

Use environment variables to force julia environment at each startup (usefull for snapcraft or docker distribution):

__NELSON_JULIA_VERSION__: example "1.11"

__NELSON_JULIA_EXECUTABLE__: example "/usr/bin/julia"

__NELSON_JULIA_LIBRARY__: example "libjulia.so"

__NELSON_JULIA_HOME__: example "/usr"

All environment variables must exist and valid to be considered.

💡Examples
je = jlenv
Set the Julia executable path
jlenv('Version', ''C:\WindowsTools\Julia-1.11.6\bin\julia.exe'')
🔗See Also
jlrun
🕔Version History
Version Description
1.12.0 initial version
Edit this page on GitHub