Show More
@@ -172,12 +172,15 b' class NotebookWebApplication(web.Application):' | |||||
172 | # IPython stuff |
|
172 | # IPython stuff | |
173 | mathjax_url=ipython_app.mathjax_url, |
|
173 | mathjax_url=ipython_app.mathjax_url, | |
174 | config=ipython_app.config, |
|
174 | config=ipython_app.config, | |
175 |
use_less=ipython_app.use_less |
|
175 | use_less=ipython_app.use_less | |
176 | jinja2_env=Environment(loader=FileSystemLoader(template_path)), |
|
|||
177 | ) |
|
176 | ) | |
178 |
|
177 | |||
179 | # allow custom overrides for the tornado web app. |
|
178 | # allow custom overrides for the tornado web app. | |
180 | settings.update(settings_overrides) |
|
179 | settings.update(settings_overrides) | |
|
180 | ||||
|
181 | # create a jinja2 environment using the template path and store it in settings | |||
|
182 | settings.jinja2_env=Environment(loader=FileSystemLoader(settings.template_path)) | |||
|
183 | ||||
181 | return settings |
|
184 | return settings | |
182 |
|
185 | |||
183 | def init_handlers(self, settings): |
|
186 | def init_handlers(self, settings): |
General Comments 0
You need to be logged in to leave comments.
Login now