##// END OF EJS Templates
support pdf export in the notebook UI
MinRK -
Show More
@@ -73,7 +73,7 b' class NbconvertFileHandler(IPythonHandler):'
73 @web.authenticated
73 @web.authenticated
74 def get(self, format, path='', name=None):
74 def get(self, format, path='', name=None):
75
75
76 exporter = get_exporter(format, config=self.config)
76 exporter = get_exporter(format, config=self.config, log=self.log)
77
77
78 path = path.strip('/')
78 path = path.strip('/')
79 model = self.notebook_manager.get_notebook(name=name, path=path)
79 model = self.notebook_manager.get_notebook(name=name, path=path)
@@ -1,9 +1,5 b''
1 //----------------------------------------------------------------------------
1 // Copyright (c) IPython Development Team.
2 // Copyright (C) 2008-2011 The IPython Development Team
2 // Distributed under the terms of the Modified BSD License.
3 //
4 // Distributed under the terms of the BSD License. The full license is in
5 // the file COPYING, distributed as part of this software.
6 //----------------------------------------------------------------------------
7
3
8 //============================================================================
4 //============================================================================
9 // MenuBar
5 // MenuBar
@@ -125,6 +121,10 b' var IPython = (function (IPython) {'
125 that._nbconvert('rst', true);
121 that._nbconvert('rst', true);
126 });
122 });
127
123
124 this.element.find('#download_pdf').click(function () {
125 that._nbconvert('pdf', true);
126 });
127
128 this.element.find('#rename_notebook').click(function () {
128 this.element.find('#rename_notebook').click(function () {
129 IPython.save_widget.rename_notebook();
129 IPython.save_widget.rename_notebook();
130 });
130 });
@@ -84,6 +84,7 b' class="notebook_app"'
84 <li id="download_py"><a href="#">Python (.py)</a></li>
84 <li id="download_py"><a href="#">Python (.py)</a></li>
85 <li id="download_html"><a href="#">HTML (.html)</a></li>
85 <li id="download_html"><a href="#">HTML (.html)</a></li>
86 <li id="download_rst"><a href="#">reST (.rst)</a></li>
86 <li id="download_rst"><a href="#">reST (.rst)</a></li>
87 <li id="download_pdf"><a href="#">PDF (.pdf)</a></li>
87 </ul>
88 </ul>
88 </li>
89 </li>
89 <li class="divider"></li>
90 <li class="divider"></li>
General Comments 0
You need to be logged in to leave comments. Login now