nbviewer.js icon indicating copy to clipboard operation
nbviewer.js copied to clipboard

Find out what languages to implement

Open kokes opened this issue 9 years ago • 0 comments

This relates to Prism.js (our current highlighter). Shall we hotload language support from a CDN or should we just bundle the most popular languages (Python, Julia, R, Haskell?).

The former makes the viewing tool leaner, but does not allow for offline use and involves a lag if language spec isn't cached. The latter allows for compact definitions and fewer HTTP calls since you can create bundles on the Prism website. But since these are custom, we'd need to vendor this. And there'd be no support for other languages, unless we hotloaded them.

And that might be a good compromise - to bundle the most popular languages and hotload any unsupported ones.

(A good way to survey language popularity in Jupyter would be to search BigQuery, which has all the code and reportedly hundreds of thousands of notebooks.)

kokes avatar Aug 06 '16 10:08 kokes