Solara

S

Solara

Join the community to ask questions about Solara and get answers from other members.

Join

questions-issues

general

announcements

MarkdownEditor not displaying in vscode notebook

when using solara.MarkdownEditor in a vscode notebook, nothing is displayed (normal markdown is shown though). The same code works fine if i run the notebook as a standalone app in the browser. Any idea what could be going on? Ps: great job on solara! I love it, and it's going to make making dashboard sooo much easier!...
No description

Hide AppBar

Hello, I have multipage solara. However, the AppBar (title and menus) takes a lot of space on small monitor. Is it possible to make AppBar not fixed on the top of the screen? Thank you.

How to show progress of FileDrop?

Apparently solara.FileDrop can show the progress of the file being read. This would be great in my app as reading an excel file with few thousand lines can (in my setup) take minutes and it would be great to show progress to the user. I just can't figure out how it should be done? Documentation says this: @solara.component...

Force solara to use https in redirect uris

Using Chrome's Dev Tools, I observed the following network requests after clicking the login button in my application: Initial Login Request: https://example.com/_solara/auth/login?redirect_uri=https%3A//example.com/return_to_path This request looks correct as it uses https....

Style order

I'm having some difficulty sorting through the order of CSS loading. I'm using the Style "component" to load css files from my assets folder. They load no problem and show up in the expected order in the <head> section. However, they are overridden by vuetify classes, which I presume are somehow loaded after. But I can't see where this is happening. Post-serve JS? Could you please assist. Also, great if you have some advice regarding handling CSS, and maybe SCSS, which I am currently using...

error-empty page after execution

import solara @solara.component def Page(): # Define a reactive variable...
No description

Thread vs Task

Hey 👋 , I would like to implement chat using CrewAI and I am wondering what is the difference between use_thread and use_task. I haven't found a clear comparison in the documentation, so I'm asking if anyone would be able to explain to me the differences or give me some example use cases? For any answer I will be grateful 🫂...

Redirect URI error when testing login in solara app

Hi, I am trying to test an auth example in solara via okta. I have configured my app in okta following the solara docs and I am trying to test (locally) a simple login button. The relevant part of the snippet is ``` import solara from solara_enterprise import auth ...

How to make `slider.value` reactive?

Hi there! I have a notebook that contains two cells. I'd like to ask: How can I listen to changes in slider.value in the second cell? I don't want to modify the first cell. Suggestions are very welcome! Here's the notebook: ```py import ipywidgets as widgets...
No description

Solara Error

Hey 👋 , I have encountered a problem that I have not found in Github issues or on discord. I created a page that has a form with a dozen fields (select, input, slider) and a button at the very bottom of the page. When it is clicked, these fields are validated (that the values are not empty, etc.) and during if an exception is thrown I run solara.Error(label='message') however it is not visible anywhere (I am sure it goes into the except block in try except). I paste the simplified code below. Any help would be appreciated! 🫂 ...

Finding size of image in figure

I have a solara component with a single figure, an image. But the image I have set is autoresizing and I would like to get the size of the image or maybe the container that holds it. Any ideas?

any upcoming plans/existing ways to create guided tour functionality (solara)?

i'm interested in creating a guided tour for my app. are there any sort of upcoming plans to try and implement something like this, or would there be a way i could leverage something like this as a vue component to implement it? not sure exactly how to include/import the vue library within solara's context and get started with it, so any help/guidance would be appreciated...

any way to export solara app as an executable app?

It's not about deploying the app, but some method to make it an executable app. something simpler for the client other than installing python, libraries and source codes

How to access the user's microphone?

To be more specific, I want to use Solara as an interface for my program with Azure Speech ``` import azure.cognitiveservices.speech as speechsdk ...

use_exception

Can anyone provide a simple example of how to use the use_exception hook? The demonstration on the documentation page generates an infinite render loop when the test exception is generated and does not recover....

process results of a field change to another element level

I would like to trigger python code each time one of the input fields in a page is updated, the result of the python code should be shown in a message box at Page() level. https://py.cafe/rob.on.lists/solara-markdown-message-editor I know how to display a reactive variable in a field on Page(), when it is changed/set in another element, but I can't get my mind around triggering python statements. Should I propagate the on_value condition from the propagate() routine up to MarkDownEditor elements in Page()? How do you propagate conditions?...

Wish to have Select components within Row arranged side-by-side.

Hello, Currently I have a side bar to store my controls. In my main window, I have a map. Rather than having the controls in the sidebar, I would like to have the components in my control section side by side across the top. But row stills stacks components on top of each other:...

What are the limitations/restrictions of solara.DataFrame()?

My application has a beefed-up class of DataFrames, with several methods added, and solara.DataFrame dies when I want to display it: TypeError: <class 'main.MyFrame'> not supported import pandas as pd...

Gracefully exiting kernel when users closes UI page

How do you gracefully kill the current kernel when I close the UI web page? Currently, the kernel keeps running and I have to cntl-c to shut it down. From the documentation, it seems that I must shutdown the websocket. Please forgive my ignorance, but how does one go about doing that within solara? Or am I barking up the wrong tree?...