ipython_utils¶
Utilities for using dms_tools2
in an IPython (Jupyter) notebook.
-
dms_tools2.ipython_utils.
showPDF
(pdfs, width=None)[source]¶ Displays PDF images side-by-side in IPython notebook.
This function is useful over just directly displaying the PDF as many web browsers do not show inline PDFs. This function converts the PDF to PNG and displays that. It requires that ImageMagick
convert
be available for the conversion.- Args:
- pdfs (str or list)
Filename of a PDF, or a list of such filenames. Multiple images are displayed side-by-side.
- width (float or int)
Width of the displayed PDF.