Skip to content

Commit 06723e1

Browse files
seeMisabelizimm
andauthored
Python: Safely and efficiently compute variable display values (#8545)
Addresses #8245. The approach is inspired by pydevd which backs the debugger used by most Python IDEs today. The focus is on safely (i.e. no hangs) and efficiently calculating and sending display values over the wire, _not_ on perfectly formatting those display values, hence the large max character values. The idea is that further formatting would be handled in the UI, although we can change this if needed. I've mostly left the display formatting of the larger third party objects as is (numpy, pandas, etc). The lower level changes here should make refinements to those easier in future. ### Release Notes #### New Features - N/A #### Bug Fixes - Improved the performance of Python variable updates (#8245). ### QA Notes See the repro steps in #8245 as well as the new unit tests. @:variables @:data-explorer @:console --------- Signed-off-by: Wasim Lorgat <[email protected]> Co-authored-by: Isabel Zimmerman <[email protected]>
1 parent 1763493 commit 06723e1

File tree

7 files changed

+733
-324
lines changed

7 files changed

+733
-324
lines changed

extensions/positron-python/python_files/posit/pinned-test-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ pyarrow==20.0.0
3939
pytest==8.4.1
4040
pytest-asyncio==1.0.0
4141
pytest-mock==3.14.1
42+
syrupy==4.9.1
4243
torch==2.7.1
4344
scipy==1.13.1; python_version == '3.9'
4445
scipy==1.15.3; python_version >= '3.10'

0 commit comments

Comments
 (0)