Solara

S

Solara

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

Join

questions-issues

general

announcements

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

404 errors on Jupyter kernels running under starlette

OS: Linux VM Situation: running behind nginx proxy Use case: Displaying Solara app (in particular a Jdaviz interactive window) as an embedded frame in a webpage Problem: I've gotten everything to the point where it seems to mostly be working, except that I'm getting 404 errors part of the way in to loading the interface. In particular, I'm getting the following (as reported from the uvicorn starlette log output):...

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

Update state when component is displayed in the front end

I am using solara for an experimental logbook app. The app displays a list of markdown entries, and this list can get quite big and slow to load, expecially if there are images inside. With some simple print debugging, i can see that my custom components render quite fast, but the solara.Markdown() takes a while to rended when there are large images to display. I am thinking of only displaying the text (without images) at first, and only when that is done, go back and add the images. But i would need some kind of callback that updates a reactive variable when a component has finshied loading on the client. Is this possible? Is there a better way to improve performance?...

Change size of matplotlib fig

So I am using Mesa so create a simulation. In order to visualize it I am using the build in SolaraViz library to visualize the simulation. However I am facing a problem, the matplotlib graph that is being used to plot the simulation is too small. I've tried to scale the graph without success so far. The code used looks as following:...
No description

Does Solara offer a directory picker widget by any chance?

Does Solara offer a directory picker widget by any chance?

is there a way for an user to communicate with the kernel through the client?

I'm just wondering if that's possible, because I remember I could do something like that when I used voila...

Best Front-End for App with a more Advanced UI?

First, thanks Maarten! Newbie question here: I'm a python dev (among othere things) but a front-end + javascript neophte. My dream is to use Solara to build a full-stack application with a beautiful front-end as if the app was a pure React/Next/Vue.js/Nuxt/Angular/... app. I know that I can build a nice data dashboard with Solara but what else would you recommend learning in order to build a really advanced, gorgeous front-end UI for a more full-featured application with Solara? React? Next? Is it easier to integrate React components than, say, PyQT? I want full control over the exact layout of the UI and the ability to create custom components? ...

Localization of datetime

Hi there! I am trying to figure out how to localize a datetime object in my Solara application. I want to show a banner like: ```...

Missing Static Assets in Solara Installation (main8.css)

I'm encountering an issue with missing static assets in my Solara installation. Specifically, the main8.css file is missing from the CDN directory. Environment: OS: Windows Server Python: [your Python version]...
No description
Next