##// END OF EJS Templates
support pdf export in the notebook UI
MinRK -
Show More
@@ -73,7 +73,7 b' class NbconvertFileHandler(IPythonHandler):'
73 73 @web.authenticated
74 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 78 path = path.strip('/')
79 79 model = self.notebook_manager.get_notebook(name=name, path=path)
@@ -1,9 +1,5 b''
1 //----------------------------------------------------------------------------
2 // Copyright (C) 2008-2011 The IPython Development Team
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 //----------------------------------------------------------------------------
1 // Copyright (c) IPython Development Team.
2 // Distributed under the terms of the Modified BSD License.
7 3
8 4 //============================================================================
9 5 // MenuBar
@@ -125,6 +121,10 b' var IPython = (function (IPython) {'
125 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 128 this.element.find('#rename_notebook').click(function () {
129 129 IPython.save_widget.rename_notebook();
130 130 });
@@ -84,6 +84,7 b' class="notebook_app"'
84 84 <li id="download_py"><a href="#">Python (.py)</a></li>
85 85 <li id="download_html"><a href="#">HTML (.html)</a></li>
86 86 <li id="download_rst"><a href="#">reST (.rst)</a></li>
87 <li id="download_pdf"><a href="#">PDF (.pdf)</a></li>
87 88 </ul>
88 89 </li>
89 90 <li class="divider"></li>
General Comments 0
You need to be logged in to leave comments. Login now