The European Space Agency
Home
APEx Application Propagation Environments
Main navigation
  • Algorithm Support
  • Project Environments
    QGIS
    CodeServer
    JupyterLab
    Web Portal
    Geospatial Explorer
    Documentation Hub
    User Forum
    Product Catalogue
  • Resources
    • Algorithm Services Catalogue
    • Data Catalogue
    • Geospatial Explorer
  • Community
    • Documentation
    • User Forum
    • FAQ
  • About APEx
    • Mission Statement
    • News
Contact us
Main navigation
  • Algorithm Support
  • Project Environments
  • Resources
  • Community
  • About APEx
APEx - Documentation Portal
  1. Project Environments
  2. Code Server Interactive Development Environment - Tailored User Workspace
  • Welcome
  • On-demand EO services
    • Using openEO service
    • Supported Platforms
  • Project Environments
    • Use Cases
    • Customisation
    • Accessing your environment
    • Geospatial Explorer
    • Project Portal
    • Code Server Interactive Development Environment - Tailored User Workspace
    • JupyterLab Interactive Development Environment - Tailored User Workspace
    • QGIS - Tailored User Workspace
    • Product Catalogue
    • Documentation Portal
    • User Forum
  • Algorithm Support
    • On-Demand EO Services
    • Use Cases
    • Algorithm Porting
    • Algorithm Onboarding
    • Algorithm Upscaling
    • Algorithm Enhancement
    • Toolbox Cloudification
    • Algorithm Intercomparison
  • Guides
    • Creating an APEx account
    • Creating APEx single sign-on token
    • Creating openEO based services
    • Creating EOAP based services
    • Upscaling openEO based services
    • Ingesting STAC metadata in APEx Product Catalogue
    • Linking APEx STAC catalogue with an openEO service
    • File format recommendations
    • Project Portal - User Documentation
      • Login to the Project Portal and the Drupal content overview
      • Manage web pages or add a new page
      • Edit web pages via paragraphs
      • Add content and/or visuals
      • Add a Call-To-Action (CTA)
      • Add news items and an overview of the latest or all news
      • Add an event and an overview of the latest or all events
      • Add a web form
      • Add a logo (partners) banner
      • Add publications or downloads (files)
      • Edit the menu navigation
      • Edit the footer
      • Customizing the look and feel
  • Interoperability and Compliance Guidelines
    • Definitions & Actors
    • Algorithm Service Development Options
    • Algorithm Developer and Provider Guidelines
    • Data Provider Guidelines
    • Algorithm Hosting Platforms Guidelines
    • Geospatial Explorer
    • Federated Business Model
  1. Project Environments
  2. Code Server Interactive Development Environment - Tailored User Workspace

Code Server Interactive Development Environment - Tailored User Workspace

Code Server overview

The Code Server Interactive Development Environment (IDE) capacity within the APEx Project Environments primarily leverages the power of the Code Server software (Visual Studio Code in the Cloud).

Current APEx Code Server IDE

This tailored user workspace allows the APEx users to maintain a familiar environment and rich feature set, while benefiting from the power and resources of server-side computing. This is particularly advantageous for those working on resource-intensive tasks or needing access to a consistent development environment from various locations and devices.

The server-based nature ensures that developers are not constrained by their local machine’s hardware capabilities, allowing them to harness the computational power of remote servers.

Tailored specifically for EO tasks, this environment furnishes developers with an array of tools and libraries fine-tuned for programming languages and productivity plugins or extensions.

Code Server software architecture

The APEx Code Server solution is an Integrated Development Environment delivered as a cloud-based user workspace, tailored to support the activities of Earth observation (EO) projects.

The Code Server IDE within the APEx Instantiation Services is built on a “User Workspace” system architecture, leveraging Kubernetes and JupyterHub for orchestration and management, and accessing a file system secured and private to the authenticated user.

The Code Server IDE in the current APEx workspaces offering

Each Code Server user workspace comes equipped with the Visual Studio Code Server, an extension of Microsoft’s popular VS Code editor, as well as with a private data products catalogue. These features empower developer users to edit and build EO data processing algorithms and workflows, accelerating project outcomes within a dedicated, tool-rich environment.

The Code Server setup encapsulates all the capabilities of Microsoft’s popular VS Code editor and extends them to be run and accessed on a remote server. Beyond the core functionality of its desktop counterpart, the Code Server IDE offers additional features tailored for remote development, such as integrated Git support, debugging tools, and a plethora of extensions (for Code Server, from the VS Code Marketplace and for JupyterLab, from the PyPI.org registry). It provides support for programming languages like Python, R, and Java. Key libraries such as SNAP and GDAL are integrated, providing robust capabilities for EO data discovery, access, processing, and analytical needs.

It seamlessly adapts to containerised environments, enabling developers to create, test, and deploy applications within isolated, replicable, and consistent environments, ensuring consistent behaviour across development, staging, and production phases.

Code Server forms the core development environment, delivering a comprehensive code editing and debugging interface. This server-based IDE allows developers to maintain the familiar environment and feature set of VS Code while benefiting from the power and resources of server-side computing. The server-based nature ensures that developers are not constrained by their local machine’s hardware capabilities, enabling them to leverage the computational power of remote servers.

