quadratichq / quadratic

Quadratic | Spreadsheet with Python, SQL, and AI
https://QuadraticHQ.com
Other
2.99k stars 151 forks source link

Python improvements - functions, classes, etc. #1447

Closed luke-quadratic closed 2 months ago

luke-quadratic commented 3 months ago

Spend time making this experience better - at the moment Python in Quadratic is really meant to ignore functions, classes, etc.

This work is somewhat related to #1115 but not really, just making this stuff work inside a cell's code is the scope of the issue.

It's also acceptable if the conclusion for this issue is that for non-cloud runners this is just how Python works and that for cloud runners this is solved.

Rationale: it's not uncommon to get help requests related to people who were trying to use functions and ran into all sorts of weird issues. Minimally the app needs some indication when certain language features are not recommended/don't work well.

Related issue(s): #1114

luke-quadratic commented 2 months ago

Largely resolved by #1450

Please reopen if there are elements of this experience that are poor - #1115 exists for reusable code, otherwise functions etc work much nicer now