iotools.write_expr_to_ly_and_to_pdf_and_show

abjad.tools.iotools.write_expr_to_ly_and_to_pdf_and_show.write_expr_to_ly_and_to_pdf_and_show(expr, name, template=None, write=True)[source]

Write expr to named .ly and to PDF and then open the resulting PDF:

abjad> iotools.write_expr_to_ly_and_to_pdf_and_show(Note("c'8"), 'file_name_stem') # doctest: +SKIP

Write expr to temporary .ly and to PDF and then open the resulting PDF:

abjad> iotools.write_expr_to_ly_and_to_pdf_and_show(Note("c'8"), 'file_name_stem', write = False) # doctest: +SKIP

Return none.

The purpose of this function is to save named .ly and PDF output.

Changed in version 2.0: renamed io.write_and_show() to io.write_expr_to_ly_and_to_pdf_and_show().

This Page