Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

[spoiler alert: emacs evangelism]

Org mode + babel allows exactly for this sort of literate programming notebooks.



That doesn't solve my problems though. F# notebooks with Polyglot Notebooks or Elixir notebooks with Livebook, which are what I use, are much more advanced than Jupyter notebooks and likely anything Emacs provides.

For example, in a Polyglot Notebook in VS Code, I can freely mix markdown, F#, C#, JavaScript, HTML, Python, LaTeX, Mermaid diagrams, images, and more.

I can only assume Emacs provides nothing close to this.


Your assumption is incorrect, I don't know how it works is VSCode, but what you described is exactly my flow in Emacs org-mode.

I can even annotate my code blocks to execute on remote machines, or to "tangle" my code blocks together to deploy standalone files my local or remote machines.

The meta language in tangle let's me reuse code snippets for machine specific configurations. I can almost replace my DevOps workflows with Emacs Org-mode.

It takes practice to use, and the documentation isn't very good though. Too terse for my preferences, but ChatGPT is really good at helping me understand.


>Your assumption is incorrect, I don't know how it works is VSCode, but what you described is exactly my flow in Emacs org-mode.

I doubt it. Care to post a GIF/video of a session with interactive html/js and plotting in org.mode?


You can display images, including interactive ones, rendered LaTeX and diagrams, and arbitrary HTML/CSS/JavaScript inside "notebooks" in Emacs?


Yes and read email, organize a file system, shell into the file system in Bash (or Lisp)…

…basically, “yes” is the most likely answer to “can eMacs…?”

(Though I am not sure about the current state of web browsing.)


I don't think the parent asks "what is available in Emacs in different places" or "what is theorically possible", but whether org mode has feature parity with what he uses, and the answer is not.

There might be a way to have plots inside org mode (e.g. org-plot) but you don't have "arbitrary html/js" plots (except as links to other in a browser, and I doubt you get even close to the same level of interactivity.

And even what you get regarding plotting is not turn-key that way VSCode Jupiter and Polyglot are.


Thanks for getting it. Steps to run my F# or Elixir notebooks are:

* Install F# or Elixir

* Install the Polyglot Notebook extension in VS Code (for F#) or install Livebook (for Elixir)

* Run notebook

The idea of what Emacs provides is irrelevant to my problems of how to efficiently write blog posts either in or support by notebooks. I gave up the path of Emacs long ago for the exact reasons of this chain. Yes, you can do anything or a collection of things, given enough time. For VS Code and these notebook technologies that I use, I do not spend time fussing about with the notebook technology.


Anything that isn’t VS Code isn’t VS Code and won’t work just like VS Code.

That means it probably is not worth switching tools when the existing tool is good enough for something else that might be good enough.

But not-right-for-OP is not the same as eMacs-can’t.


I see, this makes sense, thank you for helping to clarify.

That being said, I feel like this kind of the entire point of emacs. Everything is pieced together, and very little is "out of the box".

At least, It's THE main reason I started learning Emacs, I was tired of the lack of interoperability of my different tools and I wanted an ecosystem that lets me piece things together as needed, like the Unix philosophy but with a tighter interactivity loop.

It's a double edged sword, in that it takes much more effort to build and maintain, but there's nothing really like it.

I still use VSCode and Jetbrains IDEs, but they don't drive my workflow like Emacs.


I am not suggesting switching tools. Tools need to fit the ways we work and be good enough for the works we do.

If you want a better idea of why some people live in Emacs, maybe check out Literate Devops:

Video: https://howardism.org/Technical/Emacs/literate-devops.html

Text: https://howardism.org/Technical/Emacs/literate-devops.html


Fyi the two links are the same, and point to the text. (I was able to find the video though).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: