[Python-modules-team] Bug#736560: ipython-notebook-common: nbconvert to html raises IOError

Julian Taylor jtaylor.debian at googlemail.com
Fri Jan 24 23:24:47 UTC 2014


hi,
thanks for the report, I unfortunately did not find time to test
nbconvert for the first upload I'll fix it in the next one which will
come soon

for now this patch seems to fix it:
--- a/IPython/nbconvert/transformers/csshtmlheader.py
+++ b/IPython/nbconvert/transformers/csshtmlheader.py
@@ -88,8 +88,9 @@ def _regen_header(self):
         header = []

         #Construct path to IPy CSS
-        sheet_filename = os.path.join(path.get_ipython_package_dir(),
-            'html', 'static', 'style', 'style.min.css')
+        from IPython.html import DEFAULT_STATIC_FILES_PATH
+        sheet_filename = os.path.join(DEFAULT_STATIC_FILES_PATH,
+                                      'style', 'style.min.css')

         #Load style CSS file.
         with io.open(sheet_filename, encoding='utf-8') as file:



More information about the Python-modules-team mailing list