UNPKG

@webwriter/code

Version:

Write and run code as a code cell. Supports several languages (HTML, JavaScript/TypeScript, Python, Java, WebAssembly).

14 lines (12 loc) 435 B
import { localized } from "@lit/localize"; import { customElement } from "lit/decorators.js"; import Code from "../shared/ww-code-template"; import { pythonModule } from "./languageModules/pythonModule"; /** Code widget for Python with execution capabilities using Pyodide. */ @customElement("webwriter-code-python") @localized() export default class CodePython extends Code { constructor() { super(pythonModule); } }