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

> Literate programming. For example: I can have a python snippet that when I evaluate, results would be piped it into another snippet in SQL that retrieves data from postgress, and then I can send a http request to a remote API based on what's in DB, and then use that to build a chart. Can you do that in Markdown?

I've found you can get pretty close if you combine it with Jupyter notebooks. When you use jupytext [1] or similar to synchronize the markdown and ipynb then it works quite nicely.

Oh and as far as LaTeX / exporting is concerned, just use pandoc, you can export it however you want basically.

[1]:https://github.com/mwouts/jupytext



Doesn't that require you to jump back and forth between browser and editor? also, does Jupyter support running multiple kernels in the same session? Org-babel allows you to mix and match languages freely.

There's also really good support in Emacs for interacting with Jupyter, too https://github.com/dzop/emacs-jupyter


Well you can edit the markdown in the regular jupyter browser. They haven't embraced plaintext in quite the same way emacs did though (so for some niceties you do need to use a browser, similar to how you need to use the emacs-gui to embed images).

Coincidentally I haven't really managed to get the equation rendering right in emacs, the org-latex-preview seems quite slow. It's unfortunate that emacs isn't able to take advantage of things like KaTeX, there are historical reasons for this but still.

Mixing languages seems to be possible [1], though I haven't personally used it.

[1]: https://vatlab.github.io/sos-docs/doc/user_guide/multi_kerne...




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

Search: