[Python] How to select certain row(s) by code in a DataGrid table in Python-Shiny?

Discussão em 'Python' iniciado por Stack, Abril 29, 2025.

  1. Stack

    Stack Membro Participativo

    I created a table ("DataGrid") using:

    ui.output_data_frame("grid")


    which I filled using

    @render.data_frame
    def grid():
    df = ...
    return render.DataGrid(df, selection_mode="row")


    Now, I want to change the selection using codfe. Is this possible in Python's version of Shiny?

    Continue reading...

Compartilhe esta Página