Skip to content

Commit dba653d

Browse files
committed
off check realese
1 parent 5d17136 commit dba653d

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.github/workflows/check-release.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
name: Check Release
22
on:
3-
push:
4-
branches: ["main"]
53
pull_request:
64
branches: ["*"]
75

src/context/notebookVariableContext.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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.')

src/pcode/utils.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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):
239242
def _jupyterlab_variableinspector_deletevariable(x):
240243
exec("del %s" % x, globals())
241244
242-
_jupyterlab_variableinspector_dict_list()
243245
246+
247+
_jupyterlab_variableinspector_dict_list()
244248
`

0 commit comments

Comments
 (0)