Learn how to use Dash Bio for next-gen sequencing & quality control. 🧬Register for the Oct 27 webinar.

Generate a table in dash using the values generated inside a function

I have a python dash app.py file which has the following structure

1. All necessary library imports

app.layout = (textBox1,
                    textBox2,
                    textBox3,
                    Graph)
app call back = output - graph, input - textbox3 - state - textbox1, textbox2
def update_figure(textbox1,textbox2,textbox3):
   list1 = [n1,n2,n3,n4] # Size of list is always 4
   fig = plotly.express.line()
   fig.axvline(list1[0 to n])
   return fig

You can see that, there is a list1 that is been generated out of logical functions and I need to generate a table as a output in the same page using dash. How to do that?

Maybe inspire from this?

[in]
def hello():
    global c
    c = 1
    return c

[out]
print(hello())
print(c)

[results]
1
1