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.
py-shiny
82
questions
0
votes
0
answers
28
views
Migrate R Shiny to Shiny for Python app compatibility [closed]
I am trying to move from a 1k lines of code app from R Shiny to Shiny for Python. I expect the base to be same for Plotly and DT interface.
But for other JS packages, I am not sure I will find support ...
1
vote
1
answer
46
views
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'...
1
vote
1
answer
26
views
How to render a static SVG in Shiny for Python?
Is there a way to render a SVG in a shiny-python app directly rather than convert it to a png and then render it from an ImgData, by calling ui.output_plot?
1
vote
1
answer
92
views
How do I filter a table by clicking on a bar chart segment?
I built an RShiny dashboard with plotly-r using the palmer penguins dataset so that when I click on a bar chart segment, it uses that event data to filter a dataset.
On Hover:
On Click:
I wanted to ...
2
votes
1
answer
38
views
Change style of DataTable in Shiny for Python
I would like to set a background color in a Shiny for Python DataTable
from palmerpenguins import load_penguins
from shiny import render
from shiny.express import ui
penguins = load_penguins()
ui.h2(...
1
vote
1
answer
33
views
Way to make input_text_area appear reactively when option is selected from input_radio_buttons in Python Shiny
I'm developing a web app in Shiny express for Python. I've implemented a group of radio buttons so that users can try out some pre-defined input for the app. One of the buttons is labelled "I ...
0
votes
1
answer
46
views
How can I delete data with shiny input_action_button?
I have recently started working with Shiny Python and got stuck at some point.
from pathlib import Path
from shiny import reactive
from shiny.express import input, render, ui
ui.page_opts(title=&...
0
votes
0
answers
34
views
Use event handler to update map view in ipyleaflet
Previous project people developed the app on Python shiny. Project partners requested the map does not revert back to its original center and zoom when adding visualization layers, so I was hoping to ...
0
votes
0
answers
16
views
Shiny App Deployment: The write operation timed out
I am currently working on a data science project for university. My team have designed an app in shiny in python (not in R). I am having issues during the deploying stage as "The write operation ...
0
votes
0
answers
32
views
Image dection model doesn't work in Shiny Python app
I want to create a Shiny Python app without success for image detection. But the functions in ui don't work. My example is:
# Run in Jupyter notebook inside a conda environment where:
# pip install ...
0
votes
1
answer
72
views
How to generate distinct download buttons in Python Shiny modules
I am working on a Shiny App in Python, and it uses modules to reproduce the same plots/calculations etc on different input data. Plots and data manipulation work as expected, but the content of the ...
1
vote
1
answer
127
views
Enable / disable the automatic reload of shiny
I have a shiny express app like
import matplotlib.pyplot as plt, pandas as pd
from shiny import reactive, req, render
from shiny.express import input, render, ui
# variables
ui.page_opts(title="...
1
vote
1
answer
315
views
Display image using shiny in python
I want to display an image using Shiny in Python, but I cannot find an error in the code. The file is not uploaded once I open the app and input the image.
Here is the code:
from pathlib import Path
...
0
votes
0
answers
94
views
Dataframe date display issue using shiny with python
i'm new to programming, with objective to learn some basics using Python and R skills for data processing and machine learning. I already made one first project using R and shiny package to implement ...
1
vote
1
answer
155
views
Problems with dynamically added python shiny server modules
The short question is, How does one instantiate an arbitrary set of server modules? My UI modules render as intended, but I'm seeing signs that the buttons are triggering multiple server module ...