Code Server serves as the core development environment, providing a powerful and flexible platform for coding and debugging, allowing developers to harness server-side computational power while maintaining a familiar interface.

Code Server key features

The APEx Code Server IDE includes several features that make it suitable for both individual researchers and teams working on EO research and applications.

  • Customisable workspace
    Configure your workspace with tools and settings tailored to your specific needs, including debugging tools and machine learning, as well as a plethora of extensions for Code Server from the VS Code Marketplace.

  • EO-focused tools
    Access integrated libraries like SNAP and GDAL, which are specifically designed for Earth observation tasks.

  • Support for every major programming language
    Native support for a wide range of programming languages, including JavaScript, TypeScript, CSS, HTML, C++, C#, and Python, complemented by a vast repository of extensions for virtually any language or file format (Java, Go, PHP, Ruby, …)

  • Remote development and collaborative work
    Leverage integrated Git support, allowing team members to work on the same project by tracking changes and merging updates, helping to keep the code organised while avoiding conflicting code changes.

Code Server showcase scenarios

The APEx Code Server IDE supports a variety of use cases, making it an essential tool for developers, researchers, and data scientists within the EO community. Some typical scenarios include:

  • Algorithm Development and Testing
    Researchers and developers can write, test, and debug new algorithms for processing satellite imagery or other EO data. For instance, a user might develop a script to detect deforestation using multi-temporal satellite images. To support the productivity of developers, the Code Server solution uses a mechanism of extensions. Code Server extensions are available from the Open VSX Registry.
Note

There is no GitHub Copilot extension available yet for Code Server. Nevertheless, there is an equivalent functionality provided by the Code Server extension “Continue - Codestral, Claude, and more”, an open-source AI code assistant: https://open-vsx.org/extension/Continue/continue

It allows to connect any models and any context to build custom autocomplete and chat experiences inside Code Server:

  • Chat makes it easy to ask for help from an LLM without needing to leave the Code Server user interface
  • Autocomplete provides inline code suggestions as you type
  • Edit is a convenient way to modify code without leaving your current file
  • Actions are shortcuts for common use cases.

This extension asks for API keys to use the models. This has been successfully tested and could be an option for the APEx use cases.

  • Collaborative Projects
    Teams can work collaboratively on projects, sharing code and resources in real-time. A group of data scientists might collaboratively develop a machine-learning model to predict crop yields based on various data inputs.

  • Data Processing Pipelines
    Users can develop and test data processing pipelines that automate the ingestion, processing, and analysis of large EO datasets. An example use case could be to create a workflow setting up a pipeline to preprocess satellite images and extract relevant features for further analysis.

Note on the support for EO Application Package (EOAP) development

The APEx Code Server IDE provides the tooling for application developers to implement the Best Practice for Earth Observation Application Package [1] as defined by the Open Geospatial Consortium (OGC 20-089) and the EO Exploitation Platform Common Architecture (EOEPCA) spearheaded by the European Space Agency (ESA). This best practice supports developers in adapting and packaging their existing algorithms to be reproducible, deployed, and executable on different platforms.

An EO Application within the Code Server IDE is treated as a command-line interface (CLI) tool that runs as a non-interactive executable program. It receives input arguments, performs a computation, and terminates after producing some output. These applications, written in various programming languages such as Python, Java, C++, C#, and shell scripts, use specific software libraries like SNAP, GDAL, and Orfeo Toolbox. Developers build container images that encapsulate their applications and command-line tools, along with necessary runtime environments, and publish these images on container registries for easy access and deployment.

The Code Server IDE supports the use of the Common Workflow Language (CWL), allowing developers to delineate and disseminate application workflows in a recognised format. CWL documents comprehensively describe the data processing application, including parameters, software items, executables, dependencies, and metadata. This standardisation enhances collaboration, clarity, and operational consistency, ensuring that applications are reproducible and portable across various execution scenarios, including local computers, cloud resources, high-performance computing (HPC) environments, Kubernetes clusters, and services deployed through an OGC API - Processes interface.

Version control and continuous integration are integral components of the Code Server IDE technical architecture. This enables access to VCS (e.g. GitLab, GitHub) for efficient code repository management, version control, collaboration, and monitoring of code changes. Automated continuous integration (CI) tools manage the build, test, and deployment tasks in response to code modifications, ensuring that applications are always in a deployable state. This automation minimises manual testing overhead and accelerates the rollout of new features or updates.

Examples

Table 1 showcases example projects that utilize the APEx Code Server IDE.

It is important to note that a valid APEx account and permissions from the project are required to access an environment.

Table 1: APEx Code Server IDE - Project Examples
Project URL
APEx (Demo) https://apphub.demo.apex.esa.int/
SEF - Food Systems https://apphub.sef-food.apex.esa.int/
SEF - Ecosystems & Biodiversity https://apphub.sef-ecosystems.apex.esa.int/
Stay Tuned

Additional information will be shared on this page as the project progresses.

References

1.
OGC Best Practice for Earth Observation Application Package
Project Portal
JupyterLab Interactive Development Environment - Tailored User Workspace