# How to output a graphic or plot to a second notebook

**URL:** <https://community.wolfram.com/t/how-to-output-a-graphic-or-plot-to-a-second-notebook/1315>\
**Category:** Questions\
**Tags:** software-development, mathematica, computational-notebooks\
**Created:** [January 21, 2014, 10:45am UTC](https://community.wolfram.com/t/how-to-output-a-graphic-or-plot-to-a-second-notebook/1315 "2014-01-21T10:45:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![josecalderon](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/josecalderon/32/34904_2.png) [@josecalderon](https://community.wolfram.com/u/josecalderon)\
**Post date:** [January 21, 2014, 10:45am UTC](https://community.wolfram.com/t/how-to-output-a-graphic-or-plot-to-a-second-notebook/1315/1 "2014-01-21T10:45:49Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![mathematicaengineering](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mathematicaengineering/32/15926_2.png) [@mathematicaengineering](https://community.wolfram.com/u/mathematicaengineering)\
**Post date:** [January 21, 2014, 11:39am UTC](https://community.wolfram.com/t/how-to-output-a-graphic-or-plot-to-a-second-notebook/1315/2 "2014-01-21T11:39:53Z")

</div>

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:

 ![ScreenShot2014-01-21at12.34.40.png](https://global.discourse-cdn.com/wolfram/original/3X/5/9/59c08de6e8a554d0cd37e0ec4e51b63f2bdd1117.png)

Setting x = 2 yields:

 ![ScreenShot2014-01-21at12.35.56.png](https://global.discourse-cdn.com/wolfram/original/3X/a/4/a471247caaf0a865b630d7f85beb179147ddfc00.png)

---

<div class="post-metadata">

**Author:** ![rolfm](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/rolfm/32/35274_2.png) [@rolfm](https://community.wolfram.com/u/rolfm)\
**Post date:** [January 21, 2014, 3:48pm UTC](https://community.wolfram.com/t/how-to-output-a-graphic-or-plot-to-a-second-notebook/1315/3 "2014-01-21T15:48:29Z")

</div>

```auto
outputnb=NotebookCreate[];
$DisplayFunction=(NotebookWrite[outputnb,{Cell[BoxData@ToBoxes@#,"Output"]},After]
)&;

```

```auto
Plot[Sin[x], {x, 0, 122}]

```
