Library / SDK
widgetti/solara avatar
widgetti/solara

Solara runs Reacton components on ipywidgets, so one script serves a notebook cell or a Starlette server

A Pure Python, React-style Framework for Scaling Your Jupyter and Web Apps

2,180 stars213 forksPythonMIT

At a glance

What is it?
Solara is a Python UI framework that uses a React-style component model on top of ipywidgets. This article covers reactive variables, the two ways an app runs, what the dependency list says about the stack, and the packaging oddities in pyproject.toml.
Who is it for?
Use Solara if your team writes Python, already works in Jupyter, and wants components and reactive state that grow past a single-file dashboard. Look elsewhere if you need a framework with no ipywidgets layer, since every page here is a widget tree.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 1 day ago.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • widgetti/solara2,180 ★ · +0
Star history
Repository2026-10-082026-11-24
widgetti/solara2.2k2.2k

0 Stars in the last 47 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Reacton supplies the React model, and ipywidgets supplies the browser side

Solara describes itself as a pure Python, React-style framework for scaling Jupyter and web apps. The mechanism is a layering. Reacton, a pure Python implementation of React, produces component trees. Those trees are rendered as ipywidgets. The result is an application that works inside a Jupyter Notebook and as a standalone web app served by a framework such as FastAPI.

The project's argument for the design is scale. Its README says that most Python web frameworks suit small data apps or use paradigms unproven for larger scale, and that code organization, reusability and state suffer as an app grows, ending in spaghetti code or a rewrite in a React application. A React-like API is offered as the answer, on the grounds that React already supports the world's largest web apps. That is the project's claim about React, and the README offers no measurement of Solara itself.

Because the base is ipywidgets, Solara inherits the existing widget ecosystem. The README names JupyterLab, Jupyter Notebook, Voila, Google Colab, DataBricks and JetBrains Datalore as hosts. It also promises hot code reloading and type hints for development.

Reactive variables live at module level, and components re-run when they change

The first script in the README shows the state model. Reactive variables are declared at the top of the file with solara.reactive, for example sentence = solara.reactive("Solara makes our team more productive.") and word_limit = solara.reactive(10). A comment states the rule: components using these variables are re-executed when their values change.

A component is a function decorated with @solara.component, named Page in the example. Derived values should be computed inside the component, and the code comment says why: calculating word_count within the component ensures re-execution when reactive variables change. A calculation done at module level would run once and go stale.

The example uses solara.SliderInt with min=2 and max=20, and solara.InputText with continuous_update=True, both bound to the reactive variables by passing them as value. Passing the reactive object itself is what wires the widget to the state, and this is the pattern the README uses for simple state management.

Save the file as sol.py, which the README suggests as a name, or paste the code into a notebook cell. In a notebook, the Page() expression at the end of the cell renders the component automatically.

solara run starts a server on port 8765, and the same code works in a notebook

Installation is one command:

code
pip install solara

Running the script from the same directory uses the CLI:

bash
$ solara run sol.py
Solara server is starting at http://localhost:8765

Solara server is built on Starlette and FastAPI and runs standalone. The README calls it ideal for production use, which is the author's description and not a benchmark. A second page, SERVER.md, sits in the repository root and covers the server in more detail.

The same component code can run in Jupyter instead. That is the point of the ipywidgets base: one Page definition serves a notebook author exploring data and a deployed web page. The difference is who renders it. In a notebook the Jupyter frontend does, while the Solara server hosts the page for browsers.

The demo in the README is a scatter plot app for exploring a dataset, either built in or uploaded. The plot can be used to filter the data, and the filtered dataset can be downloaded. Its source is solara/website/pages/apps/scatter.py in the repository. The solara.dev website is itself built with Solara.

The package on PyPI is solara-ui, and the dependency list is short

pyproject.toml names the distribution solara-ui, while the README tells you to pip install solara. Check which name resolves for you before pinning in a requirements file. The build backend is hatchling pinned to 1.26.3, the license is MIT, and requires-python is 3.8 or newer. The package version is read from solara/__init__.py.

