File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed
Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 11name : Check Release
22on :
3- push :
4- branches : ["main"]
53 pull_request :
64 branches : ["*"]
75
Original file line number Diff line number Diff line change @@ -47,14 +47,18 @@ export const VariableContextProvider: React.FC<{ children: React.ReactNode }> =
4747 store_history : false
4848 } )
4949 if ( future ) {
50+ console . log ( "future" , future ) ;
5051 future . onIOPub = ( msg : KernelMessage . IIOPubMessage ) => {
5152 const msgType = msg . header . msg_type
53+ console . log ( msgType , "msgType" ) ;
5254 if (
5355 msgType === 'execute_result' ||
5456 msgType === 'display_data' ||
55- msgType === 'update_display_data'
57+ msgType === 'update_display_data' ||
58+ msgType === 'error'
5659 ) {
5760 const content = msg . content as any
61+ console . log ( content , "content" ) ;
5862 const jsonData = content . data [ 'application/json' ]
5963 const textData = content . data [ 'text/plain' ]
6064 if ( jsonData ) {
@@ -71,6 +75,7 @@ export const VariableContextProvider: React.FC<{ children: React.ReactNode }> =
7175 type : item . varType ,
7276 shape : item . varShape || 'N/A'
7377 } ) )
78+ console . log ( mappedVariables ) ;
7479 setVariables ( mappedVariables )
7580 } else {
7681 throw new Error ( 'Error during parsing.' )
Original file line number Diff line number Diff line change @@ -178,7 +178,10 @@ def _jupyterlab_variableinspector_dict_list():
178178 vardic = []
179179 for _v in values:
180180 if keep_cond(_v):
181- _ev = eval(_v)
181+ try:
182+ _ev = eval(_v)
183+ except Exception:
184+ continue
182185 vardic += [{
183186 'varName': _v,
184187 'varType': type(_ev).__name__,
@@ -239,6 +242,7 @@ def _jupyterlab_variableinspector_default(o):
239242def _jupyterlab_variableinspector_deletevariable(x):
240243 exec("del %s" % x, globals())
241244
242- _jupyterlab_variableinspector_dict_list()
243245
246+
247+ _jupyterlab_variableinspector_dict_list()
244248`
You can’t perform that action at this time.
0 commit comments