quarto in the browser

Aperta
#263 5 commenti 4 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
deno, javascript, lua, r, sass, wasm
Ambito
tooling, web-dev

Direzione di ricerca

No specific file, test, or entry point is named. Start by mapping the quarto-cli dependencies discussed here—Deno, Pandoc, esbuild, Sass, Lua, and R—and assess which browser-compatible implementations exist; done would be a documented decision about whether browser execution is a project goal and what work it requires.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

It'd be neat to run Quarto in the browser, I'm wondering if this is a design goal or perhaps if it's explicitly not. I just found some notes I wrote up a few months ago about various quarto-cli deps:

Deno

It's a goal of Deno to be browser-compatible.

  • any reference to the global Deno namespace would need not to be used?
  • maybe something like denopack is supposed to be used?

esbuild is probably the way to go here? And factoring stuff out?

Pandoc

There's an Asterius-built pandoc executable available at https://asterius.netlify.app/demo/pandoc/pandoc.html but I haven't found the code that builds it.

There's an old GHCJS-compiled pandoc too.

It's not clear that either of these keep the lua functionality intact? There's been lots of back and forth trying to get the C bits out of pandoc, but currently there are C dependencies. The lua filters seem to be integral to Quarto. There are definitely Emscripten builds of Lua out there, but the integration might be tricky.

ESBuild

Is this maybe a runtime dependency? there's a wasm version available at esbuild-wasm on npm, see https://esbuild.github.io/getting-started/#wasm

SASS

There's a version of SASS compiled to JavaScript on npm.

R

I heard from Pyodide folks that discussions of compiling R to the browser petered out because there was so much Fortran involved. It seems like R isn't required to run to run Quarto at all, but I want to check because when commands like quarto serve error on my if I don't have Shiny R library installed, suggesting there's some R in there somewhere. edit: I misunderstood what quarto serve does, it's explicitly for Shiny apps.

Lingua principale
JavaScript
Stelle
6k
Fork
458
Merge medio
1g 9h
PR unite (30g)
41

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di quarto-dev/quarto-cli

Tutte le issue di quarto-dev/quarto-cli

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.