From 521f78d4e926588a13236284cfcc4e9229dcb782 Mon Sep 17 00:00:00 2001 From: "Nikita.Ashihmin" Date: Mon, 1 Dec 2025 12:40:15 +0400 Subject: [PATCH] Revert "Revert "[jupyter] PY-85835 Colab: Add variable view support"" This reverts commit e209051a303c12830fcc90fdc10478cbaf1c2bdf. GitOrigin-RevId: d3bcf0d1cea21cf936ce13b384387a5f0be196c0 --- python/helpers/jupyter_debug/pydev_jupyter_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/helpers/jupyter_debug/pydev_jupyter_utils.py b/python/helpers/jupyter_debug/pydev_jupyter_utils.py index 68e237aaa7bb..f3d0c5dec5cb 100644 --- a/python/helpers/jupyter_debug/pydev_jupyter_utils.py +++ b/python/helpers/jupyter_debug/pydev_jupyter_utils.py @@ -59,7 +59,7 @@ def remove_imported_pydev_package(): re-import again (with proper sys.path) """ pydev_module = sys.modules.get('pydevd', None) - if pydev_module is not None and 'site-packages' in str(pydev_module): + if pydev_module is not None and ('site-packages' in str(pydev_module) or 'debugpy/_vendored' in str(pydev_module)): import os pydev_dir = os.listdir(os.path.dirname(pydev_module.__file__)) pydev_dir.append('pydevd')