Terminal.js is a lightweight, easy to use terminal interface for the web. (Note: This does not actually run Javascript code) Currently, terminal.js has only been tested on HTML, but it should work on other platforms.
Manually add the CSS and JS files to your project (make sure to also make a fake window in html to "host" the commands in) (Example in code)
or pip install terminaljs
(not supported yet)
I'll add this soon...