Solara

S

Solara

Discord for the Solara python package. NOT for the Roblox executor :)

Join

questions-issues

general

announcements

"Global" variables, scoped to user

It seems that there are two scopes for reactive variables: global, or app-level variables that seem to be shared by all users on a server; and local, component-level variables that are contained within a defined solara component. However, it's not clear how to create variables that are shared across components but are still scoped to an individual user. Currently, we have to maintain an accessible dictionary that contains the session id and individual instances of global variables in order to share across pages/component without affecting other users. Is there a more appropriate way to handle this use case?...

Is it possible to update a df assigned to a reactive object without recreating it ?

i am aiming at something like this : --- df = solara.reactive(pd.DataFrame(...)) @solara.component...

An issue regarding to the order of reload vs refresh

I'm trying to figure out the difference between the hot-reloading and a browser refresh via a very simple scenario. I tried to summarize here: https://github.com/widgetti/solara/discussions/679 I'll be glad if someone shed light on this issue.

Theme

I have a Solara application which when run on my machine looks fine, it runs in light mode and as a green primary colour (for context my Mac is in dark mode, IDK if this useful info). it is also worth noting that i do not do anything with the theme anywhere in my Solara application except from the theme.js file below. However, when I run the same Solara application on a different machine the website is in dark mode, dispite to my knolage not being put in dark mode.
Is there a way I can force the theme to be light for my Solara application? theme.js:...

solara

How do i download solara on pc?

Solara DataFrame column padding

Hi all, I am using the Solara DataFrame to show data in a table in my Solara application. However, the columns are so narrow it makes it very difficult to read (see picture below from the example on the solara website). Is there any way of adding more padding to the collumns to make them easier to read? This is the code I have at the moment:...
No description

Any API or methods for drag and drop

Hello there! I wanted to ask how could I implement a drag and drop interface, say for example from a todo task container and put it to a task done...

loading static JS file

Hi Team I'm doing a POC to integrate dhtmlx gantt chart inside Solara. my project directory structure - project-root/...

Responsive layout

Hi! I am exploring Solara and this example https://solara.dev/documentation/examples/ai/chatbot and others don't really response to mobile layout. Is it a general issue, or just unique case?

404 Solara Router

Hi, when you try and go to a Solara page which doesn’t exist you will see a very simple page which has the text "Page not found by Solara router". Is there a way of either replacing this with a different page, eg my own 404 page not found, or redirecting the user from the default Solara "Page not found by Solara router" page to one I define, eg my own 404 page not found?

Help Regarding Multi-page

I currently have 2 separate script in the same folder. When I run the script, I want to be able to change page from one script to the other. I saw the multi-page support on the website but I don't want the button to be a tab. Instead, i created a button inside a sidebar and i want that button to be the button to press to change page. My question is how to make the button change page to the other script when it is pressed?

Avatar edge contains color

I've create avatar with square image as child, but there is still some background color on left and top
No description

Is there any way to catch exceptions raised during rendering?

When an exception is raised during rendering, Solara displays its traceback as a plain text instead of a page layout. Is it possible to catch such exception and show its traceback in a component on a page? Something like React error boundary would be really helpful here.

Troubleshooting ipydatagrid

Hi team! Does anyone can help in understanding how to troubleshoot ipydatagrid? I'm working in docker containers on a laptop with a 'prod' environment on a singleboard computer. No problem when running on a laptop, but on a singleboard I get javascript errors when adding a minimal ipydatagrid.
my code: dg = DataGrid.element( dataframe=pd.DataFrame(),...

chatbox child doesn't refresh

I use the same component , but in chatbox the component didn't countdown, how can I plus a countdown buttons for each individual message in chatbox?

Run JS script

In my application I use solara as an iframe and sometimes I need to send information to the front. I need send info after clicking the buttons. I have several buttons after some of them work, it is necessary for an alert message or a base64 image to be sent to the front. My sending function looks like this: ```python def sendMessageToFront(msg):...

Any API or method to know when the app is fetching data?

Hey everyone, I was wondering if there is a way to determine when the app is loading or retrieving data? Specifically, when the NProgress is showing on the top of page? I would like to implement skeletons that show up when some of the dropdowns we have on the page change Thanks in advance...

Alignment

i have this code for the app bar of my Solara app: ```import solara.lab ...
No description

Theme support for extended colours and named colour in theme reference

Instead of copying-and-pasting the entire question, here's the reference to the discussion I started on GitHub. https://github.com/widgetti/solara/discussions/646...