# REPL

> Julia comes with a full-featured interactive command-line REPL (read-eval-print loop) built into the `julia` executable. In addition to allowing quick and easy evaluation of Julia statements, it has a searchable history, tab-completion, many helpful keybindings, and dedicated help `?` and shell modes `;`. [\[1\]](#references)&#x20;

This page provides examples of using REPL on the command line.

## Julia REPL Example (local) <a href="#julia_repl_example_local" id="julia_repl_example_local"></a>

* Type `julia` in terminal to launch REPL

<figure><img src="https://content.gitbook.com/content/v4bMBkQ3ZBxkXjskIqBa/blobs/805OZNIgOlnL8JKFfX2V/repl_ex.png" alt=""><figcaption></figcaption></figure>

## Julia REPL Help Pages (local) <a href="#julia_repl_help_pages_local" id="julia_repl_help_pages_local"></a>

* Type "?" to enter help pages within REPL
* Type a function from Julia to read help pages (ex: `println`)

<figure><img src="https://content.gitbook.com/content/v4bMBkQ3ZBxkXjskIqBa/blobs/tjg45gmH8MZk2shcHkoN/repl_help.png" alt=""><figcaption></figcaption></figure>

## References

1. Julia Contributors. (n.d.). REPL - Standard Library - Julia Language. Retrieved May 1, 2024, from <https://docs.julialang.org/en/v1/stdlib/REPL/>

## Resources <a href="#documentation" id="documentation"></a>

* Julia Documentation: [The Julia REPL](https://docs.julialang.org/en/v1/stdlib/REPL/)
* [Julia Cheat Sheet](https://juliadocs.github.io/Julia-Cheat-Sheet/) (see REPL)
* [Practice with this web-based Julia REPL](https://julialang.org/learning/tryjulia/)


---

# Agent Instructions: 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:

```
GET https://docs.bcbi.brown.edu/codiac-for-health/computing/julia/repl.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
