Black Lives Matter. Please consider donating to Black Girls Code today.
Dash Enterprise delivers an incredible 21x cost savings 💸Download the e-book!

Combine contents of Tabs into one page

I have a Tab - SubTabs structure of a multi-page dash application.


index.py
app.py
-- Tab
-- Tab1.py
-- Tab2.py
---- SubTab1.py
---- SubTab2.py

I’d like combine the contents of SubTab1 and SubTab2 into either another Tab or SubTab. Besides copying and pasting the contents of SubTab1 and SubTab2, is there a more elegant way of doing this?

Perhaps, something like import SubTab1.py and SubTab2.py? Does that render the contents?