Skip to content

Commit ed780b9

Browse files
committed
Backport PR #1334: Do not clean up resources after execution
1 parent 9e76783 commit ed780b9

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

voila/notebook_renderer.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,6 @@ async def _jinja_notebook_execute(self, nb, kernel_id):
252252
# (it seems to be local to our block)
253253
nb.cells = result.cells
254254

255-
await self._cleanup_resources()
256-
257255
async def _jinja_cell_generator(self, nb, kernel_id):
258256
"""Generator that will execute a single notebook cell at a time"""
259257
nb, _ = ClearOutputPreprocessor().preprocess(
@@ -303,12 +301,6 @@ async def _jinja_cell_generator(self, nb, kernel_id):
303301
finally:
304302
yield output_cell
305303

306-
await self._cleanup_resources()
307-
308-
async def _cleanup_resources(self):
309-
await ensure_async(self.executor.km.cleanup_resources())
310-
await ensure_async(self.executor.kc.stop_channels())
311-
312304
async def load_notebook(self, path):
313305

314306
model = await ensure_async(self.contents_manager.get(path=path))

0 commit comments

Comments
 (0)