The runtime dependencies are reacton 1.9 or newer, ipywidgets 7.7 or newer, ipyvuetify 1.6.10 or newer, ipyvue 1.9.0 or newer, requests, humanize and executing. ipyvuetify and ipyvue are the widget libraries Solara builds its components on.

Optional extras keep the base light. markdown pulls in markdown, pymdown-extensions and pygments. cache adds cachetools. extra and all combine the groups, and the file comments on a redis state backend for opt-in reactive state persistence that is imported lazily, only when its setting is configured. The listing is cut off at that point, so read the full file for the remaining extras.

The wheel also ships a prefix/etc/jupyter folder as shared data, which is how Jupyter extension configuration reaches an installed environment.

The repository is a monorepo, and the server and enterprise features are separate packages

requirements.txt installs four things from the checkout: the main package with all extras, ./packages/solara-server, ./packages/solara-enterprise and ./packages/solara-meta, each with its [all] extra. The wheel configuration excludes the packages directory from the main wheel, so those components are released as their own distributions and the solara-ui wheel contains only the solara directory, the prefix folder and a Voila license file for the widget manager.

A packages/solara-widget-manager directory exists in the repository, and its license file, LICENSE.voila.txt, is the one carried into the wheel. The README does not explain how it is used.

The top level also holds CHANGELOG.md, CONTRIBUTING.md, SECURITY.md, SERVER.md, AGENTS.md and CLAUDE.md, with docs/ and an examples/ directory. One example is examples/state-persistence-failover, and pyproject.toml mentions a redis state backend for opt-in persistence. A Procfile sits at the top level and the README does not mention it.

There are no GitHub releases on the repository, so versions are tracked through .bumpversion.cfg and the changelog, not release pages.

Everything is a widget, so ipywidgets limits and Jupyter hosts shape what works

Solara's strength and its main constraint come from the same choice. Because pages are ipywidget trees, any widget library works, and every Jupyter host in the README's list can run the app. The constraint is that you are working inside the ipywidgets communication model, with state kept on the Python side and widgets synchronized to the browser. The README does not spell out what that means for a large number of simultaneous users, memory per session, or latency, and it gives no figures.

The pitch of scaling is about code structure, meaning components, reuse and state. It is not a statement about concurrent users. If your concern is how many people can use an app at once, look at SERVER.md and the state persistence example before assuming either way.

A second boundary is language. The framework is pure Python, so a front end with custom JavaScript interactions has to go through widgets. The project ships its own widget manager package for the notebook side, which tells you the browser layer is not something you can ignore when debugging.

The repository was last pushed to on 25 October 2026 and is not archived.

Editorial conclusion

Use Solara if your team writes Python, already works in Jupyter, and wants components and reactive state that grow past a single-file dashboard. Look elsewhere if you need a framework with no ipywidgets layer, since every page here is a widget tree. Before committing, run the sample under both solara run and a notebook, and check the name you install, because the PyPI project in pyproject.toml is solara-ui while the README says pip install solara.

Frequently asked questions

How do I install Solara?

Run pip install solara, as the README says. The pyproject.toml names the distribution solara-ui, and requires Python 3.8 or newer.

How do I run a Solara app?

Save the code in a file such as sol.py and run solara run sol.py in the same directory. The server starts at http://localhost:8765. The same code also renders in a Jupyter notebook cell.

Does Solara work in Jupyter notebooks?

Yes. Solara builds on ipywidgets, so apps run in JupyterLab, Jupyter Notebook, Voila, Google Colab, DataBricks and JetBrains Datalore as well as on the standalone Solara server.

Official sources

  1. Issues
  2. License: MIT
  3. Project website
  4. README
  5. widgetti/solara on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/widgetti-solara.svg)](https://hysenlabs.com/projects/widgetti-solara)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/widgetti-solara.svg)](https://hysenlabs.com/projects/widgetti-solara)

Was this useful?