version_information icon indicating copy to clipboard operation
version_information copied to clipboard

Export to PDF fails for modules with underscore (like version_information itself)

Open etabeta78 opened this issue 6 years ago • 0 comments

If you add a cell to a Jupyter notebook calling

%load_ext version_information
%version_information version_information

then export to PDF fails due to the unescaped underscore in the module name, when the table is built.

I think a fix could be to add at line 163 of version_information.py

_name = self._latex_escape(name)

like you do for _version and update the later construction of the TeX output, but I'd leave to you the judgement about its correctness

etabeta78 avatar Sep 11 '19 09:09 etabeta78