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
When I ran %reload_ext lab_black in my Jupyterlab, I got an error message:
ERROR:root:__call__() missing 1 required positional argument: 'value'
Traceback (most recent call last):
File "/opt/anaconda3/lib/python3.7/site-packages/lab_black.py", line 218, in format_cell
formatted_code = _format_code(cell)
File "/opt/anaconda3/lib/python3.7/site-packages/lab_black.py", line 29, in _format_code
return format_str(src_contents=code, mode=FileMode())
TypeError: __call__() missing 1 required positional argument: 'value'
Here's line 29:
Here's line 218:
Which function misses what argument? Also, I just updated to Jupyterlab to 2.1.0 so I don't know if there are weird incompatibility issues. Did anyone encounter this? Thanks!!
The text was updated successfully, but these errors were encountered:
I have been receiving the same error as well. I doubt if it has anything to do with compatibility of the version. Anyway currently I am using JupyterLab version 1.2.16
This is caused by having an old version of black. pip install -U black fixed it for me. To the maintainers: I don't know when black changed the API for FileMode() but moving from version 18.6b4 to 19.10b0 made this error go away.
When I ran
%reload_ext lab_black
in my Jupyterlab, I got an error message:Here's line 29:
Here's line 218:
Which function misses what argument? Also, I just updated to Jupyterlab to 2.1.0 so I don't know if there are weird incompatibility issues. Did anyone encounter this? Thanks!!
The text was updated successfully, but these errors were encountered: