2
0
mirror of https://github.com/jupyter/notebook.git synced 2025-01-24 12:05:22 +08:00

Merge pull request from ellisonbg/removeprint

Remove the unused print notebook view
This commit is contained in:
Min RK 2013-04-30 20:12:42 -07:00
commit 6be220da56
4 changed files with 2 additions and 21 deletions
IPython/frontend/html/notebook

View File

@ -380,19 +380,6 @@ class NamedNotebookHandler(IPythonHandler):
)
class PrintNotebookHandler(IPythonHandler):
@authenticate_unless_readonly
def get(self, notebook_id):
if not self.notebook_manager.notebook_exists(notebook_id):
raise web.HTTPError(404, u'Notebook does not exist: %s' % notebook_id)
self.write( self.render_template('printnotebook.html',
project=self.project,
notebook_id=notebook_id,
kill_kernel=False,
mathjax_url=self.mathjax_url,
))
#-----------------------------------------------------------------------------
# Kernel handlers
#-----------------------------------------------------------------------------

View File

@ -68,9 +68,8 @@ from .handlers import (LoginHandler, LogoutHandler,
ProjectDashboardHandler, NewHandler, NamedNotebookHandler,
MainKernelHandler, KernelHandler, KernelActionHandler, IOPubHandler, StdinHandler,
ShellHandler, NotebookRootHandler, NotebookHandler, NotebookCopyHandler,
AuthenticatedFileHandler, PrintNotebookHandler,
MainClusterHandler, ClusterProfileHandler, ClusterActionHandler,
FileFindHandler, NotebookRedirectHandler,
AuthenticatedFileHandler, MainClusterHandler, ClusterProfileHandler,
ClusterActionHandler, FileFindHandler, NotebookRedirectHandler,
)
from .nbmanager import NotebookManager
from .filenbmanager import FileNotebookManager
@ -154,7 +153,6 @@ class NotebookWebApplication(web.Application):
(r"/%s" % _notebook_id_regex, NamedNotebookHandler),
(r"/%s" % _notebook_name_regex, NotebookRedirectHandler),
(r"/%s/copy" % _notebook_id_regex, NotebookCopyHandler),
(r"/%s/print" % _notebook_id_regex, PrintNotebookHandler),
(r"/kernels", MainKernelHandler),
(r"/kernels/%s" % _kernel_id_regex, KernelHandler),
(r"/kernels/%s/%s" % (_kernel_id_regex, _kernel_action_regex), KernelActionHandler),

View File

@ -96,9 +96,6 @@ var IPython = (function (IPython) {
notebook_id + '?format=py';
window.location.assign(url);
});
this.element.find('button#print_notebook').click(function () {
IPython.print_widget.print_notebook();
});
this.element.find('#kill_and_exit').click(function () {
IPython.notebook.kernel.kill();
setTimeout(function(){window.close();}, 200);

View File

@ -2,6 +2,5 @@
@import "variables.less";
@import "flexible-box-model.less";
@import "notebook.less";
@import "printnotebook.less";
@import "renderedhtml.less";
@import "tooltip.less";