Skip to content

Commit

Permalink
Small speedup improvement on the inspection logic in Python
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Aug 30, 2024
1 parent 306964c commit 56e2e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inspectorscripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def _jupyterlab_variableinspector_dict_list():
def keep_cond(v):
try:
obj = eval(v)
if isinstance(obj, str):
if isinstance(obj, (bool, str, list, int, float, type(None))):
return True
if __tf and isinstance(obj, __tf.Variable):
return True
Expand Down

0 comments on commit 56e2e41

Please sign in to comment.