Am I understanding what Anvil can do correctly?

Am I correct in understanding that I can run an Anvil app locally, allow others in the workshop to connect to it, and store the data from different clients in different data frames? I might need to create clones of the app for each client (I’ve just started digging into Anvil) and rename data frames, but is this all possible with Anvil?

That all sounds doable with Anvil :slight_smile:

2 Likes

Awesome! Now I’ve just got to figure out how to display the info from my dataframes… I’ve watched their little “to do list” tutorial like 5 times and it isn’t working, lol. I’m sure I’m missing something basic.

post a clone link and I’ll take a look :slight_smile:

Nothing’s better at making me feel like an idiot than trying something new, lol. Hopefully I cloned this properly!

https://anvil.works/build#clone:YM6LM7GM2YHHKEDA=NBINEXX7GEGS7HKAS6VYUHPV

I’m also trying to make it so that certain cells in the tables are filled based off of mathematical relations between other cells in the same row (rating step size = [best - worst] / 9). I know I can easily do it in pandas, but I wasn’t sure if pandas data frames would play nicely with what they have built in, and I haven’t yet figured out how to insert the formula in the specific cell. I think that I’ll need to spend a lot of time in the documentation, as with any new tool :slight_smile:

Pandas plays very well on the server side. Yes I would recommend reading the documentation on data tables for a while.

I’d recommend this tutorial for data grids:

Here is your clone fixed (how I interpreted it to work).

https://anvil.works/build#clone:PFDKL4LIUHNJAZWY=D44WBPXW2VOB34JWUD73UUHA

What I had to do to fix it

  1. Delete the attribute label in your AttributeDefinitionsRow Form ( it was data binded to nothing)
  2. Add a server method to search read your data table
  3. Set your data grid items in AttributeDefinitions Form
2 Likes

Good to know - thanks for the help! I’ll go live in the docs now :slight_smile:

1 Like

Welcome to the Forum!

For a client-server app, with developer code on both the client and server, this can have several meanings.

The client side always runs in a browser, so it’s “local” to that browser tab. Is that sufficient? Or do you have intentions for where the server-side code should run, too?

sorry, I should have been more specific with my language. I’m a self-taught programmer, so my lingo tends to be looser.

I meant server-side running locally. Picturing something like bring the work laptop to a client workshop, running the server code on the laptop and having workshop participants pull it up on their own computers as clients. Clients will have ability to edit some portions of data frames, but not all.

You’ll probably want to check out Uplink in the documentation. This is the primary way to run your own “server-side” code on your own PCs, without having to download, install, and maintain a local implementation of the full Anvil infrastructure.

3 Likes