#NEWLINE# def validate( self ) : #NEWLINE# #INDENT# if ipython . import_error_str : #NEWLINE# #INDENT# raise ResultProcessorError ( ipython . import_error_str ) #NEWLINE# #UNINDENT# if ( not jinja2 ) : #NEWLINE# #INDENT# msg = '{} requires python-jinja2 package to be installed' . format ( self . name ) #NEWLINE# raise ResultProcessorError ( msg ) #NEWLINE# #UNINDENT# if ( self . show_notebook and ( not self . notebook_directory ) ) : #NEWLINE# #INDENT# raise ConfigError ( 'Requested "show_notebook" but no notebook_directory was specified' ) #NEWLINE# #UNINDENT# if ( self . notebook_directory and ( not os . path . isdir ( self . notebook_directory ) ) ) : #NEWLINE# #INDENT# raise ConfigError ( 'notebook_directory {} does not exist' . format ( self . notebook_directory ) ) #NEWLINE# #UNINDENT# if ( self . show_html and ( not self . convert_to_html ) ) : #NEWLINE# #INDENT# self . convert_to_html = True #NEWLINE# self . logger . debug ( 'Assuming "convert_to_html" as "show_html" is set' ) #NEWLINE# #UNINDENT# if ( self . show_pdf and ( not self . convert_to_pdf ) ) : #NEWLINE# #INDENT# self . convert_to_pdf = True #NEWLINE# self . logger . debug ( 'Assuming "convert_to_pdf" as "show_pdf" is set' )