> For the complete documentation index, see [llms.txt](https://nelson-9.gitbook.io/nelson/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nelson-9.gitbook.io/nelson/markdown/en/julia_engine/jlrunfile.md).

# jlrunfile

Run Julia file from Nelson.

## 📝 Syntax

* jlrunfile(filename)
* jlrunfile(filename input)
* outvars = jlrunfile(filename, outputs)
* outvars = jlrunfile(filename, outputs, jlName, jlValue, ...)

## 📥 Input argument

* filename - a string scalar, character vector: filename .jl to run.
* "filename 'input' " - a string scalar, character vector: filename .jl to run with input arguments.
* jlName, jlValue - Input arguments name and value
* outputs - string array: Julia variable names.

## 📤 Output argument

* outvars - One or more Nelson workspace variable names returned as valid Julia types.

## 📄 Description

jlrunfile(filenam) function executes Julia file.

As the jlrun function, variables generated in the Julia workspace through the jlrunfile function do persist.

The code outvars = jlrunfile(file, outputs, jlName1, jlValue2, ..., jlNameN, jlValueN) executes the code with one or more name-value pair arguments.

## 💡 Examples

jlrunfile\_example\_1.jl

```matlab
content = "hello Nelson"
display(content)
```

jlrunfile from Nelson

```matlab
jlrunfile('jlrunfile_example_1.jl')
```

## 🔗 See also

[jlrun](/nelson/markdown/en/julia_engine/jlrun.md), [jlenv](/nelson/markdown/en/julia_engine/jlenv.md), [Julia types supported](/nelson/markdown/en/julia_engine/julia_types.md).

## 🕔 History

| Version | 📄 Description  |
| ------- | --------------- |
| 1.12.0  | initial version |
