3 ms·
This concept sounds quite a bit like the usage of .mdx files in OCaml. Those are markdown files which can load and execute OCaml code in them. They are useful
by zogrodea 3y ago
This concept sounds quite a bit like the usage of .mdx files in OCaml. Those are markdown files which can load and execute OCaml code in them.
They are useful for unit testing code like libraries, providing usage examples for end-users (as well as the text format markdown usually supports) and testing it at the same time. Definitely a great idea for documentation, and one which I should use more of.
https://github.com/realworldocaml/mdx https://github.com/realworldocaml/mdx
- aayushmau5 3y agoApart from running code inside a "markdown" file, livebook can do much more. You have Smart cells to show charts, run sql queries against a db, run Neural Network tasks such as Image-To-Text generation using Bumblebee[1], etc. It is collaborative as well. [1] https://github.com/elixir-nx/bumblebee https://github.com/elixir-nx/bumblebee
- rahimnathwani 3y agoAfter reading your comment, I watched the first half of this video: https://youtu.be/4hVIxyHxwK8 https://youtu.be/4hVIxyHxwK8 Wow!
- rapnie 3y agoYes, more uptake of mdx in general. E.g. I use Astro static site generator and they offer it too. https://docs.astro.build/en/guides/markdown-content/ https://docs.astro.build/en/guides/markdown-content/