I was looking at the some more pythonanywhere docs and came across a way to do an embeddable console.

That seemed like an interesting trick, so I put it in a post. Only problem, it doesn’t show up. Instead there is a comment in the generated HTML that says Raw HTML omitted.

I did a bit of searching around the Hugo site and found that you can make it work if you add the following to your config.toml:

[markup.goldmark.renderer]
unsafe = true

Now I have a (smallish) Python console in an iframe below. Kinda neat.

python