Jovan
Jovan
SSolara
Created by Jovan on 1/26/2025 in #questions-issues
Solara server disconnect - settings
Hi there, It is well known that the solara docs page is itself written in solara (nice demo!) However, of the browser tab is left alone for too long, the server disconnects and you get a message asking you to reconnect. This is a nice feature actually! I am wondering : - is there a config or a way one can configure when this happens (after how much time) - if we can access and modify the components that give you the message (to adjust the wording, style etc..) Many thanks!
1 replies
SSolara
Created by Jovan on 1/20/2025 in #questions-issues
Logging in docker
Hi, I have big troubles getting solara logging to work within docker. I guess solara run does some redirect away from pid1? I do specify --log-level in my entrypoint but still nothing.. I do not do anything special with respect to logging, just want to see the solara (+ my own logs) from the app on the docker dashboard etc.. Is there some hidden config i need to adjust somewhere, or is this supported at all.. Would be very much appreciated!
4 replies
SSolara
Created by Jovan on 12/29/2024 in #questions-issues
Vue plugins & packages with solara
I have a question, and I wonder if this is possible with the current setup. I have a conda environment in which I develop a solara app. In the said conda environment I can do
conda install nodejs
conda install nodejs
Then i can also do
# npm instal <some-package>
npm install vue-flagpack # for example
# npm instal <some-package>
npm install vue-flagpack # for example
Can I then use this package when making a vue template for solara? Is there a guideline of how to import it and use it (not talking about this specific package, but in general). Many thanks!
4 replies
SSolara
Created by Jovan on 12/11/2024 in #questions-issues
Updating & re-rendering custom `component_vue`
Hi there! I have a question regarding the updating/rendering of a custom component_vue component. Say I have a fairly complex component_vue . It has many elements, and lots of props. Is there some condition after which one can say "you are using way too many props for solara + vue to handle the re-rendering smoothly". Or is there some condition, like are the props updated (on the frontend side) simultaneously or one by one.. As an example I have made the following pycafe example (attached, i hope) (it does not render for me in pycafe, but it works just fine locally) When I click the button, the component re-renders, but the progress bar updates are not smooth, but they "jump" as if the component is re-rendered completely anew, without remembering its previous state. After some trial and error I found that to mitigate this I can declare the progress value and the buffer value as separate standalone reactive variables (global), update them independently , and pass them as values (meaning e.g. progress_value_reactive.value) to the custom vue component directly. After that I need to introduce some small time delay (time.sleep(0.5)) for the progress bar to be updated properly, and only then I can update the rest of the values in the component via my other global state (app_state) that I have defined. So something tells me that: - either I am doing something at the limit of solara/vue can handle - i am not using something correctly, and there are some kind of "race" conditions, as in one update over-rulling another and things are not displayed smoothly. Can you think of anything that might be causing this and how to improve it if possible? Please and thank you! Jovan.
3 replies