Questions tagged [py-shiny]

Shiny for Python - Shiny makes it easy to build interactive web applications with the power of Python’s data and scientific stack.

Shiny for Python:

Shiny makes it easy to build interactive web applications with the power of Python’s data and scientific stack.

38 questions
0
votes
0 answers

How to render directory structure as text in Shiny?

Developing an app that takes a directory path as input and reads all relevant files inside of it. I'd like for users to see what directory structure is expected before providing this path. The directory structure looks like this: project/ ├── Input/…
0
votes
0 answers

Clicking file input button causes screen to scroll up to the top of the shiny app

I am creating a shiny app in python that has a file input component near the end of the page with some text at the beginning of the page. I've found that clicking to upload a file with file input component causes the whole app to scroll to the top…
0
votes
0 answers

Ipyelaflet numbered markers

I'm wondering how to create markers that have a number inside of them in ipyleaflet. I googled it, however the only answer I found was abou javascript. Thank you
Beppe
  • 1
  • 1
0
votes
0 answers

The application exited before accepting connections. Contact the author for more information

Hi I'm deploying a shiny app using Python to shinyapps.io, the only problem is that when it opens the link, I get the following error: An error has occurred The application exited before accepting connections. Contact the author for more…
Beppe
  • 1
  • 1
0
votes
0 answers

How to reset row selection in Shiny for Python

There is server-part code from example on https://shinylive.io/py/examples/#data-frame-grid, but a bit simplified. @output @render.data_frame def grid(): return render.DataGrid( penguins, …
anon.for
  • 57
  • 5
0
votes
0 answers

Ipyleaflet markers in Shiny for Python

i'm trying to create a Shiny app that every time I click on a marker, it returns the id of the marker. My code is: from shiny import App, reactive, run_app, ui from shinywidgets import output_widget, render_widget import ipyleaflet as L import…
0
votes
1 answer

PyShiny: How to periodically update data from database path provided as UI input?

I've run into an issue writing a PyShiny app that I can't seem to find the answer to and I'm hoping someone here might be able to help. The app I'm writing needs to stream data from a SQL database (I'm using pandas.read_sql for this) but the…
0
votes
1 answer

How do I connect Python to Shiny Apps without using R?

I have a python code and I want to make a shiny app out of it. The reason for this is because the packages that I'm using in python do not support each other when I'm doing it in R (keras and tensorflow). rsconnect add \ --account _____ \ …
Nick
  • 1
  • 1
0
votes
1 answer

How can I get a working download button for a plot generated in the server function of a shiny python app?

I haven't been able to find an example in python that shows what I'm trying to do. I have a plot generated by a function within the app that I'd like to be able to download as a PNG file. Various methods I've tried have generated empty files that…
hn2112
  • 1
  • 2
0
votes
3 answers

How to get multiple plot in PyShiny?

I have been trying, unsuccessfully, to reproduce this minimal R Shiny app in PyShiny. I tried to literally translate the R code to python code, but it looks like I need to dynamically name the plotname() function inside the @render.plot decorator.…
sbik
  • 41
  • 7
0
votes
1 answer

Shiny for Python : rendering multiple plots

I am building a python shiny app where the user can select an input and then plot a graph about that input. The tricky part is that I want the app to be able to plot multiple graphs and also give the user the possibility to delete specific…
nokas
  • 1
0
votes
1 answer

In shiny for python how can I use panel_conditional to check if an input contains a value?

Let's say I have an input 'state' that can contain multiple values. How do I check if the input state contains 'Alabama'. I assumed I could just use 'in' like this but it doesn't seem to work: from shiny import ui, App, render app_ui =…
Dave Rosenman
  • 1,252
  • 9
  • 13
0
votes
0 answers

Create a toggle button to change theme in Python Shiny

I am building a web app using Python Shiny, I am trying to create a toggle switch such that one can change the app theme by turning it on and off. The challenge I am facing is that the theme changes when you click on it once, with subsequent clicks…
0
votes
1 answer

Python Shiny: How to toggle visibility of a conditional panel with two buttons?

Python Shiny: Open and close panel_conditional through button press In my webapplication I want to open a conditional panel through a button click. On that panel I want to add a close button to close it again. Below I will add some codesnippets on…
Marren
  • 11
  • 2
0
votes
1 answer

Rendering Plot and Table Within One Function

Currently i am working on my first webapplication in Shiny. Through text input from the user a MySQL query is being made and data is being retrieved from the SQL database. In my code snippet I removed the queries to keep it more clear. The data is…
Marren
  • 11
  • 2