> For the complete documentation index, see [llms.txt](https://xplain-data.gitbook.io/community-edition/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xplain-data.gitbook.io/community-edition/python-services-overview/architecture-overview.md).

# Architecture overview

There are 3 different scenarios to to run python programs to access Xplain Object Analytics.

<img src="https://3086913752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaXIWTLSpZzoC0lnDKEaY%2Fuploads%2F5jPDsyUMO1xNqPF8s1ng%2Ffile.excalidraw.svg?alt=media&amp;token=b6744313-3dc0-4726-a44b-e397e622a2bc" alt="Xplain Python Services Architecture Overview" class="gitbook-drawing">

## Scenario 1: python in browser

This is the easiest way to try out the Xplain python interface .  Without installing a python environment and packages on the local system, the user can use the integrated python editor and JupyterLite notebook to run python code directly in the browser. With the embedded [**pyodide web assembly** ](https://pyodide.org/en/stable/)sandbox, the necessary python intepreter and packages will be installed on demand.&#x20;

<img src="https://3086913752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaXIWTLSpZzoC0lnDKEaY%2Fuploads%2F0uG5Z6pEJUr3ZCphMj4s%2Ffile.excalidraw.svg?alt=media&amp;token=615fb88c-e5df-40fe-a744-2814f35c11bf" alt="Xplain Python Services Architecture: Scenario 1: python in browser" class="gitbook-drawing">

## Scenario 2: python in serverside

Without installing the python environment, user can also run python code on the server side python environment.&#x20;

Setup details see&#x20;

{% content-ref url="/pages/BMuxLv4CMIrsNaA4TZJ8" %}
[Server-side Python mode](/community-edition/python-services-overview/python-ide/advanced-topic/server-side-python-mode.md)
{% endcontent-ref %}

<img src="https://3086913752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaXIWTLSpZzoC0lnDKEaY%2Fuploads%2FUW5fuiGIhADwOzN7gEuE%2Ffile.excalidraw.svg?alt=media&amp;token=031949c8-f9fc-471f-9b16-34da8dca8ce4" alt="Xplain Python Service Architecture: Scenario 2: python in serverside" class="gitbook-drawing">

## Scenario 3: python in local environment

If a python environment for python 3.8+ and the required packages like [xplain](https://pypi.org/project/xplain/) is installed on the local computer,  the user can write python code to access Xplain Object Analytics Backend to perform analytics and build data applications.

<img src="https://3086913752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaXIWTLSpZzoC0lnDKEaY%2Fuploads%2Fxh98Zp1zxq9W7STnl1O3%2Ffile.excalidraw.svg?alt=media&amp;token=967bc0a4-cba4-433e-86e4-8ca6fe242d25" alt="Xplain Python Service Architecture: Scenario 3: python in local environment" class="gitbook-drawing">

## &#x20;
