Solara

S

Solara

Discord for the Solara python package. NOT for the Roblox executor :)

Join

questions-issues

general

announcements

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

State updates don't trigger page rerender in some cases

I have a @solara.component that immediately sets a reactive state to True. When this happens, the page fails to rerender: ```python import solara as sl ...

Update Ipyaggrid data from selected dataframe

I need to update the ipyaggrid table based on the DataFrame selected in the dropdown.
However, only the first selected DataFrame gets updated, and not the subsequent ones.
On the other hand, the Solara datatable updates correctly.
Can someone help me find a solution, please? ...

Dashboard from a dataframe, modified only i-th row

Hello, I have a dashboard created from a dataframe. For each row from a df subset a card with graph and some other info is created. Now if the data in i-th row are modified, I want to update only the corresponding card. My current solution updates all rows. The code is at https://gist.github.com/robert-marik/77e1bdccc617bd6880f324535fe74a98 (I was not allowed to paste link from pycafe, since the message turned to be long). When I click the button, all cards are rendered again, despite the fact that only one row has been modified. Any idea?...

Second sidebar

Is there any easy way to create a second sidebar where can place extra controls? Similar to Tensorflow tensorboard (e.g https://www.tensorflow.org/tensorboard) Or anyway to change default layout by using Vuetify wireframes (e.g https://v2.vuetifyjs.com/en/getting-started/wireframes/) ?...

iPhone mine

My iPhone Mini (13) is having some issues with Solara, as the browser keeps freezing. Which iphone would you recommend for better performance ?