Using the following code I am able to display nice side-by-side centralized tables in my jupyter notebook or in the converted HTML with code
import pandas as pd
import numpy as np
from IPython.display import display, HTML
display(HTML("""
<style>
.output {
display: flex;
flex-direction: row;
justify-content: center;
}
</style>
"""))
df = pd.DataFrame(10000*np.ones((2,2)), columns = ['foo','bar'])
display(df)
display(df)
Nevertheless, if I convert myfile.ipynb to myfile.html without code using jupyter nbconvert --to html --no-inp myfile.ipynb the tables display with almost no horizontal space with long scroll bars, making them fairly unusable.
What can I do to keep the tables display as they are in the jupyter notebook?

