During a lecture last week SMC decided to not allow me to scroll up in a Terminal window so we could view the output of
$ python test_homework1.py
i.e. the Homework 1 test script output. Not sure what happened there but if it happens to you a possible solution (outside of restarting SMC) is to use some fancy terminal commands.
The terminal command
$ python test_homework1.py 2> out.txt
will take the output of python test_homework1.py and write the text to a file called out.txt. You can then view the contents of out.txt using your favorite method:
open out.txt using the SMC file viewer
$ less out.txt
$ emacs out.txt
...etc etc etc
Depending on how SMC behaves tomorrow I might end up using this technique.
During a lecture last week SMC decided to not allow me to scroll up in a Terminal window so we could view the output of
i.e. the Homework 1 test script output. Not sure what happened there but if it happens to you a possible solution (outside of restarting SMC) is to use some fancy terminal commands.
The terminal command
will take the output of
python test_homework1.py
and write the text to a file calledout.txt
. You can then view the contents ofout.txt
using your favorite method:out.txt
using the SMC file viewer$ less out.txt
$ emacs out.txt
Depending on how SMC behaves tomorrow I might end up using this technique.