0.0.2 • Published 3 years ago

run-the-docs v0.0.2

Weekly downloads
-
License
MPL
Repository
github
Last release
3 years ago

Run the Docs

npm badge jsdelivr badge Discord badge Twitter Follow badge

Installation

$ npm install --save run-the-docs

props

namedefaultvaluesdescription
packages[]Array: package names currently avalable in PyodideUses Pyodide's loadPackage() to preload packages
consoletrueBoolean: true or falsefalse disables the HTML console which displays the results.
edittrueBoolean: true or falsefalse disables the textarea input while still allowing the embedded code to be run.
scopefalseBoolean: true or falsetrue creates a new Repl() for the component with its own Python context. false shares the Repl() context between editors globally, i.e. one editor can reference variables from another.
onResultundefinedFunction: function expression or referencecallback function that receives the results when the code is run. (res, err) => { ... }
codeundefinedString or template literalplaceholder code that populates the editor component on initialization.

Contributing/Requests

Open an issue or post a message in the chatroom. If you would like to contribute to the project (code, documentation, tutorials, etc.) see the contributing guide for how to get started 🙌

License

Run the Docs uses the Mozilla Public License Version 2.0.