# Embedding a python function on a tab in dash

**URL:** <https://community.plotly.com/t/embedding-a-python-function-on-a-tab-in-dash/21163>\
**Category:** Dash Python\
**Created:** [March 20, 2019, 3:18pm UTC](https://community.plotly.com/t/embedding-a-python-function-on-a-tab-in-dash/21163 "2019-03-20T15:18:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ambekar.k](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@ambekar.k](https://community.plotly.com/u/ambekar.k)\
**Post date:** [March 20, 2019, 3:18pm UTC](https://community.plotly.com/t/embedding-a-python-function-on-a-tab-in-dash/21163/1 "2019-03-20T15:18:10Z")

</div>

Hi all-

I am working on multiple tabs and I want to embed a python function for the tab.

I have the code below:

app.layout = html.Div([  
html.H2(‘Carrier Management’, style={  
‘textAlign’: ‘center’, ‘margin’: ‘18px 0’, ‘fontFamily’: ‘system-ui’}),  
dcc.Tabs(id=“tabs”, children=[  
dcc.Tab(label=‘Performance’, children=[  
html.Div([  
html.P(“Performance Metrics”)

```
        ])
    ]),

```

I want to call another function here for my tab (the function has a graphs based on a csv data)

Thanks!
