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
Currently, our Black support is only for Python files and does not extend to Jupyter notebooks, which also contain Python code. There are several tools out there for applying black formatting to Jupyter notebooks, most of which are only accessible through the Jupyter notebook or Jupyterlab environment. A notable exception is black-nb, which looks to do almost exactly what we want -- I was able to reformat a notebook and check it through the command line.
However, it is a pretty small project and so some features are missing. Notably, it is not compatible with the most recent version of black, and it cannot currently be easily used as a pre-commit hook. I've made issues on that project to track those issues. If they're solved quickly then we should adopt black-nb; if not, we should think about either helping maintain the project, fork it, or some similar solution. Note that the project is only around 500 lines of Python code, so helping out should not be a big burden for us.
The text was updated successfully, but these errors were encountered:
Currently, our Black support is only for Python files and does not extend to Jupyter notebooks, which also contain Python code. There are several tools out there for applying
black
formatting to Jupyter notebooks, most of which are only accessible through the Jupyter notebook or Jupyterlab environment. A notable exception is black-nb, which looks to do almost exactly what we want -- I was able to reformat a notebook and check it through the command line.However, it is a pretty small project and so some features are missing. Notably, it is not compatible with the most recent version of black, and it cannot currently be easily used as a pre-commit hook. I've made issues on that project to track those issues. If they're solved quickly then we should adopt
black-nb
; if not, we should think about either helping maintain the project, fork it, or some similar solution. Note that the project is only around 500 lines of Python code, so helping out should not be a big burden for us.The text was updated successfully, but these errors were encountered: