Skip to content

Preventing stderr from showing in the DOM #2006

Answered by WebReflection
ross-spencer asked this question in Q&A
Discussion options

You must be logged in to vote

you can specify !error in plugins 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:

<py-config>
plugins = ["!error"]
</py-config>

should remove that from the DOM

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ross-spencer
Comment options

@WebReflection
Comment options

@ross-spencer
Comment options

@WebReflection
Comment options

Answer selected by WebReflection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants