Spark notebooks sometimes output only single line. I dont see this behavior with python notebooks

Eg: print(“hello”)
print(“hello”)
print(“hello”)

Output : hello