jupyterlab_code_formatter icon indicating copy to clipboard operation
jupyterlab_code_formatter copied to clipboard

A JupyterLab plugin to facilitate invocation of code formatters.

Results 66 jupyterlab_code_formatter issues
Sort by recently updated
recently updated
newest added

Recent added server extension test, need to figure out how to test the lab extension itself now..

Hi there, can we set it to auto format code when auto save the notebook?

Hi, I was wondering if there was an ability to autoformat the cell on execution. I used to use `lab_black` and by adding: `%load_ext lab_black` At the top of the...

**Checklist prior to opening an issue** - [ ] I have followed fully the installation steps laid out in the documentation site. - [ ] I have restarted jupyterlab. -...

This PR is to add config options for the extension that allow for custom isort sections ([ref](https://pycqa.github.io/isort/docs/configuration/custom_sections_and_ordering.html)). It also updates the isort default config to match the isort black profile,...

This PR adds the fix I suggested in #331 to ensure compatibility with ruff 0.1.0+. I've confirmed it works with version 0.1.15. I also added the ruff formatter itself, as...

As of [ruff v0.1.2](https://github.com/astral-sh/ruff/releases/tag/v0.1.2) it supports formatting as well as linting. It would be great to support this natively. There is a walkthrough [here](https://gist.github.com/jbwhit/eecdd1cac2756df85ad165f437445b0b) with a workaround, but I couldn't...

Hello, The Code Formatter can work on the default ipykernel (Python3), however, after I add another independent kernel (R 4.2.1), it returned error, even though I used the same format....

Not sure what I did wrong here. My Python version is 3.11.5/Conda version 23.7.4, finished pip installing the formatter and the black isort then tried to format my code. Thanks!...

This concerns using `ruff check --fix` to fix code (#296) instead of the new `ruff format` command. Since ruff 0.1.0, the functionality no longer works. This is because since https://github.com/astral-sh/ruff/pull/7838,...