About printing and suppressing output #1843
germa89
started this conversation in
Tips and Tricks
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In PyMAPDL there are several ways to suppress the command output given by PyMAPDL.
mute=True
. This uses the gRPC optionmute
. This is implemented in the gRPC API, meaning that PyMAPDL won't receive under any circumstance any output from MAPDL. The command is executed and no output is transferred to the PyMAPDL client./NOPR
. This is an MAPDL command which basically suppress all the console/terminal output. However, MAPDL will still transfer a string, just empty (''
). The/NOPR
can be deactivated using/GOPR
. The command/NOPR
is by default ignored. You need to usemapdl._run("/NOPR")
to run it.This was discovered when working
pymapdl-examples
repository, where accidentally a/NOPR
command was issued.Beta Was this translation helpful? Give feedback.
All reactions