Relative Content

Tag Archive for pythonpy-shiny

How to use the input of a field only if it is visible?

How do I manage that an input field value is empty, if it is not shown. In the example the text caption field is empty and not shown. If I show it by ticking “Show text caption field” and enter any text, the text appears in the output field. If I then untick “Show text caption field” the output field should also be empty again without having to manually. Not in general of course, but for some use cases this is quite important.

How to get current session details after SSO authentication in Shiny for Python?

I am creating an application that has SSO authentication. Once the authentication is done, I can get the user details using request.session.get('user').
I created a variable user_details = {} outside the server function of shiny and assigned the session details into it and it was working fine. The issue is, this data will be remained in the server when each user logs in. When me and my friend logged into the webpage after completing my SSO, he saw my name in his session.

How to define a base URL for a Shiny application?

I deployed a python Shiny application in Kubernetes.
The Kubernetes Ingress routes the requests to the corresponding Deployment in Kubernetes with a base URL path. This means that when I access http://example.org/baseurl in my browser it routes the request to the specific Kubernetes Deployment where the Shiny app is running.
The problem is that the Shiny app responds with 404 because it doesn’t recognize the URL /baseurl

@render.data_frame not working for Python Shiny Express

I’ve been trying to display a DataGrid for information read from a CSV file using Shiny Express in Python. However, @render.data_frame is not working as expected, and I can’t find any info online. I was following a YouTube tutorial where it worked for them, but it’s not working for me.

@render.data_frame not working for Python Shiny Express

I’ve been trying to display a DataGrid for information read from a CSV file using Shiny Express in Python. However, @render.data_frame is not working as expected, and I can’t find any info online. I was following a YouTube tutorial where it worked for them, but it’s not working for me.

How to dynamically insert new tabs with the press of an input task button?

I am developing a Shiny app in Python and I am currently struggling to find a way to dynamically generate new tabs with the press of either an input task button or with a tab called “New”. I’ve researched into using ui.insert_ui and achieved some level of the intended effect with dynamically adding panels to my ui.navset_tab but when clicking on the new tab, the tab freezes and I can’t switch to the new tab.