From e1e97573b62945ed71a7013e0bbeebf26a58152c Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Wed, 25 Oct 2023 05:42:01 -0500 Subject: [PATCH] Revert "Update kernel env to reflect changes in session. (#1341)" This reverts commit 3438ddb16575155e98fc4f49700fff420088c8b0. --- jupyter_server/services/sessions/sessionmanager.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/jupyter_server/services/sessions/sessionmanager.py b/jupyter_server/services/sessions/sessionmanager.py index 398490a8d4..ba55cc2836 100644 --- a/jupyter_server/services/sessions/sessionmanager.py +++ b/jupyter_server/services/sessions/sessionmanager.py @@ -461,13 +461,6 @@ async def update_session(self, session_id, **kwargs): query = "UPDATE session SET %s WHERE session_id=?" % (", ".join(sets)) # noqa self.cursor.execute(query, [*list(kwargs.values()), session_id]) - if hasattr(self.kernel_manager, "update_env"): - self.cursor.execute( - "SELECT path, name, kernel_id FROM session WHERE session_id=?", [session_id] - ) - path, name, kernel_id = self.cursor.fetchone() - self.kernel_manager.update_env(kernel_id=kernel_id, env=self.get_kernel_env(path, name)) - async def kernel_culled(self, kernel_id: str) -> bool: """Checks if the kernel is still considered alive and returns true if its not found.""" return kernel_id not in self.kernel_manager