Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Feb 25, 2019
1 parent f66556d commit c321041
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions voila/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def start(self):
self.log.info('Storing connection files in %s.' % self.connection_dir)
self.log.info('Serving static files from %s.' % self.static_root)

kernel_manager = MappingKernelManager(
self.kernel_manager = MappingKernelManager(
connection_dir=self.connection_dir,
allowed_message_types=[
'comm_msg',
Expand All @@ -189,7 +189,7 @@ def start(self):
self.config_manager = ConfigManager(parent=self, read_config_path=read_config_path)

self.app = tornado.web.Application(
kernel_manager=kernel_manager,
kernel_manager=self.kernel_manager,
allow_remote_access=True,
autoreload=self.autoreload,
voila_jinja2_env=env,
Expand Down Expand Up @@ -261,8 +261,7 @@ def listen(self):
self.log.info('Stopping...')
finally:
shutil.rmtree(self.connection_dir)
kernel_manager.shutdown_all()
shutil.rmtree(connection_dir)
self.kernel_manager.shutdown_all()


main = Voila.launch_instance

0 comments on commit c321041

Please sign in to comment.