16 ms·
orgmode + org-babel comes really close, but I feel like org just doesn't get much traction outside of Emacs,because markdown is good enough.
by sp33der89 4y ago
orgmode + org-babel comes really close, but I feel like org just doesn't get much traction outside of Emacs,because markdown is good enough.
- abdullahkhalids 4y agoThis [1] looks ugly and distracting. #+begin_src R :colnames yes words <- tolower(scan("intro.org", what="", na.strings=c("|",":"))) t(sort(table(words[nchar(words) > 3]), decreasing=TRUE)[1:10]) #+end_src Is it possible to have minimal syntax for these code blocks? Markdown is nice because it looks clean, and the syntax does not get in the way. Markdown codeblocks are ``` code ``` [1] https://orgmode.org/worg/org-contrib/babel/intro.html#source-code-blocks https://orgmode.org/worg/org-contrib/babel/intro.html#source...
- xlii 4y agoYou could, for example, use Python which I believe would be clearer than this R mess ;-) Joking aside though, if src block header (which can have a lot of options set up including specifying environment, tangling other block variable of setting totally separate interpreter version) is huge problem there are plethora of presentation customization. Emacs allows customizing face and more. Org-modern [1], for example, uses font signatures and fringes for making it less “technical” [1]: https://github.com/minad/org-modern https://github.com/minad/org-modern
- natrys 4y agoYou could put all the common headers in a property drawer of top-level heading, and all child source code blocks inside that heading will inherit them. * Notebook :PROPERTIES: :header-args:R: :colnames yes :END: #+begin_src R words <- tolower(scan("intro.org", what="", na.strings=c("|",":"))) t(sort(table(words[nchar(words) > 3]), decreasing=TRUE)[1:10]) #+end_src As for making the block delimiter look different, there are various ways of making the text display differently from the actual text. For example, you could use the built-in `prettify-symbol-mode` with this config: (setq prettify-symbols-alist '(("#+begin_src" . ?) ("#+end_src" . ?―))
- perihelions 4y agoI'd expect there will be a lot of new solutions coming soon, because Polymode [0] seemingly solves the hard problem the org-babel struggles against. The immiscible major modes, and all that extra syntax and buffer-switching that org-babel needs to work around that problem. [0] https://www.masteringemacs.org/article/polymode-multiple-major-modes-how-to-use-sql-python-in-one-buffer https://www.masteringemacs.org/article/polymode-multiple-maj...
- luispauloml 4y agoThere is EIN, which indeed uses Polymode, and of which I am a happy user: http://millejoh.github.io/emacs-ipython-notebook/ http://millejoh.github.io/emacs-ipython-notebook/