Show More
@@ -141,7 +141,10 b' class ProfileDir(LoggingConfigurable):' | |||||
141 | self._mkdir(self.static_dir) |
|
141 | self._mkdir(self.static_dir) | |
142 | custom = os.path.join(self.static_dir, 'custom') |
|
142 | custom = os.path.join(self.static_dir, 'custom') | |
143 | self._mkdir(custom) |
|
143 | self._mkdir(custom) | |
144 | from IPython.html import DEFAULT_STATIC_FILES_PATH |
|
144 | try: | |
|
145 | from jupyter_notebook import DEFAULT_STATIC_FILES_PATH | |||
|
146 | except ImportError: | |||
|
147 | return | |||
145 | for fname in ('custom.js', 'custom.css'): |
|
148 | for fname in ('custom.js', 'custom.css'): | |
146 | src = os.path.join(DEFAULT_STATIC_FILES_PATH, 'custom', fname) |
|
149 | src = os.path.join(DEFAULT_STATIC_FILES_PATH, 'custom', fname) | |
147 | dest = os.path.join(custom, fname) |
|
150 | dest = os.path.join(custom, fname) |
General Comments 0
You need to be logged in to leave comments.
Login now