Ask coding questions

← Back to all posts
Is thare a way of running HTML, CSS and JS files in an python repl?
idksolol (2)

I'm working on an discord bot wish (if it is posseble) includes an website for an status. I already tried to use the .repl file but I cannot find the language name of the HTML, CSS and JS files (the python language name is python3 for axample), can you guys may help me??

Coder100 (18118)

Try this!

run = "npx static-here"

HTML repls arent really repls, they are some hacked version

idksolol (2)

@Coder100 what can I fill in as the static?

MikeJMS8910 (160)

You can make a new file in the python one and add a .html for an HTML file, .css for a css file and a .js for a javascript file

idksolol (2)

@MikeJMS8910 I did but i'm trying to run those files. If you are just creating them it will not mean they will run tho!

MikeJMS8910 (160)

@idksolol hmm i dont know if there is any way to run them. But there probably is a module you can import that allows you to run them.