How to set max output width in numpy?
问题 I am using a Jupyter notebook. I have a pretty wide screen, but the displayed output (say, when I print a numpy array) is formatted as if the screen was narrow. I found a way of increasing the width of the cells, with from IPython.core.display import HTML HTML("<style>.container { width:95% !important; }</style>") but this seems to influence the input only, not the output (see screenshots): I've tried setting the linewidth option in numpy.set_printoptions , I've tried setting numpy.core