There is a problem, while I am performing codes on a console

There is a problem, while I am performing codes on a console. Scala is shown being written again and again.
Kindly verify it for yourself ,I have highlighted the problem in the attached image.

scala

Hi,

User Jupyter notebook scala.ipynb in your home folder for better understanding.

All the best!