- Is there a way to split the screen so that the code is visible on top, and the output generated from its execution appears at the bottom?
- Is there any way to clear the screen from previous runs, so that the result of execution is presented in a clean screen, something like the
clscommand in BASIC?
quick&dirty&buggy solution for your two wishes, although I strongly suggest you to do you works the way as the notebook interface designed to.
Cls := (SelectionMove[InputNotebook, All, Notebook]; FrontEndExecute[FrontEndToken["Clear"]]); $Post = (If[Head@$outputNB == Symbol, $outputNB = CreateNotebook]; If[# === Null, 1;, Paste[$outputNB, #]]) &;
Cls is the screen-cleaning command, it deletes all the cells in current notebook. Then the
$Post variable is modified to redirect all the outputs.