squiggle icon indicating copy to clipboard operation
squiggle copied to clipboard

Show unit types on frontend components

Open michaeldickens opened this issue 7 months ago • 4 comments

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: sq :: closed

With expanded display: sq :: open

With multiple variables: sq multi vars ::

michaeldickens avatar Jul 22 '24 21:07 michaeldickens