Skip to content

Commit

Permalink
Merge pull request #168 from parente/shutdown-on-quit
Browse files Browse the repository at this point in the history
Shutdown kernels on interrupt
  • Loading branch information
jtyberg committed Jun 15, 2016
2 parents f58594c + eee34a8 commit 46b2e21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.

FROM jupyter/pyspark-notebook:9f4ed032bada
RUN pip install nose traitlets==4.2.0
FROM jupyter/pyspark-notebook:8015c88c4b11
RUN conda install -y nose && \
conda install -y -n python2 nose

# Setup a sphinx environment for doc building
COPY docs/environment.yml /tmp
Expand Down
2 changes: 2 additions & 0 deletions kernel_gateway/gatewayapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,8 @@ def start(self):
self.io_loop.start()
except KeyboardInterrupt:
self.log.info("Interrupted...")
finally:
self.shutdown()

def stop(self):
"""
Expand Down

0 comments on commit 46b2e21

Please sign in to comment.