You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "userdir\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "userdir\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "userdir\.vscode\extensions\ms-python.python-2022.0.1814523869\pythonFiles\lib\python\debugpy\__main__.py", line 45, in <module>
cli.main()
File "userdir\.vscode\extensions\ms-python.python-2022.0.1814523869\pythonFiles\lib\python\debugpy/..\debugpy\server\cli.py", line 444, in main
run()
File "userdir\.vscode\extensions\ms-python.python-2022.0.1814523869\pythonFiles\lib\python\debugpy/..\debugpy\server\cli.py", line 285, in run_file
runpy.run_path(target_as_str, run_name=compat.force_str("__main__"))
File "userdir\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "userdir\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "userdir\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "projectdir\test.py", line 11, in <module>
test.test =np.array([1,2,3])
File "projectdir\.test_venv\lib\site-packages\traitlets\traitlets.py", line 606, in __set__
self.set(obj, value)
File "projectdir\.test_venv\lib\site-packages\traittypes\traittypes.py", line 112, in set
obj._notify_trait(self.name, old_value, new_value)
File "projectdir\.test_venv\lib\site-packages\traitlets\traitlets.py", line 1224, in _notify_trait
type='change',
File "projectdir\.test_venv\lib\site-packages\traitlets\traitlets.py", line 1229, in notify_change
return self._notify_observers(change)
File "projectdir\.test_venv\lib\site-packages\traitlets\traitlets.py", line 1266, in _notify_observers
c(event)
File "projectdir\.test_venv\lib\site-packages\traitlets\traitlets.py", line 296, in _update_target
if getattr(self.source[0], self.source[1]) != change.new:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Using link with Array for numpy array results in the exception:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
traceback
NOTE: I have edited the directoriespip list
The text was updated successfully, but these errors were encountered: