Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sanitize extra text from summary #560

Open
gmoore016 opened this issue Oct 29, 2023 · 0 comments
Open

Sanitize extra text from summary #560

gmoore016 opened this issue Oct 29, 2023 · 0 comments

Comments

@gmoore016
Copy link

gmoore016 commented Oct 29, 2023

The extra text at the end of tables is seemingly not editable after it is introduced.

Consider the example below:

image

In this example, I produce a regression table summary. However, at the bottom of the table there is text (starting with "Endogeneous: q"). While I think this means well, it makes the package incompatible with automatic LaTeX export; when using NBConvert to change a Jupyter Notebook into a PDF, LaTeX returns an error and fails. When exporting to LaTeX directly and forcing compilation, the problem becomes clear:

image

The underscores in the variable names produced in the text are not handled cleanly, such that they are interpreted as LaTeX subscripts rather than text. While of course the ideal would be to export these cleanly, a close substitute would be to allow us to remove the text from the bottom of this table. However, as far as I can tell from the documentation, once text is added there's no way to empty the summary's text field; let me know if I am mistaken. A simple fix here would be something like a .clear_notes() method which empties all notes attached to the summary table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant