Skip to content

Commit db697be

Browse files
author
Jürgen Hasch
committed
Ignore import
1 parent f2ed342 commit db697be

File tree

1 file changed

+2
-2
lines changed
  • src/jupyter_contrib_nbextensions/nbextensions/varInspector

1 file changed

+2
-2
lines changed

src/jupyter_contrib_nbextensions/nbextensions/varInspector/var_list.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
_nms.shell = _Jupyter.kernel.shell
99

1010
try:
11-
import numpy as np
11+
import numpy as np # noqa: F401
1212
except ImportError:
1313
pass
1414

@@ -38,7 +38,7 @@ def var_dic_list():
3838
'instance', '_Feature', 'type', 'ufunc']
3939
values = _nms.who_ls()
4040
vardic = [{'varName': v, 'varType': type(eval(v)).__name__, 'varSize': str(_getsizeof(eval(v))), 'varShape': str(_getshapeof(eval(v))) if _getshapeof(eval(v)) else '', 'varContent': str(eval(v))[:200]} # noqa
41-
41+
4242
for v in values if (v not in ['_html', '_nms', 'NamespaceMagics', '_Jupyter']) & (type(eval(v)).__name__ not in types_to_exclude)] # noqa
4343
return json.dumps(vardic)
4444

0 commit comments

Comments
 (0)