mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
Added kill_kernel to notebook template.
This commit is contained in:
parent
6c5f69e97a
commit
9b945e7bc2
@ -90,7 +90,8 @@ class NewHandler(AuthenticatedHandler):
|
|||||||
self.render(
|
self.render(
|
||||||
'notebook.html', project=project,
|
'notebook.html', project=project,
|
||||||
notebook_id=notebook_id,
|
notebook_id=notebook_id,
|
||||||
base_project_url=u'/', base_kernel_url=u'/'
|
base_project_url=u'/', base_kernel_url=u'/',
|
||||||
|
kill_kernel=False
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@ -105,7 +106,8 @@ class NamedNotebookHandler(AuthenticatedHandler):
|
|||||||
self.render(
|
self.render(
|
||||||
'notebook.html', project=project,
|
'notebook.html', project=project,
|
||||||
notebook_id=notebook_id,
|
notebook_id=notebook_id,
|
||||||
base_project_url=u'/', base_kernel_url=u'/'
|
base_project_url=u'/', base_kernel_url=u'/',
|
||||||
|
kill_kernel=False
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -191,7 +191,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="section_row">
|
<div class="section_row">
|
||||||
<span id="kernel_persist">
|
<span id="kernel_persist">
|
||||||
<input type="checkbox" id="kill_kernel"></input>
|
{% if kill_kernel %}
|
||||||
|
<input type="checkbox" id="kill_kernel" checked="true"></input>
|
||||||
|
{% else %}
|
||||||
|
<input type="checkbox" id="kill_kernel"></input>
|
||||||
|
{% end %}
|
||||||
</span>
|
</span>
|
||||||
<span class="checkbox_label" id="kill_kernel_label">Kill kernel upon exit:</span>
|
<span class="checkbox_label" id="kill_kernel_label">Kill kernel upon exit:</span>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user