Skip to content

Python Repl: New REPL view opened on every invocation #23500

Closed
@aeschli

Description

@aeschli

Testing #23484

Python v2024.7.11491011 (pre-release)

  • Have settings:
{
    "interactiveWindow.executeWithShiftEnter": false,
    "python.REPL.sendToNativeREPL": true
}
  • Have file z_lib .py
import zlib

string = b'witch which has which witches wrist watch'
assert len(string) == 41

zlib_compressed_string = zlib.compress(string)
assert len(zlib_compressed_string) == 37

zlib_decompressed_string = zlib.decompress(zlib_compressed_string)
assert zlib_decompressed_string == b'witch which has which witches wrist watch'

assert zlib.crc32(string) == 226805979
  • Select import zlib and press Shift + Enter. The expression is evaluated in the REPL ✔️
  • Select string = b'witch which has which witches wrist watch' and press Shift + Enter. The expression is evaluated in the REPL, but it's a new view

I end up with a lot of views
image

Metadata

Metadata

Assignees

Labels

triage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions