Pip install Anvil packages for VSC?

What I’m trying to do:
Clone an app repo into Visual Studio Code (done) and then use it to develop my app.
VSC offers a bunch of static typing, intellicode features, testing, etc… that I want to enforce when developing.

What I’ve tried and what’s not working:
Looking for pip install commands to download and get all the packages that aren’t installed. The only stuff I was able to find in the forums have to do with uplink stuff.

Update: I’ve ran the pip command “pip install anvil-app-server” which resolves most of the errors for the imports, but I’m still looking to get some more resolved, such as the import error for:

from ._anvil_designer import CalendarTemplate

You probably want the anvil-uplink library. See this previous discussion:

From what I understand, uplink gives you the ability to call server or client code from an external location from the Anvil servers. So I can make these calls, but there’s no auto complete helping to guide me through the types, or available calls.

As I understand it, this does not give me the definitions for things like app_tables. Where if I’m on the online Anvil ide I can type “app_tables.” and autocomplete will show me all the app tables using autocomplete.

You won’t get app tables completion, but you will get completion of various anvil modules and types.

1 Like

Thanks for that.

Is there a way to get packages from the UI and app tables to show up for autocomplete? If not, I guess I should do a feature request, or just tag on more stuff with the existing one.

1 Like