# "Output messages" window stop working after running a macro that uses Matplotlib (MacOS)

**URL:** <https://discourse.paraview.org/t/output-messages-window-stop-working-after-running-a-macro-that-uses-matplotlib-macos/8837>\
**Category:** ParaView Support\
**Tags:** python\
**Created:** [January 25, 2022, 12:32am UTC](https://discourse.paraview.org/t/output-messages-window-stop-working-after-running-a-macro-that-uses-matplotlib-macos/8837 "2022-01-25T00:32:39Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)\
**Post date:** [February 3, 2022, 9:57am UTC](https://discourse.paraview.org/t/output-messages-window-stop-working-after-running-a-macro-that-uses-matplotlib-macos/8837/21 "2022-02-03T09:57:03Z")

</div>

Can you summarize the issue ?

---

<div class="post-metadata">

**Author:** ![Matheus\_Viana](https://discourse.paraview.org/user_avatar/discourse.paraview.org/matheus_viana/32/8428_2.png) [@Matheus\_Viana](https://discourse.paraview.org/u/Matheus_Viana)\
**Post date:** [February 3, 2022, 8:34pm UTC](https://discourse.paraview.org/t/output-messages-window-stop-working-after-running-a-macro-that-uses-matplotlib-macos/8837/22 "2022-02-03T20:34:57Z")

</div>

Sure! I have a Python macro that outputs some information about the data being visualized in the “Output Messages”. window. This macro also has a function that makes a plot using Matplotlib and saves it as a PNG file. However, after this function runs, the output messages windows stop working (nothing else is shown). I don’t see this issue in PV 5.9.

---

<div class="post-metadata">

**Author:** ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)\
**Post date:** [February 4, 2022, 8:58am UTC](https://discourse.paraview.org/t/output-messages-window-stop-working-after-running-a-macro-that-uses-matplotlib-macos/8837/23 "2022-02-04T08:58:33Z")

</div>

can you share a minimal example ?

---

<div class="post-metadata">

**Author:** ![Matheus\_Viana](https://discourse.paraview.org/user_avatar/discourse.paraview.org/matheus_viana/32/8428_2.png) [@Matheus\_Viana](https://discourse.paraview.org/u/Matheus_Viana)\
**Post date:** [February 4, 2022, 4:39pm UTC](https://discourse.paraview.org/t/output-messages-window-stop-working-after-running-a-macro-that-uses-matplotlib-macos/8837/24 "2022-02-04T16:39:52Z")

</div>

Here you go:

```auto
import matplotlib.pyplot as plt
print("Starting to make the plot.")
#fig, ax = plt.subplots();
print("Plot is complete.")

```

Nothing is shown in output messages window if I uncomment the line.

---

<div class="post-metadata">

**Author:** ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)\
**Post date:** [February 7, 2022, 8:05am UTC](https://discourse.paraview.org/t/output-messages-window-stop-working-after-running-a-macro-that-uses-matplotlib-macos/8837/25 "2022-02-07T08:05:31Z")

</div>

Unable to reproduce with ParaView 5.10.0 binary release

---

<div class="post-metadata">

**Author:** ![Matheus\_Viana](https://discourse.paraview.org/user_avatar/discourse.paraview.org/matheus_viana/32/8428_2.png) [@Matheus\_Viana](https://discourse.paraview.org/u/Matheus_Viana)\
**Post date:** [February 7, 2022, 6:43pm UTC](https://discourse.paraview.org/t/output-messages-window-stop-working-after-running-a-macro-that-uses-matplotlib-macos/8837/26 "2022-02-07T18:43:34Z")

</div>

Thank you for looking at this. Are you running on OS X or Windows? This seems to be exclusive of OS X…

---

<div class="post-metadata">

**Author:** ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)\
**Post date:** [February 7, 2022, 7:20pm UTC](https://discourse.paraview.org/t/output-messages-window-stop-working-after-running-a-macro-that-uses-matplotlib-macos/8837/27 "2022-02-07T19:20:23Z")

</div>

Linux. I’m afraid I have no idea about OS X.

---

<div class="post-metadata">

**Author:** ![todoooo](https://discourse.paraview.org/user_avatar/discourse.paraview.org/todoooo/32/2819_2.png) [@todoooo](https://discourse.paraview.org/u/todoooo)\
**Post date:** [February 8, 2022, 12:21am UTC](https://discourse.paraview.org/t/output-messages-window-stop-working-after-running-a-macro-that-uses-matplotlib-macos/8837/28 "2022-02-08T00:21:01Z")

</div>

> <https://stackoverflow.com/questions/2512225/matplotlib-plots-not-showing-up-in-mac-osx>

[Previous page](https://discourse.paraview.org/t/output-messages-window-stop-working-after-running-a-macro-that-uses-matplotlib-macos/8837.md?page=1)
