79233142

Date: 2024-11-28 08:53:00
Score: 1
Natty:
Report link

I guess you should use reactive.value to save inputs. Instead of R assigments like initialising links_data <- reactiveVal(NULL) elements_data <- reactiveVal(NULL) then links_data(df) - or df <- links_data() where df is the "from" "to" dataframe you should use in Python Shiny: links_data = reactive.value(NULL) and links_data.set() and links_data.get() for setting and getting data within the @reactive.effect @reactive.event(input.table) segment there is a short example in the shiny for python docs how to use it in the reactvie framework for single values: https://shiny.posit.co/py/api/core/reactive.value.html#:~:text=Reactive%20values%20are%20the%20source,are%20read%2Donly%20reactive%20values

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Arturas Razinkovas