Closed seanlaw closed 2 years ago
What extension are you using to display notebooks in your documentation?
In my conf.py
, I am seeing:
extensions = [
"sphinx.ext.napoleon",
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"sphinx.ext.intersphinx",
"sphinx.ext.mathjax",
"sphinx.ext.viewcode",
"nbsphinx",
"numpydoc",
]
I think nbsphinx
is for notebooks
I've looked at your documentation and it seems that nbsphinx is a very bad neighbor as it's not injecting its CSS in the <header>
but in the <article>
which prevents the fix I created here #954 to work.
Could you try to add to your custom css:
html div.rendered_html table {
display-table: auto;
}
Other solution is to change the notebook rendering lib and use the one we use for this theme: myst_nbw
With your guidance above, I ended up adding:
html div.rendered_html table {
table-layout: auto;
}
And that seemed to do the trick
I'll try to add it in our css so that it works for everyone
Thank you for providing this wonderful theme! While using it, I noticed that some of my Pandas DataFrames appear to be squished horizontally (i.e., the columns aren't being expanded):
The live example can be found here.
Is there a setting that I am missing that can help ensure that the DataFrames appear normally?