When you run the open source anvil server locally, does your server persist or not persist by default?
In the versions I’ve used, it does not persist by default. To reuse the same interpreter for multiple server function calls, set ‘server_persist’ to True in the runtime_options dictionary of anvil.yaml.
# The Anvil app structure explained
[Anvil](https://anvil.works) is a platform for building full-stack web apps with nothing but Python. The Anvil Runtime is the open-source engine that powers those apps.
The [Anvil App Server](../README.md) serves Anvil apps, which follow a certain directory structure. You can create an Anvil app from scratch using your Text Editor, using the [create-anvil-app](creating-and-editing-apps.md) command, or by [cloning an app with Git](https://anvil.works/docs/version-control-new-ide/git) from the [online IDE](https://anvil.works/build) (the [Anvil Editor](https://anvil.works/docs/editor)).
## Anvil app structure
Each app is represented by a directory named using the app name.
The top-level directory is a Python package, with an `__init__.py` file.
The basic structure of an app named `MyApp` with one client-side [Form](https://anvil.works/docs/client/components/forms), one client-side [Module](https://anvil.works/docs/client/python/modules), and one [Server Module](https://anvil.works/docs/server) is as follows:
```
MyApp
├── __init__.py
├── client_code
│ ├── Form1 # package Form
│ │ ├───__init__.py
This file has been truncated. show original
2 Likes