Package Exports
- @dodona/papyros
- @dodona/papyros/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@dodona/papyros) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Papyros
Papyros is a programming scratchpad in the browser. It allows running code directly in your browser, no installation required. Right now, the focus in on providing a great experience for Python, while also supporting JavaScript. By taking away obstacles between students and coding, the learning experience becomes smoother and less error-prone.
Currently, Papyros provides support for the following programming languages:
- Python, powered by Pyodide
- JavaScript, powered by your browser
Using Papyros in your own project
You can install Papyros on your system using npm:
npm install -g @dodona/papyrosPapyros currently supports two modes of operation: stand-alone and embedded.
In stand-alone mode, Papyros runs as a full application in the browser. This includes extra UI elements to allow selecting a locale, a programming language, ...
In embedded mode, the layout is reduced to the minimum. Dynamic selections are not displayed, as the user knows for what purpose Papyros is being used. For example, when used in the scope of a Python exercise in Dodona, there is no need to support other programming languages. The locale should also match that of the actual application.
The easiest way to initialize Papyros is by using the static method Papyros.fromElement. This method expects a parent element that wraps the scratchpad and a PapyrosConfig object. The following options are supported:
- standAlone: Whether to operate in stand-alone or embedded mode as described above.
- locale: The locale to use, currently English and Dutch translations are provided.
- programmingLanguage: The language to use in the CodeEditor and Backend
Documentation
Visit our web page at https://docs.dodona.be/papyros/.
Building and developing
Clone the repository using git.
git@github.com:dodona-edu/papyros.gitInstall the required dependencies.
yarn installStart the local dev-server, powered by webpack.
yarn startYou can now develop with live-reloading. You can view the results in your browser by visting http://localhost:8080.
Try it online
Start coding immediately in your browser.