##// END OF EJS Templates
add whats new
Matthias Bussonnier -
Show More
@@ -0,0 +1,24 b''
1 Code autoformatting
2 ===================
3
4 The IPython terminal can now auto format your code just before entering a new
5 line or executing a command. To do so use the
6 ``--TerminalInteractiveShell.autoformatter`` option and set it to ``'black'``;
7 if black is installed IPython will use black to format your code when possible.
8
9 IPython cannot always properly format your code; in particular it will
10 auto formatting with *black* will only work if:
11
12 - Your code does not contains magics or special python syntax.
13
14 - There is no code after your cursor.
15
16 The Black API is also still in motion; so this may not work with all versions of
17 black.
18
19 It should be possible to register custom reformatter, though the API is till in
20 flux.
21
22
23
24
General Comments 0
You need to be logged in to leave comments. Login now