Solara

S

Solara

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

Join Server
MManoj11/23/2023

when embedded with FastAPI is there a

when embedded with FastAPI is there a different port that Solara loads or it's the same port as uvicorn?
EMElder Millenial10/25/2023

Llama2 Chatbot

I'll create a thread here with the source so it doesn't clutter the chat
Rromero6110/21/2023

Use_thread

Hello, I've been using a separate thread to run a long computation process in my application using solara.use_thread. The idea is to keep the UI responsive and prevent server disconnects. I've attached a simplified flow diagram of my setup. However, I'm experiencing inconsistent behavior. Sometimes the process runs perfectly for a long time, but at other times, it crashes almost immediately or after a short while....
Hhuseyin.kaya10/18/2023

For logged on users I want to give users

For logged on users. I want to give users the flexibility of saving the results (basically a nested dictionary with regular and reactive objects mixed) into their AWS S3 buckets. They will reload it later.
EMElder Millenial10/17/2023

Well I am definitely on the right track

Well, I am definitely on the right track hahaha. This is exactly the approach I took.
Rrh-afk10/16/2023

another question i just want to combine

another question , i just want to combine cross filter with map (leafmap) however I couldn't make it work: filter, _set_filter = solara.use_cross_filter(id(df))
solara.CrossFilterSelect(df, "class") solara.CrossFilterSelect(df, "name")...
MMaartenBreddels10/16/2023

2 No if you put in a top level dict not

2) No, if you put in a top level dict (not reactive) in a module, every user sees the same dictionary. The only problem with that is that you cannot get an event when the data changes, but you could do a proxy. I can give some example code in a thread that doesn't work yet, but might get the idea across better. 4) Not yet, but coming! (see also the new thread)...
Aanimusater10/12/2023

If I ve setup an app with multiple pages

If I've setup an app with multiple pages using Solara's routing, is there an easy way to redirect a user to a certain page? For example, say I'd want to show a popup and then, after some few seconds, redirect the user to the home page.
Cchristian543210/6/2023

Thank you for your answer but next

Thank you for your answer, but next question, why display(button) from widget on solara component doesn' t appear on my codes: import solara import ipywidgets as widgets ...
JMJan-Hendrik Müller10/4/2023

Blender with Solara

Sst8/29/2023

would be very happy to be a guinnea pig

would be very happy to be a guinnea pig 😄
Mmariobuikhuizen8/19/2023

Which version of lab running pip install

Which version of lab? running !pip install will install it in the kernel environment, if the lab server is is in a different environment, it still not installed there if you're in the scenario of different environments for server and kernel.
TTao8/8/2023

Thanks how could I programatically set

Thanks ! how could I programatically set theme from Python side ?
Rrht8/7/2023

it seems to be functional not sure I

it seems to be functional. not sure I understand the downside of my current approach. but fixing anyway
TTao8/7/2023

3 what s the best way to implement `push

3. what's the best way to implement push notification ? is it something like this ? and is it run as an OS thread or a greenlet in eventloop ? ``` @solara.component def Page(): push_notifications = solara.use_reactive([])...
TTao8/7/2023

2 when I create a module level reactive

2. when I create a module level reactive var like x = solara.reactive(None), is it application wide or session wide ? seems like application wide, how could I get a session wide var on Python side ?
TTao8/7/2023

couple of questions around session

couple of questions around session management: 1. I found Solara manages session via cookie which is good, could we figure out a standard way to expose session_id to application layer ? for me, my first thing on my web app is to set session id via localstorage and wait for the value before rendering anything, I think the Solara managed session is just perfect for my need to identify a session....
Mmariobuikhuizen8/3/2023

I m not sure what you mean but changing

I'm not exactly sure what you mean, but changing the value from the backend would look something like this: ``` import solara import ipyreact ...
Sst8/3/2023

hey solara team looking into state

hey solara team looking into state documentation. It seems solara.reactive is session based as in if i refresh it resets. Is there a way to have shared state between sessions (browser refresh, etc) without using a database? Is it using the cache storage?
TTao8/1/2023

hope to know when we will get this fixed

hope to know when we will get this fixed. I am developing some demo with Solara and don't want to see this when show the demo to the executives.
Next