diff --git a/google/colab/_shell.py b/google/colab/_shell.py index 4bda9c61..a12e22e3 100644 --- a/google/colab/_shell.py +++ b/google/colab/_shell.py @@ -91,7 +91,7 @@ def get_code_name(self, raw_code, code, number): if code_name.endswith('.py'): path = pathlib.Path(code_name) pid = os.getpid() - code_name = f'/tmp/ipython-input-{pid}/{path.name}' + code_name = f'/tmp/ipykernel_{pid}/{path.name}' return code_name