Skip to content

Commit

Permalink
PDFExporter currently has its "output_mimetype" traitlet to be
Browse files Browse the repository at this point in the history
'text/latex', from its superclass.

This causes issues when using "Export to pdf" option in the notebook,
as the notebook web application uses this traitlet's value as the
mimetype of the attached file.
  • Loading branch information
Madhu94 committed Mar 24, 2019
1 parent 6cbc541 commit ca1a264
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nbconvert/exporters/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ class PDFExporter(LatexExporter):

texinputs = Unicode(help="texinputs dir. A notebook's directory is added")
writer = Instance("nbconvert.writers.FilesWriter", args=(), kw={'build_directory': '.'})

output_mimetype = "application/pdf"

_captured_output = List()

Expand Down

0 comments on commit ca1a264

Please sign in to comment.