I am trying to enforce formatting on .ipynb files from VSCode. My settings.json looks like this:
{
"editor.formatOnSave": true,
"python.formatting.provider": "black",
"python.formatting.blackPath": "C:\\Python\\3.6.8\\Scripts\\black.exe",
}
VSCode's Python extension is installed as well as black and black[jupyter] (path above is correct). This works fine for regular .py files but not for .ipynb (nothing happen upon save).
I've tried to associate .ipynb files to Python, it didn't work either:
"files.associations": {
"*.ipynb": "python"
}
Any clue ?