Solara

S

Solara

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

Join Server
JJames2/22/2024

Quickstart server not rendering any components

Hi all, apologies if this is a very basic question. I am running through the quickstart for solara on the website: https://solara.dev/docs/quickstart; however, I'm running into an issue where once I run the example sol.py file and go to http://localhost:8765/ on my local computer, there seems to be nothing rendered as it is just a blank page. Looking at the browser logs it seems that the server is returning a 404 response as seen in the sreenshot attached. Pinging the server at curl http://localhost:8765/readyz results in a 200 OK response. Furthermore, running solara with logs such as solara run --log-level debug sol.py does not seem to yield any particular useful information. I am running with the following versions: solara-1.27.0 ipyvuetify-1.8.10 ipywidgets-8.0.4 Python 3.8.18...
No description
Mmangecoeur2/20/2024

Subscribing to reactive variable changes

I see there are subscribe and subscribe_change methods on Reactive, but I don't see how best to use them and what is the difference between them? If I wanted to e.g. trigger validation on value input, what should I use?
FFabricio2/19/2024

How to edit/remove loading page effect?

How to edit/remove this loading page effect?
No description
Cconic2/19/2024

Help: Auth Redirect to a new page

I'd like for my application to start on the auth0 login url rather than a solara page if the user is not authenticated. The example for solara auth involves a Button redirect to the login_url ```python @solara.component...
Cconic2/16/2024

Help: Drawing a rectangle on an ipyleaflet map

Trying to create an ipyleaflet component but the state and view management is a bit over my head. Does anyone have experience in creating a component that updates a "bounding_boxes" reactive element?
CCorran2/10/2024

Using use_effect

Hi, I'm wondering if .use_effect is expected for ipyvuetify widgets in a jupyter notebook? Its registering the event but the widget just disappears when it occurs.
SStefan2/10/2024

Need help with ipyleaflet

Hello, I am trying to design a map in ipyleaflet and need some help. I am currently working on the compass, to help people in finding the correct azimuth (orientation) of their solar arrays (inspired by: https://osmcompass.com/) This is what I currently have: https://github.com/Open-HEMS/pvcast-frontend/blob/solara/pvcastfrontend/02-config.py#L850...
Rrob3r760602/7/2024

Embedding 3rd party UI Library

Is there a way to embedd a 3rd party UI Library like boostrap? Where to place a tag like the following: ``` <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script...
JSJochem Smit2/6/2024

Altair expand width to available horizontal space

I'm trying to get my altair chart to expand to the available width. ```python data = pd.DataFrame({"x": range(10), "y": [i**2 for i in range(10)]}) chart = alt.Chart(data).mark_line().encode(x="x:Q", y="y:Q")...
EExodia1/31/2024

Ipyleaflet Numbered Markers

Hello, does anyone know of an easy way to add numbered markers? e.g. a JS example with leaflet https://stackoverflow.com/questions/22622393/leaflet-awesome-markers-adding-numbers...
JMJan-Hendrik Müller1/30/2024

Is there a way to embed an IPython console into a solara app?

What I have in mind is a solara app that has an interactive IPython shell, similar to this page: https://octoframes.github.io/tldraw-with-jupyterlite-shell/ Is that already possible?...
No description
SStefan1/30/2024

How to embed swagger API documentation into a solara page?

I have an API running on the same host as the solara application. I would like to embed the swagger documentation in solara, is this possible?
JJulien1/26/2024

What is ipyleaflet.Map.element() ?

Hi, I hope this is not a silly question, but in the two Solara examples using ipyleaflet, it is called with ipyleaflet.Map.element(...), for example: ```python ipyleaflet.Map.element( # type: ignore...
TTownsaver1/25/2024

Is there a way to create a slideshow of images that respond to left and right arrows?

It would be great to be able to iterate through a list of images using left and right arrows. Matplotlib interactive features only allow you to use the arrows for view history of a single figure. Back and Forward ipywidgets work but its bit inconvient. What would be ideal is using keyboard shortcuts.
SStefan1/25/2024

OpenStreetMap compass?

Would it be possible to make something like this in Solara? Any pointers on where to start? It's from this website: https://osmcompass.com/ The website will tell you how many degrees the compass is clockwise from north...
No description
Ccommodity-pilled1/24/2024

Setting favicon in browser?

I am having trouble setting a custom favicon to display in the browser. Following the tutorial on asset files (https://solara.dev/docs/reference/asset-files), I have a directory called assets in my app repository which contains the icon favicon.png. It also has a custom.css file, which doesn't seem to be loading, either. My assumption is when running Solara server, these files would be automatically noticed and override defaults, but maybe I'm misunderstanding something. Any suggestions? Thanks!...
Cconic1/23/2024

AWS Cognito Auth?

My team uses this. Doesn't work by default with solara auth. Despite cognitos support for oauth2 and OIDC/etc. Can this be a configuration issue with cognito? Or is there something that Im overlooking.
MMatt1/22/2024

solara ssg your.awesome.app issue

When I run the command, it says it is missing module "your" and module "your.awesome". Those values appear to be coming from the command line. The docs say that that value should be the app name.
EExodia1/19/2024

Communicate with app from a different file

Hello, What would be the best way to call my solara app from another? I need be able lto launch or connect to update the webapp from another library, hence need to be able to launch and call it in a modular manner....
Cconic1/17/2024

Cookies?

Can solara store state in browser cookies?
No description
Next