From da064560e9a7379a283bf3c7d3e21b4812ad3d6a 2013-07-06 15:55:19 From: Matthias BUSSONNIER Date: 2013-07-06 15:55:19 Subject: [PATCH] style.min.css shoudl always exist... as IPython and nbconvert shoudl always be in sync now. --- diff --git a/IPython/nbconvert/transformers/csshtmlheader.py b/IPython/nbconvert/transformers/csshtmlheader.py index 0c76e93..afa6796 100755 --- a/IPython/nbconvert/transformers/csshtmlheader.py +++ b/IPython/nbconvert/transformers/csshtmlheader.py @@ -92,14 +92,9 @@ class CSSHTMLHeaderTransformer(ActivatableTransformer): 'html', 'static', 'style', 'style.min.css') #Load style CSS file. - try: - with io.open(sheet_filename, encoding='utf-8') as file: - file_text = file.read() - header.append(file_text) - except IOError: - - # New version of IPython with style.min.css, pass - pass + with io.open(sheet_filename, encoding='utf-8') as file: + file_text = file.read() + header.append(file_text) #Add pygments CSS formatter = HtmlFormatter()