Unable to format code cell (no formatter for 'polyglot-notebook' files)
Describe the bug
When trigger "Format document" (alt+shift+f), VS Code prompts
There is no formatter for 'polyglot-notebook' files installed."
Same result with both .ipynb and .dib.
Please complete the following:
Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ):
Version: 1.0.510102+2c9feb8daff54c194b638d355d18b5428480a786
Library version: 1.0.0-beta.24101.2+2c9feb8daff54c194b638d355d18b5428480a786
Build date: 2024-02-13T16:52:04.4164793Z
- OS
- [x] Windows 11
- [ ] Windows 10
- [ ] macOS
- [ ] Linux (Please specify distro)
- [ ] iOS
- [ ] Android
- Browser
- [ ] Chrome
- [ ] Edge
- [ ] Firefox
- [ ] Safari
- Frontend
- [ ] Jupyter Notebook
- [ ] Jupyter Lab
- [ ] nteract
- [x] Visual Studio Code
- [ ] Visual Studio Code Insiders
- [ ] Visual Studio
- [ ] Other (please specify)
Screenshots
If applicable, add screenshots to help explain your problem.
I exactly have the same problem.
Same problem for me. When working in an F# project, Ionide formats my code. When in Polyglot, I get the same message. For Python in Jupyter notebooks, the Black Formatter works.
up.
i have same problem.
Version: 1.0.522904+cdfa48b2ea1a27dfe0f545c42a34fd3ec7119074
Library version: 1.0.0-beta.24229.4+cdfa48b2ea1a27dfe0f545c42a34fd3ec7119074
Build date: 2024-05-07T02:45:57.5641864Z
https://github.com/dotnet/interactive