Skip to content

Commit

Permalink
add note about references in Out (#49729)
Browse files Browse the repository at this point in the history
  • Loading branch information
MasonProtter authored May 11, 2023
1 parent e3e5eaa commit e4633e0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions stdlib/REPL/docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,13 @@ Out[3]: Dict{Int64, Any} with 2 entries:
1 => 8
```

!!! note
Since all outputs from previous REPL evaluations are saved in the `Out` variable, one should be careful if they are returning many
large in-memory objects like arrays, since they will be protected from garbage collection so long as a reference to them remains in
`Out`. If you need to remove references to objects in `Out`, you can clear the entire history it stores with `empty!(Out)`, or clear
an individual entry with `Out[n] = nothing`.


## TerminalMenus

TerminalMenus is a submodule of the Julia REPL and enables small, low-profile interactive menus in the terminal.
Expand Down

0 comments on commit e4633e0

Please sign in to comment.