mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-24 12:05:22 +08:00
Merge pull request #3235 from ellisonbg/removeprint
Remove the unused print notebook view
This commit is contained in:
commit
6be220da56
IPython/frontend/html/notebook
@ -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
|
||||
#-----------------------------------------------------------------------------
|
||||
|
@ -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),
|
||||
|
@ -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);
|
||||
|
@ -2,6 +2,5 @@
|
||||
@import "variables.less";
|
||||
@import "flexible-box-model.less";
|
||||
@import "notebook.less";
|
||||
@import "printnotebook.less";
|
||||
@import "renderedhtml.less";
|
||||
@import "tooltip.less";
|
||||
|
Loading…
Reference in New Issue
Block a user