You are not logged in.

#1 2022-01-28 13:26:17

ezacaria
Member
Registered: 2007-12-10
Posts: 113

[solved] ipython shell splits lines into unwanted multiple lines

The ipython shell started to break up lines with multiple commands.

For example, "a = 3; print(a)" will be split to two lines after hitting enter (one with "a=3", followed by "print(a)" in a second line).

When revisiting the line via history (arrow up or search), a multi-line is found instead of the original single line.
I personally prefer the old behaviour where lines where found as one had typed them (and long lines wrapped around the terminal edge still being a single line).

This happens with the current ipython 8.0.1.
I rebuilt the package using the previous PKGBUILD from github (7.31.0) and the behaviour is back to the old non-line-splitting one.

I tried to look at the changes in the code between those two releases, but came up empty handed. Similarly, I did not find any details when looking for the release notes.

Any ideas?

Last edited by ezacaria (2022-01-28 13:57:13)

Offline

#2 2022-01-28 13:43:12

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,295

Re: [solved] ipython shell splits lines into unwanted multiple lines

Offline

#3 2022-01-28 13:56:57

ezacaria
Member
Registered: 2007-12-10
Posts: 113

Re: [solved] ipython shell splits lines into unwanted multiple lines

Hummm, "reformat" can mean a number of things.

But thanks for the pointer, I will either make an alias or find the config file to set this "--TerminalInteractiveShell.autoformatter=None" option.

Incidentally, ipython itself pulls python-black. However, the new default behaviour does not occur in the jupyter-qtconsole, which uses ipython, even when python-black is present.

Offline

Board footer

Powered by FluxBB