Interact with `Layout` defined in another file
In a file with a defined
Page
solara component, I can import a defined Layout
specified in another file. Just importing is enough to render the page in that layout. However, it does not seem to allow for interacting with the layout; i.e. I cannot pass a "page title" or something similar. I'm curious if it's possible to interact with the Layout
beyond being able to define the children, or if perhaps I should be inspecting the children and pulling out which elements I want for particulars parts of the layout?
For example:
```
layout.py...use_thread eats logs?
When an exception is thrown in a function run from use_thread it seems I don't get any log (logging using structlog), I see there is an error state in the use_thread is there a way to get logging from that?
Primary colour used by Solara
Hi all, I have been using an assets file and this code to change the primary colour of solara to green (see code):
```vuetifyThemes = {
light: {
primary: '#017F36', // cyanocapture green (from logo)...
Unable to trigger re-render after updating reactive state
Hi.
I'm trying to render a dataframe using the following code:
```python...
cross-filtering ipyaggrid element in Solara
Hi, is there a way to cross filter a
ipyaggrid
element in solara based on other Solara components (Sliders, Select, etc)? I tried creating a custom solara.CrossFilterGrid
similar to solara.CrossFilterDataFrame
. I could not get it to work but maybe I am missing something. Here is my reproducible example
```python
import ipyaggrid
import plotly.express as px...ipymolstar (anywidget) in solar app
I'm trying to put the ipymolstar PDBemolstar widget in a solara app.
(https://github.com/Jhsmit/ipymolstar; use master branch, release is broken)
this works:
```...
Ipyreactplayer not working in Solara - New Try
Hi, i've created an interactive videoplayer using ipyreact and reactplayer. It works everywhere (notebook, lab, voila, colab) but not in Solara.
Ill want to give it a new shot as Solara is so nice and thats the last part missing in my app.
https://github.com/widgetti/solara/issues/333
I tested the player with the same Video on Youtube...
Conditional Hook issues
I have a fair sized data set, and I have a switch that's on by default to not display a portion of the data to the UI.
Turning off the switch works as expected, causing the filtered data to be displayed, but if I toggle the switch back on, I get a conditional hooks runtime error because there are less effects in the render loop, but this is expected. Any suggestions on how to get around this?...
Turning off the switch works as expected, causing the filtered data to be displayed, but if I toggle the switch back on, I get a conditional hooks runtime error because there are less effects in the render loop, but this is expected. Any suggestions on how to get around this?...
Quickstart server not rendering any components
Hi all, apologies if this is a very basic question. I am running through the quickstart for solara on the website: https://solara.dev/docs/quickstart; however, I'm running into an issue where once I run the example
sol.py
file and go to http://localhost:8765/ on my local computer, there seems to be nothing rendered as it is just a blank page. Looking at the browser logs it seems that the server is returning a 404 response as seen in the sreenshot attached. Pinging the server at curl http://localhost:8765/readyz
results in a 200 OK response. Furthermore, running solara with logs such as solara run --log-level debug sol.py
does not seem to yield any particular useful information. I am running with the following versions:
solara-1.27.0
ipyvuetify-1.8.10
ipywidgets-8.0.4
Python 3.8.18
...Subscribing to reactive variable changes
I see there are subscribe and subscribe_change methods on Reactive, but I don't see how best to use them and what is the difference between them? If I wanted to e.g. trigger validation on value input, what should I use?
Help: Auth Redirect to a new page
I'd like for my application to start on the
auth0
login url rather than a solara page if the user is not authenticated.
The example for solara auth involves a Button redirect to the login_url
```python
@solara.component...Help: Drawing a rectangle on an ipyleaflet map
Trying to create an ipyleaflet component but the state and view management is a bit over my head. Does anyone have experience in creating a component that updates a "bounding_boxes" reactive element?
Using use_effect
Hi, I'm wondering if .use_effect is expected for ipyvuetify widgets in a jupyter notebook? Its registering the event but the widget just disappears when it occurs.
Need help with ipyleaflet
Hello, I am trying to design a map in ipyleaflet and need some help.
I am currently working on the compass, to help people in finding the correct azimuth (orientation) of their solar arrays (inspired by: https://osmcompass.com/)
This is what I currently have: https://github.com/Open-HEMS/pvcast-frontend/blob/solara/pvcastfrontend/02-config.py#L850...
Embedding 3rd party UI Library
Is there a way to embedd a 3rd party UI Library like boostrap?
Where to place a tag like the following:
```
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script...
Altair expand width to available horizontal space
I'm trying to get my altair chart to expand to the available width.
```python
data = pd.DataFrame({"x": range(10), "y": [i**2 for i in range(10)]})
chart = alt.Chart(data).mark_line().encode(x="x:Q", y="y:Q")...
Ipyleaflet Numbered Markers
Hello, does anyone know of an easy way to add numbered markers?
e.g. a JS example with leaflet https://stackoverflow.com/questions/22622393/leaflet-awesome-markers-adding-numbers...
Is there a way to embed an IPython console into a solara app?
What I have in mind is a solara app that has an interactive IPython shell, similar to this page:
https://octoframes.github.io/tldraw-with-jupyterlite-shell/
Is that already possible?...