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
nbblack version: nbblack, version 0+untagged.9.gc36d102
Python version: 3.7.4
Operating System: Arch Linux
Description
I faced an issue while running nbblack from the terminal on a simple notebook and faced an error reported below.
What I Did
> nbblack notebook.ipynb
Traceback (most recent call last):
File "/home/fat-fighter/software/conda/envs/ml/bin/nbblack", line 11, in <module>
load_entry_point('nbblack==0+untagged.9.gc36d102', 'console_scripts', 'nbblack')()
File "/home/fat-fighter/software/conda/envs/ml/lib/python3.7/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/home/fat-fighter/software/conda/envs/ml/lib/python3.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/fat-fighter/software/conda/envs/ml/lib/python3.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/fat-fighter/software/conda/envs/ml/lib/python3.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/fat-fighter/software/conda/envs/ml/lib/python3.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/fat-fighter/software/conda/envs/ml/lib/python3.7/site-packages/nbblack-0+untagged.9.gc36d102-py3.7.egg/nbblack/cli.py", line 150, in main
nb = blacken_notebook_contents(notebook.read())
AttributeError: 'PosixPath' object has no attribute 'read'
Would really appreciate some help with this. Also, thanks for creating this plugin. It is my first time using it so I might be using it incorrectly.
The text was updated successfully, but these errors were encountered:
Description
I faced an issue while running nbblack from the terminal on a simple notebook and faced an error reported below.
What I Did
Would really appreciate some help with this. Also, thanks for creating this plugin. It is my first time using it so I might be using it incorrectly.
The text was updated successfully, but these errors were encountered: