Live data from Hacker News

Weave.jl – Scientific Reports Using Julia

weavejl.mpastell.com

11–19 of 19 posts

Re: Weave.jl – Scientific Reports Using Julia

#11

Genuinely nice. If you do need to mix and match languages in a single document knitr/Rmarkdown has support for the most popular languages including Julia https://bookdown.org/yihui/rmarkdown/language-engines.html and that’s working nicely for me.

Org-mode can also do the trick.

Re: Weave.jl – Scientific Reports Using Julia

#12

I'm a big fan of Weave/knitr/Rmd style notebooks over Jupyter for reproducibility. I've had a great experience with parameterized Weave.jl reports. My one complaint is that a streamlined dev workflow depends on good caching. knitr nailed that part, checking code hashes and checking dependencies between chunks. Weave.jl caching has been... finicky. For a completely different style of notebook, folks should check out P…

Genuinely curious, what makes Weave and Pluto "completely different" styles of notebook? Is there some reason that Pluto features like interactivity and reactivity couldn't be incorporated in Weave, at least in theory? I get that they focus on different problems, but based on how R Markdown is often used in practice, it seems like there's a lot of overlap between the two problem spaces.

Re: Weave.jl – Scientific Reports Using Julia

#14
post #4

I use Julia and used to use Python. I've used jupyter lab for both (although for Julia I prefer Atom for IDE) What is the advantage of Weave.jl over jupyter lab? Is this just a way of integrating something "like jupyter" into Atom?

Generic advantages:

- no binaries in your source code make git diff more useful

- continue to use your favorite editor especially if you don't like the notebook interface and keybindings

- batch mode can be good or bad, people might not like it as much for exploratory analysis but prefer it when they have a lot of writing to do and want to polish "later"

Re: Weave.jl – Scientific Reports Using Julia

#15
post #14
post #4

I use Julia and used to use Python. I've used jupyter lab for both (although for Julia I prefer Atom for IDE) What is the advantage of Weave.jl over jupyter lab? Is this just a way of integrating something "like jupyter" into Atom?

Generic advantages: - no binaries in your source code make git diff more useful - continue to use your favorite editor especially if you don't like the notebook interface and keybindings - batch mode can be good or bad, people might not like it as much for exploratory analysis but prefer it when they have a lot of writing to do and want to polish "later"

> no binaries in your source code make git diff more useful

Oh damn that's a good one. Thanks for pointing it out.

Re: Weave.jl – Scientific Reports Using Julia

#16

I'm a big fan of Weave/knitr/Rmd style notebooks over Jupyter for reproducibility. I've had a great experience with parameterized Weave.jl reports. My one complaint is that a streamlined dev workflow depends on good caching. knitr nailed that part, checking code hashes and checking dependencies between chunks. Weave.jl caching has been... finicky. For a completely different style of notebook, folks should check out P…

Why would one chose Pluto over say Weave or the other way around?

Re: Weave.jl – Scientific Reports Using Julia

#17

I'm a big fan of Weave/knitr/Rmd style notebooks over Jupyter for reproducibility. I've had a great experience with parameterized Weave.jl reports. My one complaint is that a streamlined dev workflow depends on good caching. knitr nailed that part, checking code hashes and checking dependencies between chunks. Weave.jl caching has been... finicky. For a completely different style of notebook, folks should check out P…

Genuinely curious, what makes Weave and Pluto "completely different" styles of notebook? Is there some reason that Pluto features like interactivity and reactivity couldn't be incorporated in Weave, at least in theory? I get that they focus on different problems, but based on how R Markdown is often used in practice, it seems like there's a lot of overlap between the two problem spaces.

Plutos killer feature to me is that it is not mutable. It can be challenging to adjust initially, mainly because it forces you to write extremely DRY code. The benefit is it makes your code much more stable/reproducible than jupyter and interactivity stronger because anytime something changes in any cell, all the dependent cells, regardless of the order in the doc, are updated.

Re: Weave.jl – Scientific Reports Using Julia

#18

Earlier quoted context omitted.

Genuinely curious, what makes Weave and Pluto "completely different" styles of notebook? Is there some reason that Pluto features like interactivity and reactivity couldn't be incorporated in Weave, at least in theory? I get that they focus on different problems, but based on how R Markdown is often used in practice, it seems like there's a lot of overlap between the two problem spaces.

Plutos killer feature to me is that it is not mutable. It can be challenging to adjust initially, mainly because it forces you to write extremely DRY code. The benefit is it makes your code much more stable/reproducible than jupyter and interactivity stronger because anytime something changes in any cell, all the dependent cells, regardless of the order in the doc, are updated.

I completely agree! But I'm wondering whether those benefits are incompatible with the benefits of Weave.jl. E.g., can an arbitrary Pluto notebook be woven to a PDF? If so, why are they separate packages - and if not, is it because of a fundamental difference, or just a difference in conventions or currently supported features?

Re: Weave.jl – Scientific Reports Using Julia

#19

Genuinely nice. If you do need to mix and match languages in a single document knitr/Rmarkdown has support for the most popular languages including Julia https://bookdown.org/yihui/rmarkdown/language-engines.html and that’s working nicely for me.

Can weave do other languages? It looks like all of the blocks begin with the language name, but I only see julia in the screenshots.
Post reply on HN