> For the complete documentation index, see [llms.txt](https://docs.nuvolos.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nuvolos.com/how-to-guides/application-specific-guides/dynare.jl.md).

# Dynare.jl

### Prerequisites

Nuvolos provides a pre-built application with **Dynare 5.3**, **Julia 1.8**, and the **Dynare.jl** package pre-installed. To get started, add a **Dynare 5.3 + Julia 1.8 + VSCode** application to your working instance.

### Dynare.jl example

Start the application and create a new Julia file `dynare_demo.jl` with the following contents:

```julia
cp("/usr/local/lib/dynare/examples/example2.mod","/files/example2.mod", force=true)

using Dynare

context = @dynare "example2.mod";

using JLD2
DD = load("example2/output/example2.jld2")
```

This example will copy one of the example models provided with Dynare to the Files area (`/files` ) parse and run the calculations on the model. You can run the example either from the command line with the `julia /files/dynare_demo.jl` command, or using VSCode's debugger by pressing the `F5` key.

The output will be saved under `/files/example2/output/example2.jld2` in JLD2 format, which can be processed with the [JLD2 Julia library](https://github.com/JuliaIO/JLD2.jl).

Plots are available under the `/files/example2/output/graphs` folder.

{% hint style="info" %}
This application does not provide a Linux X window display. The plots will not be automatically opened. You can open them with VSCode by double-clicking on the .png files in the file navigator tree view.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.nuvolos.com/how-to-guides/application-specific-guides/dynare.jl.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
