Option to run Sage cells in the browser using WebAssembly instead of the Sage Cell Server

Open
#2,803 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
wasm
Domain
frontend

Research direction

No implementation files are named; start by locating how PreTeXt currently emits Sage cells and where the Sage Cell Server endpoint is chosen. Compare that with the linked passagemath-JupyterLite demo to see what a WebAssembly-backed cell needs, then define an author-facing option and test it against an existing PreTeXt document with Sage cells. Done means Sage cells can run in the browser without the server, with the current server path still available.

Written by the indexing model from the issue text.

Description

A part of the functionality of Sage is available for serverless in-browser execution using WebAssembly. https://passagemath.org/passagemath-jupyterlite-demo/lab/index.html

This can reduce latency, eliminate the availability issues with the Sage Cell Server, and enable interactive computational widgets.

(https://pretextbook.org/support.html suggests to discuss ideas on the Google Groups prior to submitting issues, but my request to join pretext-dev was denied.)

Dominant language
XSLT
Stars
466
Forks
251
Avg merge
4m
Merged PRs (30d)
13

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PreTeXtBook/pretext

All issues in PreTeXtBook/pretext

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.