Providing a custom Layout
I tried this example to start working on custom layouts, but I am unsure if that's working for me (e.g., the print statement doesn't get executed). Do you have to do anything special to "register" this
Layout
, or is adding this to my __init__.py
, like what I am doing now, sufficient?error running solara
I just started using solara and am trying to run a pretty simple application. I am getting the following error when I use solara run my_file.py : "A widget with mount-id="solara-main" should go here", which is displayed in my browser. Does anyone know what could be causing this ? Thank You !
Styling guide
Hello, newly introduced to Solara. I went through the tutorials and the gallery. Can some point me to any guides on customizing the look of Solara components? Thanks!
how to use on_kernel_start
I want to initial some data, when I run in notebook thsee code works, but when deploy in py these doesn't work!
if Record_initialing.value:
# print('检测执行情况')
...
Solara code generation by LLM
Hi. It seems that GPT-4o and Claude Opus don't have any/much info about Solara code. Am I right?
Do you happen to have any fine tuned model to generate your code? GPT-4 and Claude speed up my production with Streamlit a lot. And I have a Streamlit project almost finished, but would like to have fast converter/generator to Solara rather than rewriting it all.
Any suggestions, please?...
How can I Identify whether cellphone or PC is visiting my page
I've tried tos show headers. but is it hard to determine... can I just check the max width or some other direct methods
"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:...
Is there a way I can force the theme to be light for my Solara application? theme.js:...
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:...
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
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.