File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed
extensions/positron-python/python_files/posit/positron Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -734,10 +734,25 @@ def _summarize_data(self, path: list[str]):
734
734
if not _value_type_is_supported (value ):
735
735
raise ValueError (f"Variable at '{ path } ' is not supported for summary" )
736
736
737
- # Create a temporary table view without a comm
737
+ # Create a temporary table view with mock comm
738
738
temp_state = DataExplorerState ("temp_summary" )
739
739
try :
740
- table_view = _get_table_view (value , None , temp_state , self .kernel .job_queue )
740
+
741
+ class _MockBaseComm :
742
+ def __init__ (self ):
743
+ self .comm_id = "temp_summary_comm"
744
+
745
+ def send (self , data ):
746
+ pass # No-op for temporary summary
747
+
748
+ def on_close (self , callback ):
749
+ pass # No-op for temporary summary
750
+
751
+ from .positron_comm import PositronComm
752
+
753
+ mock_comm = PositronComm (_MockBaseComm ())
754
+
755
+ table_view = _get_table_view (value , mock_comm , temp_state , self .kernel .job_queue )
741
756
except Exception as e :
742
757
raise ValueError (f"Failed to create table view: { e } " ) from e
743
758
You can’t perform that action at this time.
0 commit comments