##// END OF EJS Templates
Creating application.config attribute....
Brian E. Granger -
Show More
@@ -416,7 +416,7 b' class AuthenticatedZMQStreamHandler(ZMQStreamHandler):'
416 def open(self, kernel_id):
416 def open(self, kernel_id):
417 self.kernel_id = kernel_id.decode('ascii')
417 self.kernel_id = kernel_id.decode('ascii')
418 try:
418 try:
419 cfg = self.application.ipython_app.config
419 cfg = self.application.config
420 except AttributeError:
420 except AttributeError:
421 # protect from the case where this is run from something other than
421 # protect from the case where this is run from something other than
422 # the notebook app:
422 # the notebook app:
@@ -187,6 +187,7 b' class NotebookWebApplication(web.Application):'
187 self.cluster_manager = cluster_manager
187 self.cluster_manager = cluster_manager
188 self.ipython_app = ipython_app
188 self.ipython_app = ipython_app
189 self.read_only = self.ipython_app.read_only
189 self.read_only = self.ipython_app.read_only
190 self.config = self.ipython_app.config
190 self.log = log
191 self.log = log
191 self.jinja2_env = Environment(loader=FileSystemLoader(os.path.join(os.path.dirname(__file__), "templates")))
192 self.jinja2_env = Environment(loader=FileSystemLoader(os.path.join(os.path.dirname(__file__), "templates")))
192
193
General Comments 0
You need to be logged in to leave comments. Login now