Why does using a different IDE affect my raw.plot()?

Hello,

The Python interpreter closes immediately after opening the plot window, because the end of your script is reached. You have two ways to work around this:

  • Ensure execution is halted after plotting by passing block=True, i.e. raw.plot(block=True)
  • Or edit your PyCharm run configuration such that your script is run in interactive mode (which might be something you want when working with data interactively anyway!) by ticking the “Run with Python Console” box. See Create and edit run/debug configurations—PyCharm for more info on run configurations in PyCharm
3 Likes