diff --git a/IPython/nbconvert/preprocessors/csshtmlheader.py b/IPython/nbconvert/preprocessors/csshtmlheader.py index 2b41cca..49f66f8 100755 --- a/IPython/nbconvert/preprocessors/csshtmlheader.py +++ b/IPython/nbconvert/preprocessors/csshtmlheader.py @@ -87,8 +87,9 @@ class CSSHTMLHeaderPreprocessor(Preprocessor): 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: