Skip to content

Commit

Permalink
Merge pull request #311 from martinRenou/small_speedup
Browse files Browse the repository at this point in the history
Small speedup improvement on the inspection logic in Python
  • Loading branch information
martinRenou committed Aug 30, 2024
2 parents 306964c + 56e2e41 commit 7cdba26
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 7cdba26

Please sign in to comment.