For the complete documentation index, see llms.txt. This page is also available as Markdown.

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]

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

Julia REPL Example (local)

  • Type julia in terminal to launch REPL

Terminal screen with Julia launched and example commands and output. println("hello world!") results in hello world!;  word = "test" results in "test"; typeof(word) results in String; length(word) results in 4; print(word) results in test; exit()

Julia REPL Help Pages (local)

  • Type "?" to enter help pages within REPL

  • Type a function from Julia to read help pages (ex: println)

Terminal screen with Julia help launched. Type "?" for help. From the help?> prompt,  println results in help page for println.

References

  1. Julia Contributors. (n.d.). REPL - Standard Library - Julia Language. Retrieved May 1, 2024.

Resources

Last updated