Show More
@@ -184,6 +184,10 b' class AuthenticatedHandler(RequestHandler):' | |||||
184 | """ |
|
184 | """ | |
185 | return self.application.read_only |
|
185 | return self.application.read_only | |
186 |
|
186 | |||
|
187 | def use_less(self): | |||
|
188 | """Use less instead of css in templates""" | |||
|
189 | return self.application.use_less | |||
|
190 | ||||
187 | @property |
|
191 | @property | |
188 | def ws_url(self): |
|
192 | def ws_url(self): | |
189 | """websocket url matching the current request |
|
193 | """websocket url matching the current request | |
@@ -296,7 +300,8 b' class NamedNotebookHandler(AuthenticatedHandler):' | |||||
296 | read_only=self.read_only, |
|
300 | read_only=self.read_only, | |
297 | logged_in=self.logged_in, |
|
301 | logged_in=self.logged_in, | |
298 | login_available=self.login_available, |
|
302 | login_available=self.login_available, | |
299 |
mathjax_url=self.application.ipython_app.mathjax_url, |
|
303 | mathjax_url=self.application.ipython_app.mathjax_url, | |
|
304 | use_less=self.use_less,)) | |||
300 |
|
305 | |||
301 |
|
306 | |||
302 | class PrintNotebookHandler(AuthenticatedHandler): |
|
307 | class PrintNotebookHandler(AuthenticatedHandler): |
@@ -346,6 +346,14 b' class NotebookApp(BaseIPythonApplication):' | |||||
346 | help="Whether to prevent editing/execution of notebooks." |
|
346 | help="Whether to prevent editing/execution of notebooks." | |
347 | ) |
|
347 | ) | |
348 |
|
348 | |||
|
349 | use_less = Bool(False, config=True, | |||
|
350 | help="""Wether to use Browser Side less-css parsing | |||
|
351 | instead of compiled css version in templates that allows | |||
|
352 | it. This is mainly convenient when working on the less | |||
|
353 | file to avoid a build step, or if user want to overwrite | |||
|
354 | some of the less variables without having to recompile | |||
|
355 | everything.""") | |||
|
356 | ||||
349 | webapp_settings = Dict(config=True, |
|
357 | webapp_settings = Dict(config=True, | |
350 | help="Supply overrides for the tornado.web.Application that the " |
|
358 | help="Supply overrides for the tornado.web.Application that the " | |
351 | "IPython notebook uses.") |
|
359 | "IPython notebook uses.") |
General Comments 0
You need to be logged in to leave comments.
Login now