squiggle
squiggle copied to clipboard
Show unit types on frontend components
Note: The base should be type-checking
but that branch only exists on my fork, not on quantified-uncertainty/squiggle
. The actual diff for this PR is: https://github.com/quantified-uncertainty/squiggle/pull/3331/files/88342c0d4186264e5c7eddad5594b12c5cdbfadc..f8a27ba36221ca116d5a3ca85604e5a6bd6a725f
This PR sets explicit and inferred unit types onto variables as decorators and displays unit types on the SquigglePlayground
component.
The UI currently looks like this:
With expanded display:
With multiple variables: