##// END OF EJS Templates
Make nbconvert a little less chatty....
Matthias Bussonnier -
Show More
@@ -190,7 +190,7 b' class TemplateExporter(Exporter):'
190 190 except Exception as e:
191 191 self.log.warn("Unexpected exception loading template: %s", try_name, exc_info=True)
192 192 else:
193 self.log.info("Loaded template %s", try_name)
193 self.log.debug("Loaded template %s", try_name)
194 194 break
195 195
196 196 def from_notebook_node(self, nb, resources=None, **kw):
@@ -310,7 +310,6 b' class NbConvertApp(BaseIPythonApplication):'
310 310 resources['profile_dir'] = self.profile_dir.location
311 311 resources['unique_key'] = notebook_name
312 312 resources['output_files_dir'] = '%s_files' % notebook_name
313 self.log.info("Support files will be in %s", os.path.join(resources['output_files_dir'], ''))
314 313
315 314 # Try to export
316 315 try:
@@ -76,7 +76,11 b' class FilesWriter(WriterBase):'
76 76 # Write all of the extracted resources to the destination directory.
77 77 # NOTE: WE WRITE EVERYTHING AS-IF IT'S BINARY. THE EXTRACT FIG
78 78 # PREPROCESSOR SHOULD HANDLE UNIX/WINDOWS LINE ENDINGS...
79 for filename, data in resources.get('outputs', {}).items():
79
80 items = resources.get('outputs', {}).items()
81 if items:
82 self.log.info("Support files will be in %s", os.path.join(resources['output_files_dir'], ''))
83 for filename, data in items:
80 84
81 85 # Determine where to write the file to
82 86 dest = os.path.join(self.build_directory, filename)
General Comments 0
You need to be logged in to leave comments. Login now