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?
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...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.
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...
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!...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.
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.
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....
production flag throws error
I run into some error where running
--production
solara run demo_main.py --production
```python ...Local cache?
What is the recommended way of storing local state between browser refreshes? I see that it's possible to use the cache storage for e.g. check box states between page refreshes, but this seems to be persistent for all users of the app. Is it possible to store browser-specific state (in
localStorage
, for example), to maintain user-specific UI state between refreshes?Solara very slow as subapp of FAstAPI, after deployed to Docker container
Seems okay under localhost, very slow under Docker container! Anyone has any insights?
Keep zoom state of plotly figure when re-render is triggered.
I built an app where I have a coloured scatter plot with many thousand points each associated with an image from a set of classes. I can select points, look at the image and reclassify.
When I want to re render my scatter plot so that it has the updated classes I change a reactive dataframe. This all works fine, the only issue is that I have to zoom into a region of the scatter plot to resolve the points.
Re-rendering resets the axes so I have to find that region again (but I have to re-render regularly to keep track of which points I processed).
So the question is if there is a way to update the scatter plot (i.e. the point colors) without resetting the axes....
Passing data through iframe?
Hi,
I want to embed (using iframe) a solara page within a react webpage.
What would be the best way to pass variables into the solara page?
Thank you very much...
Solara for data manipulation application?
Hi, I am a python newbie, and want to build a python application on a postgres database. Is Solara suited for a data manipulation application? Or is it more data science dashboards and visualizations?
My application will basically be screens with a lot of information, and when you click on a piece of information you can update this in a pop-up. I would also like to add new projects in a wizard style series of forms. Plus I would like a tree navigation item based on a database view. Is all this possible in Solara?
My second question is: as I try to figure out my stack I stumble across Django a lot. It seems that Django can provide a nice layer for the postgres tables. Can Solara do that as well? Do I need Django at all?
...
...
ssg static assets
I'm enjoying Solara so far - my saved site with
solara ssg mysite.py
or with solara run mystie.py --ssg
saves one page index.html
, all good for a simple example, but it is missing the css, js, and other resources. How could I best include those?Remove controls from plotly figure
I'm using plotly to create clickable images that are tightly arranged. For this I need to remove the plotly controls. This can be done by passing config={'displayModeBar': False} to plotly.show, but as this is not a figure property I'm not sure how to accomplish this when doing solara.FigurePlotly(fig).
Resizing a plotly plot based on available screen size
Is there a way to get the available screen size and react to it? I want my plotly plots to change size depending on available space. I found this related github issue for the same problem with matplotlib figures: https://github.com/widgetti/solara/discussions/158
Is this solution using a custom vue component also the correct way to go for plotly plots or is there a pure python solution?...
Module loading error after changes
After any changes inside my custom modules solara crashes when attemptin to reload them, if i stop the app and restart it runs without a problem. Changes just as simple as a new space will break the hot reloading capabilites. The call stack is showing there is an issue with the a key (module name) in the autorouting package. I also noticed that as im working with the app running it periodically reloads and crashes in the same manner.