Skip to content

Commit 4b5da6c

Browse files
committed
serialise as plain text for valueInfo
1 parent b5a37e9 commit 4b5da6c

File tree

1 file changed

+1
-2
lines changed
  • src/Microsoft.DotNet.Interactive.Jupyter/CommandEvents/LanguageHandlers/python

1 file changed

+1
-2
lines changed

src/Microsoft.DotNet.Interactive.Jupyter/CommandEvents/LanguageHandlers/python/coe_comm_handler.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,12 @@ def __handle_request_value_infos(self, command):
7373
valueType = str(type(variables[x]))
7474
if (x in variables and valueType not in self.__exclude_types):
7575
try:
76-
formattedValue = FormattedValue.fromValue(variables[x])
76+
formattedValue = FormattedValue('text/plain+summary', f'{variables[x]}')
7777
results.append(KernelValueInfo(x, formattedValue, valueType))
7878
except Exception as error:
7979
self. __debugLog('failed creating formattedValue for ' +x+ ' of type ' +valueType, error)
8080
pass
8181

82-
8382
return EventEnvelope(ValueInfosProduced(results), command)
8483

8584
def __handle_request_value(self, command):

0 commit comments

Comments
 (0)