quadratichq / quadratic

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

Requirements.txt or similar for global imports on file (+ reusable code) #1800

Open ghislainp opened 2 weeks ago

ghislainp commented 2 weeks ago

Writing imports for every cell is cumbersome. Is there a mean to apply the same imports to all cells ? and by extension default code ?

luke-quadratic commented 2 weeks ago

We've been tracking this in #1115 but haven't started building this feature yet. Believe we'll start on this in a few months, is highly requested.

For global imports on the file we were thinking just structure it as a requirements.txt so it's familiar to Python people (not sure how or if we'll explore this in JavaScript yet)