Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
You could also look into Pluto notebooks or IJulia.
You could also look into Pluto notebooks or IJulia.
This is probably doable with the OhMyREPL package, which allows you to run arbitrary commands and use the result as your input or output prompt. You should be able to use a variable to keep track of the line numbers and output them with the prompt.
On the console, I don't know of a way to access past outputs (except the immediate previous one using ans). The inputs are stored in an repl_history.jl file (REPL.find_hist_file() will print the full path), but with no line numbers and no indication of which ones are from the current session, so not very easy to use for this purpose. REPLHistory.jl adds a little bit of convenience in accessing it, but honestly not by much.