Preventing stderr from showing in the DOM #2006
-
I have been using a 2022 version of Pyscript but have recently upgraded and now see stderr is output in the DOM. Does anyone know how to control this? The script is downloaded from a wheel and its stdout is printed to the DOM, but stderr should be going to the console only. I have been looking but can't find answers in previous issues or the docs. (But of course I could be missing it) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
you can specify In short: <py-config>
plugins = ["!error"]
</py-config> should remove that from the DOM |
Beta Was this translation helpful? Give feedback.
you can specify
!error
inplugins
and you'll see it only in the console and never on the DOM ... we've been discussing this forever and the conclusion is that not every PyScript user even knows the existence of devtools / console so we decided that having errors on the DOM was the easiest way to both spot these and eventually learn about devtools.In short:
should remove that from the DOM