Selection of tables

I would like to have a selection from the tables that are available in my notebook in my dropdown. So I want to be able to select my table in the drop-down menu. Does anybody know of any similar example that can help to do it?

Thank you very much in advance!


You can use a dictionary for that. One very short example:

import as px

df_dict = {

# ....

# and to select it
     Input("data-sel", "value")
def update_table(df_key):
     df = df_dict[df_key]
     # ....

Hope this helps!

1 Like