Solara

S

Solara

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

Join

questions-issues

general

announcements

I'd like to find out if the the shift key is down when I click the mouse on a solara button.

This should not be hard. I should not have to write a bunch of javascript to get this to work from solara. It is very basic. What is going on with our software frameworks where it is so hard to find out if a key is down?

"Loading app" spinner

Hi, Is it possible to customize or remove the main spinner when the app loads and it displays "Loading app" with the spinner? Also, is it possible to customize the small spinner in app? Thanks!...

Can't get nglview to work with Solara server - works in Jupyter

Hi All, I'm trying to get the nglview library working in Solara server. The following code works in Jupyter, but displays an empty box using solara run ```python import nglview import solara...

Integrating a larger Vue application with Solara

We have a large vite + vue 3.5 composition + primevui/tailwind project we'd like to integrate with the Jupyter ecosystem. The solara docs are great at showing one-off vue sfc integration, but it's not clear how we would "package" a node-bundled, full-fledged application reactilely within a solara app. Is this something potentially supportable? Ideally, we could wrap SFCs as needed from our larger application in component_vue, passing props as needed. Deps could be inferred from node_modules + other local files, transpiled to be cdn-based, or something else...

Word wrap issue in Solara.Tab

hi! i'm fairly new to Solara and encountered this problem. is there a way to disable this word wrap feature? i want the text to maximize the horizontal space. i'm using solara.Markdown for the text. hoping someone can help! thanks!
No description

Status of Solara 2.0 and 3.0?

I really like Solara and was wondering of the future upgrades?

Does Solara support Markdown tables?

I'm trying to generate a Markdown table as part of my user guide. Other content gets rendered OK, but it looks like solara.Markdown does not recognize the table at all? | one | two | three | |---|---|---| | one | two | three | Am I missing something here?...

Anyone home?

Is anyone listening here? Is there an active Solara community or not? If there is one, is this the place to find it?

Can a Solara app listen for a keypress?

Can a Solara app listen for a keypress? I'd like to make a keyboard shortcut for a toggle button

Scrollable, updatable text (log file monitor) widget.

I wish there was a way in Solara to create a multi-line text output box widget where my code could append messages to it and it would autoscroll to the bottom (latest appended message) but keep a long history which I can scroll back through and look at. For instance for monitoring a log file while an application is running in the background. Has anybody written such a thing?...

Load environmental variables

Hi, i specified path to .env file for solara to load my environmental variables config as follows: solara run --env-file .env main.py my .env file contains: SOLARA_THEME_SHOW_BANNER=False but as a result banner "This website runs on Solara" still exists Setting environmental variable manually does hide the banner, but manually setting configs is not what i want. What am I doing wrong...

Custom Page for 404 Not Found

Based on the pull request here, I attempted to run the following code: ```python sol.py ...

differentiating InputText keyup.enter and focusout

Hi. We have several dialog boxes with InputText that we'd like to have the following default behavior: - upon "keyup.enter" : accept input - upon "focusout" : discard input I can't figure if InputText can allow this as on_value is event-agnostic, and there's only update_events to restrict the call to this callback. Thus if update_events=["keyup.enter"] I lack a means to catch focusout......

Message: App is disconnnected, and may not function properly. Please refresh the page.

Hello. I am running solara as blueprint in flask application. Flask contains some authorization and then redirects to the blueprint. I hav 4 workers, 20 threads, the app contains about 10 routes. I get often after short time of inactivity the message from the subject (App i s disconnected ...) Any idea, what could be wrong or what should be checked? I use the code from https://solara.dev/documentation/getting_started/deploying/self-hosted#embedding-in-an-existing-fastapi-application , run the app as a service on a nonpriviledged port and redirect apache to that port. ...

InputDate with buttons

Hi there, I'm trying to replicate the "more advanced" example here: https://solara.dev/documentation/components/lab/input_date#a-more-advanced-example but with the InputDate component (so only one date). I want the menu to have a "Select" button (and maybe also a "Cancel" button) so that the value isn't automatically picked when the user clicks on a date. I'm having issues getting it to work though. Even though I am passing the open_value parameter (because I want to control when the menu closes), the menu closes whenever I click on a date. The example from the docs does work for me, though I don't understand how. (My guess is that it's because that example is using an InputDateRange, but it does not allow the user to ever pick the second date because it's set automatically based on the stay_length...?) Here's my simple example (which does not work):...

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