Solara Server

1.57.3 · active · verified Thu Apr 16

Solara server is a Python package that enables running ipywidgets-based web applications without the need for a full Jupyter kernel. It supports multiple 'Virtual Kernels' to share the same process, enhancing performance and scalability. This makes it ideal for deploying Solara applications as standalone web apps, often integrating with frameworks like Starlette, FastAPI, or Flask. The current version is 1.57.3, and it receives regular updates, often in conjunction with the main `solara` library.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates a simple Solara application with a reactive counter. Save the code as `sol.py` and run it using the `solara run` command, which starts the Solara Server.

import solara

clicks = solara.reactive(0)

@solara.component
def Page():
    def increase_clicks():
        clicks.value += 1
    solara.Button(label=f"Clicked {clicks} times", on_click=increase_clicks)

# To run this application, save it as `sol.py` and execute `solara run sol.py` in your terminal.

view raw JSON →