Interactive Tangle-like markdown documents #881
Unanswered
jqhoogland
asked this question in
Ideas
Replies: 1 comment
|
Alright, I've thrown together an alpha version. It takes something like this: and returns something like this: You just run the plugin after More to come. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
A few years ago, Bret Victor had a really good idea about interactive documents.
Here's a sample (see also the dynamic original):
`
By clicking and dragging the items in green, you update the resulting figures in blue.
Sort of like a lightweight Jupyter/R/Wolfram/Observable notebook with inline inputs and calculations.
Victor published a little vanilla JS library of his own to help people implement this: Tangle. The problem is that it still requires you to write raw HTML+JS if you want to integrate it.
So after Victor's proposal, a few people went ahead and came up with markdown extensions to make writing these interactive documents easier: TangleDown, Fangle, Active Markdown, and Dynamic Markdown.
These all have some merits, but none are quite complete:
So I'd like to write up a little plugin ("remark-tangle"?) to make this a little more accessible.
EDIT: I think something like remark-directive is probably the best way forward.
One example would be:
:t[50. cal.]{calories_per_cookie=[0..200;10]}0to200(inclusive) with step size10.50%.0f cal.(determined automatically from50 cal.:t[150. cal.](calories=3*calories_per_cookie):t[%.0f cal]{calories_per_cookie}All reactions