I tested PyCharm and IDLE, both of them print the 7th number to a second line.
Input:
import numpy as np
a=np.array([ 1.02090721, 1.02763091, 1.03899317, 1.00630297, 1.00127454, 0.89916715, 1.04486896])
print(a)
Output:
[ 1.02090721 1.02763091 1.03899317 1.00630297 1.00127454 0.89916715
1.04486896]
How can I print them in one line?
linewidthto 1000 and it didn't help because it wasn't a 1D array. For this question, the answer is just to setlinewidth. (Plus, that questioner wanted the list equivalent, this one doesn't.)