Solara#

Ploomber Cloud supports Solara. For information on how to develop Solara apps, please check the documentation.

First, create an account.

To deploy a Solara app you need at least two files zipped up:

  1. Your application file (app.py)

  2. A dependencies file (requirements.txt)

Note that the application will run with Python 3.11. Refer to this section for customized deployments. Here is a sample Docker-based Solara application.

Note

We currently only support Solara deployments via a app.py file, not via .ipynb files

Dependencies#

To deploy a new project, list your dependencies in a (requirements.txt). For example, if you’re using JupySQL, pandas and matplotlib in the solara application, your requirements.txt file will look like this:

# sample requirements.txt
solara
jupysql
pandas
matplotlib

Testing locally#

To test your Solara app, create a virtual environment and install the packages:

pip install -r requirements.txt

Then run the following command to start the application:

solara run app.py

Deploy#

Deploy from the menu

Once you have all your files, create a zip file.

To deploy a Solara app from the deployment menu, follow these instructions:

Try an example

To download and deploy an example Solara application start by installing Ploomber Cloud and setting your API key:

pip install ploomber-cloud
ploomber-cloud key YOUR-KEY

Tip

If you don’t have an API key yet, follow the instructions here.

Now, download an example. It will prompt you for a location to download the app. To download in the current directory, just press enter.

ploomber-cloud examples solara/gpt-4-tokenizer

Note

A full list of Solara example apps is available here.

You should see a confirmation with instructions on deploying your app. Now, navigate to your application:

cd location-you-entered/gpt-4-tokenizer

Deploy from the CLI

Initialize and deploy your app with:

ploomber-cloud init
ploomber-cloud deploy --watch

Tip

To ensure your app doesn’t break on re-deployments, pin your dependencies.

Features#

Ploomber Cloud supports many features to help you build Solara applications quickly!

Examples#

Arxiv chat

Chat with CSV

Describe image

Keyword extraction

OCR