This might be useful for Anvil newbies on the Free plan looking to upload data to their app. You still basically have to follow the steps here, but this Colab notebook puts a sample uplink script together for you:
To run the example,
- Clone this Anvil app: Anvil | Login
- Go to Data Tables (Settings in the Beta editor) and check “Auto-create missing columns when adding rows” in the upper right.
- Get the Uplink key for your app (making sure it has Server Code permissions) and paste it into the Colab notebook in place of
YOUR-UPLINK-KEY
. - Click the “Play” icons in the Colab notebook to install anvil-uplink and start running the cell that makes the pandas code available to your app.
- Run the Anvil app and click the appropriate file uploader to upload your CSV or Excel data.
p.s. If others have easier ways to do (or demonstrate) this, please share. I was surprised, scanning this article, at how difficult it seemed to simply upload a CSV file to an Anvil Data Table. So I was inspired to see if I could simplify it.