IPython Notebook: how to display() multiple objects without newline
问题 Currently when I use display() function in the IPython notebook I get newlines inserted between objects: >>> display('first line', 'second line') first line second line But I would like the print() function's behaviour where everything is kept on the same line, e.g.: >>> print("all on", "one line") all on one line Is there a method of changing display behaviour to do this? 回答1: No, display cannot prevent newlines, in part because there are no newlines to prevent. Each displayed object gets