jlenv
Change default environment of Julia interpreter.
Syntax
- jlenv
- je = jlenv('Version', julia_path)
- je = jlenv(...)
Input argument
- julia_path - a string, or row characters array: executable file name of Julia.
Output argument
- 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.
Example
je = jlenv
See also
History
Version | Description |
---|---|
1.12.0 | initial version |
Author
Allan CORNET