Skip to content

Commit

Permalink
improve docs for IPython mode (#48314)
Browse files Browse the repository at this point in the history
(cherry picked from commit a6694d4)
  • Loading branch information
KristofferC authored and KristofferC committed Jan 23, 2023
1 parent f8b78eb commit 957c93f
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion stdlib/REPL/docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,20 @@ atreplinit() do repl
end
```

to your `startup.jl` file.
to your `startup.jl` file. In `IPython` mode the variable `Out[n]` (where `n` is an integer) can be used to refer to earlier results:

```julia-repl
In [1]: 5 + 3
Out[1]: 8
In [2]: Out[1] + 5
Out[2]: 13
In [3]: Out
Out[3]: Dict{Int64, Any} with 2 entries:
2 => 13
1 => 8
```

## TerminalMenus

Expand Down

0 comments on commit 957c93f

Please sign in to comment.