Closed danielcs88 closed 3 months ago
Hi Daniel,
With 2.8.0, euporie changed to use external tools for formatting to allow formatting languages other than Python.
If you want to use black
, you'll need to update your config as follows:
{
"notebook": {
"syntax_theme": "dracula",
"autocomplete": true,
"autoformat": true,
"line_numbers": true,
"background_pattern": 4,
"enable_language_servers": true,
"expand": false,
"color_scheme": "default"
},
"formatters": [
{
"command": ["black", "-"],
"languages": ["python"]
}
]
}
I'm planning on making it possible to configure in the UI in the future 👍
Worked flawlessly, thanks @joouha !
Autoformat (Settings -> Code tools -> ✓ Autoformat) is not working for me.
I have this long line function
If autoformatted (with Black) this would convert into:
My config file is