Solara

S

Solara

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

Join

questions-issues

general

announcements

Making a logger per kernel/user

I'm looking to make a logger instance for each individual kernel/user. How should I go about instantiating one and ensuring it's passed properly between different parts of the codebase? My initial thought was:...

How to use SOLARA_ASSETS_EXTRA_LOCATIONS

Hey, I hope that you are doing well. I tried to add a folder containing js assets by exporting the variable: export SOLARA_ASSETS_EXTRA_LOCATIONS="/path/to/js/folder/". My main issue is that when I watch the sources in my app, I cannot see the aforementionned folder within _solara/cdn/...

multipage jupyter dashboard

Is there a way to get a multipage app to work inside of a jupyter notebook? I mean, displaying the root component and then using solara.Link() to navigate inside jupyter?

go.Scatter selection randomly not triggering

I'm using go.Scatter and its lasso selection to select points and further work with the returned indices. However, this is unreliable. Most of the times the selection just doesn't do anything and I have to repeat it 1-5 times. I think it gets more unreliable the bigger the total number of points is (but doesn't depend on the number of selected points). I found this issue that might be connected, but couldn't translate it into a solution myself: https://github.com/zauberzeug/nicegui/issues/3762 ...

How do i remove items from GridDraggable?

Trying to make adding and removing grid items possible. Already made the layouts reactive. adding and {item:layout} pair does create the new item, but removing the {item:layout} pair doesn't remove the item.

How to add an event listener to reacton.ipyvuetify.FileInput?

The following code correctly renders the FileInput component. ```python import solara from reacton import ipyvuetify as rv...

on_click with button_parent object

I have a generator create cards with object contained in them. Now i wish to connect a button inside the card to perform some action on the card elements. how do i send the arguments with the function it is calling?...

FileDropMultiple

Is it just me or does the FileDropMultiple component not work?

Hiding appbar

Hi everyone, Im trying to hide the appbar (the navigation between pages) when users are not logged in. Seemed easy enough but apparently not. Maybe im going about this all wrong. Any help or tips much appreciated. Ive sent my main.py. Let me know if more context is needed....

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 :...

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.....

Testing button click

I'm using an accordion widget (v.ExpansionPanels), where each step has a Button(label="Confirm", ...) that, on click, bubbles up a state change, which, among other things, moves the accordion to the next step. This works as expected in the frontend. However, it does not seem to work in the test. ```python def test_step_change_on_confirm(self): """Test that the wizard step changes on confirm button click."""...

Support for pop-up notifications?

Hello, Does Solara have support for pop ups on web apps? I didn’t see anything in the docs other than the success or warning messages, but could not figure out how to get them to disappear after showing up. Any ideas? All help is appreciated....

Multiline ChatInput

solara.lab.ChatInput is great but it doesn't allow multi-line input (shift+enter to line break will just send the message). I've tried solara.InputTextArea with update_events=["keyup.enter"] instead for linebreaks to work, and they do, but now pressing "enter" just linebreaks and doesn't send the message. What should I do short of dropping down to js?...

How to download?

Please help me download solara

combining custom routes and custom layout

It seems when defining custom route that the custom layout is overridden. I tried with the custom layout in init or in s standalone page with the same result. I am doing this wrong? is there another of redirecting a route without having the default blue navigation bar? (I actually want to hide it) import solara...

Clearing a component

I have a solara.use_task-triggered solara.HTML(tag="iframe", ...) component. I want to clear the solara.Column hosting it from it when the user requests its deletion. I can choose to render it or not based on a boolean controlled by the user, but that's not really deleting it right? The iframe holds a resource that is, I think, still present in the DOM. How do I really clear this component? What's the advised practice?...

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 ```...

<script> tag in HTML component

I am trying to add a <script> tag via the solara.HTML component. Even if the script is present in the DOM, it is not executeed. I found out that <script> tags that are added via JS innerHTML to the DOM are not executed to prevent XSS attacks. Is there another way for a solara app to add custom JS to a component? Thanks!...
Next