diff --git a/IPython/core/application.py b/IPython/core/application.py index 0250ea3..9741baa 100644 --- a/IPython/core/application.py +++ b/IPython/core/application.py @@ -294,7 +294,7 @@ class BaseIPythonApplication(Application): self.log.fatal("Profile %r not found."%self.profile) self.exit(1) else: - self.log.info("Using existing profile dir: %r"%p.location) + self.log.debug("Using existing profile dir: %r"%p.location) else: location = self.config.ProfileDir.location # location is fully specified @@ -309,7 +309,7 @@ class BaseIPythonApplication(Application): self.log.fatal("Could not create profile directory: %r"%location) self.exit(1) else: - self.log.info("Creating new profile dir: %r"%location) + self.log.debug("Creating new profile dir: %r"%location) else: self.log.fatal("Profile directory %r not found."%location) self.exit(1) diff --git a/IPython/nbconvert/exporters/templateexporter.py b/IPython/nbconvert/exporters/templateexporter.py index 8472c93..649509f 100644 --- a/IPython/nbconvert/exporters/templateexporter.py +++ b/IPython/nbconvert/exporters/templateexporter.py @@ -190,7 +190,7 @@ class TemplateExporter(Exporter): except Exception as e: self.log.warn("Unexpected exception loading template: %s", try_name, exc_info=True) else: - self.log.info("Loaded template %s", try_name) + self.log.debug("Loaded template %s", try_name) break def from_notebook_node(self, nb, resources=None, **kw): diff --git a/IPython/nbconvert/nbconvertapp.py b/IPython/nbconvert/nbconvertapp.py index 255ea1a..39bbc82 100755 --- a/IPython/nbconvert/nbconvertapp.py +++ b/IPython/nbconvert/nbconvertapp.py @@ -310,7 +310,6 @@ class NbConvertApp(BaseIPythonApplication): resources['profile_dir'] = self.profile_dir.location resources['unique_key'] = notebook_name resources['output_files_dir'] = '%s_files' % notebook_name - self.log.info("Support files will be in %s", os.path.join(resources['output_files_dir'], '')) # Try to export try: diff --git a/IPython/nbconvert/writers/files.py b/IPython/nbconvert/writers/files.py index ebcf89b..f94a790 100644 --- a/IPython/nbconvert/writers/files.py +++ b/IPython/nbconvert/writers/files.py @@ -76,7 +76,11 @@ class FilesWriter(WriterBase): # Write all of the extracted resources to the destination directory. # NOTE: WE WRITE EVERYTHING AS-IF IT'S BINARY. THE EXTRACT FIG # PREPROCESSOR SHOULD HANDLE UNIX/WINDOWS LINE ENDINGS... - for filename, data in resources.get('outputs', {}).items(): + + items = resources.get('outputs', {}).items() + if items: + self.log.info("Support files will be in %s", os.path.join(resources.get('output_files_dir',''), '')) + for filename, data in items: # Determine where to write the file to dest = os.path.join(self.build_directory, filename)