From d163089c222c3e89c1d45a2f9aa36428575f4822 2015-04-11 01:00:18 From: Min RK Date: 2015-04-11 01:00:18 Subject: [PATCH] don't assume html exists when creating a profile --- diff --git a/IPython/core/profiledir.py b/IPython/core/profiledir.py index 515fad9..a1b7154 100644 --- a/IPython/core/profiledir.py +++ b/IPython/core/profiledir.py @@ -141,7 +141,10 @@ class ProfileDir(LoggingConfigurable): self._mkdir(self.static_dir) custom = os.path.join(self.static_dir, 'custom') self._mkdir(custom) - from IPython.html import DEFAULT_STATIC_FILES_PATH + try: + from jupyter_notebook import DEFAULT_STATIC_FILES_PATH + except ImportError: + return for fname in ('custom.js', 'custom.css'): src = os.path.join(DEFAULT_STATIC_FILES_PATH, 'custom', fname) dest = os.path.join(custom, fname)