modular
modular copied to clipboard
[Feature Request] Implicit Printing and Last Outputs in JupyterEnv
Request
Need Implicit Printing and accessing the last outputs using "_" and "__" in Playground
Motivation
For testing the language features using implicit printing and accessing last outputs in notebook environment helps a lot.
Description and Requirements
let x: Int = 2
x
outputs: 2
x * x
outputs: 4
_, __
outputs: (4, 2)
Maybe also _1, _2 and etc. Here are some examples: https://stackoverflow.com/questions/200020/get-last-result-in-interactive-python-shell
Support for jupyter's tab completion and shift+tab for documentation would also be very appreciated!