##// END OF EJS Templates
Pass config into nbconvert exporters
Thomas Kluyver -
Show More
@@ -19,7 +19,7 b' class NbconvertFileHandler(IPythonHandler):'
19
19
20 @web.authenticated
20 @web.authenticated
21 def get(self, format, path='', name=None):
21 def get(self, format, path='', name=None):
22 exporter = exporter_map[format]()
22 exporter = exporter_map[format](config=self.config)
23
23
24 path = path.strip('/')
24 path = path.strip('/')
25 os_path = self.notebook_manager.get_os_path(name, path)
25 os_path = self.notebook_manager.get_os_path(name, path)
@@ -52,7 +52,7 b' class NbconvertPostHandler(IPythonHandler):'
52
52
53 @web.authenticated
53 @web.authenticated
54 def post(self, format):
54 def post(self, format):
55 exporter = exporter_map[format]()
55 exporter = exporter_map[format](config=self.config)
56
56
57 model = self.get_json_body()
57 model = self.get_json_body()
58 nbnode = to_notebook_json(model['content'])
58 nbnode = to_notebook_json(model['content'])
General Comments 0
You need to be logged in to leave comments. Login now