Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added kill_kernel to notebook template.

  • Loading branch information...
commit eed03765f380043d259e2a9d121c4d9ce312c653 1 parent c912b45
@ellisonbg ellisonbg authored committed
View
6 IPython/frontend/html/notebook/handlers.py
@@ -90,7 +90,8 @@ def get(self):
self.render(
'notebook.html', project=project,
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 @@ def get(self, notebook_id):
self.render(
'notebook.html', project=project,
notebook_id=notebook_id,
- base_project_url=u'/', base_kernel_url=u'/'
+ base_project_url=u'/', base_kernel_url=u'/',
+ kill_kernel=False
)
View
6 IPython/frontend/html/notebook/templates/notebook.html
@@ -191,7 +191,11 @@
</div>
<div class="section_row">
<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 class="checkbox_label" id="kill_kernel_label">Kill kernel upon exit:</span>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.