Home > other >  Suppress annoying terminal output junk from PyCharm
Suppress annoying terminal output junk from PyCharm

Time:09-22

I have been using pycharm-community for a while now on Ubuntu and even if I launch by sending the terminal output to the background

pycharm-community myfile.py &

The junk output generated by PyCharm still fills my terminal and I find this really annoying, is there any way to suppress this junk from PyCharm? And what is the reason why the developers of PyCharm built it this way? I mean to force the junk on users terminal even if they don't want to view it?

CodePudding user response:

Just redirect your output and error streams to /dev/null like you would do for any other command whose output you're not interested in:

pycharm-community myfile.py > /dev/null 2>&1

As to the following:

And what is the reason why the developers of pycharm built it this way? I mean to force the junk on users terminal even if they don't want to view it?

One man's trash is another man's treasure. What you call junk is effectively useful to some people. Maybe the developers assumed that command line users would know how to redirect their output and error streams.

  • Related