How to output a graphic or plot to a second notebook

Here I have a scenario where in need of help.

I have a computer system with two monitors configuration. I will like to have the output from an input plot of the graphic function send to another notebook (windows). The reason is that I want to display the main notebook (with the input code) showing in one screen and all the output to a second notebook positioned in a second screen.

Not sure how to code the input command.

Hi Jose,

since expressions are global you can change a value in one notebook and it will be updated in the other notebook automatically.

Setting x = 4 in another notebook yields:

Setting x = 2 yields:

outputnb=NotebookCreate[];
$DisplayFunction=(NotebookWrite[outputnb,{Cell[BoxData@ToBoxes@#,"Output"]},After]
)&;
Plot[Sin[x], {x, 0, 122}]