Skip to content

Commit 5567433

Browse files
committed
provide temp comm to satisfy pyright
1 parent b587b14 commit 5567433

File tree

1 file changed

+4
-3
lines changed
  • extensions/positron-python/python_files/posit/positron

1 file changed

+4
-3
lines changed

extensions/positron-python/python_files/posit/positron/variables.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -734,10 +734,11 @@ def _summarize_data(self, path: list[str]):
734734
if not _value_type_is_supported(value):
735735
raise ValueError(f"Variable at '{path}' is not supported for summary")
736736

737-
# Create a temporary table view without a comm
738-
temp_state = DataExplorerState("temp_summary")
739737
try:
740-
table_view = _get_table_view(value, None, temp_state, self.kernel.job_queue)
738+
# Create a temporary table view with a temporary comm
739+
temp_state = DataExplorerState("temp_summary")
740+
temp_comm = PositronComm.create(target_name="temp_summary", comm_id="temp_summary_comm")
741+
table_view = _get_table_view(value, temp_comm, temp_state, self.kernel.job_queue)
741742
except Exception as e:
742743
raise ValueError(f"Failed to create table view: {e}") from e
743744

0 commit comments

Comments
 (0)