News for hackers. Stuff that matters.
Re:How to easily type your (scientific) notes with TeXmacs by saboot on Saturday November 26, 2022 @10:11PM (#33759835)
For scientific notes I'm really liking Jupyter notebooks using the MyST save option. All the pluses of Jupyter as a simple text markdown format, I can commit, diff, easily switch to another editor if I like
Re:How to easily type your (scientific) notes with TeXmacs by nerdponx on Saturday November 26, 2022 @11:08PM (#33760227)
It's a real shame that the "R Markdown" format never caught on, basically just Markdown with fenced code blocks that also act as runnable cells. I think RStudio really dropped the ball on marketing it outside of the R community, starting with its name (implying that it only works for R) and tying the reference implementation to R (the Knitr package).

I haven't looked at MyST before, but it looks very much inspired by R Markdown (and of course without so much as a nod thereto anywhere on its website). I also wonder if it is a distinct Markdown dialect from CommonMark, or if it is a superset of CommonMark?

It would be pretty cool to use MyST inside my code editor (Vim? Emacs? VS Code?) to run code blocks, essentially what R Markdown is/was. Or does that already exist? I would love to start using that instead of or in addition to notebooks.

I really hate to see so much fragmentation in this space. It's just a markup language, I don't see why everyone needs to have their own special snowflake variant. It feels like everyone wants to be the one to strike it big and achieve fame and glory, and they'd rather not collaborate too much with others lest they risk losing their chance to be the big winner.

Edit: I stand corrected! Yes, they directly reference R Markdown as a source of inspiration in the specification, which also states that MyST is indeed a superset of CommonMark: https://www.myst.tools/docs/spec/commonmark. I'll definitely want to try this out then, thanks for the recommendation!

Re:How to easily type your (scientific) notes with TeXmacs by tvb12 on Saturday November 26, 2022 @11:56PM (#33760532)
I think Rstudio made a decent attempt to address that marketing problem. They introduced Quarto as a language-agnostic R Markdown.

https://quarto.org/docs/faq/rmarkdown.html#quarto-sounds-sim...

Re:How to easily type your (scientific) notes with TeXmacs by i_am_proteus on Sunday November 27, 2022 @05:51AM (#33762029)
Quarto is great. Basically ipynb markdown plus pandoc, and so far my experiences with it have been that it Just Works.
Re:How to easily type your (scientific) notes with TeXmacs by nerdponx on Sunday November 27, 2022 @10:28AM (#33763528)
How well does it work with Python or Julia as well as R? Does it support Jupyter kernels, or does it use its own system?
Re:How to easily type your (scientific) notes with TeXmacs by tvb12 on Sunday November 27, 2022 @11:11AM (#33763921)
It works with all three. Jupyter is supported as an "engine". Although I haven't tried, it sounds like any Jupyter kernel will work. https://quarto.org/docs/faq/#what-programming-languages-are-...
Re:How to easily type your (scientific) notes with TeXmacs by saboot on Sunday November 27, 2022 @01:54AM (#33761009)
You are welcome, I only learned of it a few weeks ago and it solves a lot of problems. It's still relatively new, so while jupyter notebooks / lab support, using it inside other editors with runnable code blocks is still a work in progress. VS Code looks to have an extension for previewing the markdown, but I dont think it can run python code blocks in it (for now).

I agree with you, RStudio's R Markdown feature was my favorite part about it, easily wrote my assignments for a statistics class with it.

For more about MyST check out the talk I recently was introduced to it https://www.youtube.com/watch?v=A-UCO1F09M4

Re:How to easily type your (scientific) notes with TeXmacs by paro_nej on Sunday November 27, 2022 @01:38AM (#33760932)
FWIW, texmacs files are encoded like any other markup language. This makes it the texmacs files very easy for any git-fu.