2021-04-07 10:24 GMT+02:00, Moritz Lürig <
moritz...@gmail.com>:
> TL;DR can we have hard wrapping of lists to a specific length in the
> editor?
>
> I am often working with lists that are longer than 79 characters, e.g.
> column names of wide pandas dataframes, which I sometimes need to hardcode
> in the script for reproducibility. I do this by printing the lists in the
> console, and then copying them back to the editor. however, in the console
> they wrap after each item, so that they take a lot of space vertically. I
> then have to copy them to another editor (e.g. notepad++), remove all
> linebreaks, an then manually wrap them by adding line breaks. this is
> tedious, and I was wondering whether we could have this functionality in
> Spyder to make our scripts more readible, and adhere PEP formatting
> suggestions?
You could use black or yapf or.... to format your files. Spyder
shouldn't dictate how your code should look. It is better to separate
for Spyder 3.x [1]. It shouldn't be difficult to update it to be