Julia Markdown - how to execute Code inline

Viewed 125

I have Markdown code in Julia and I want to include the result of some code. The Julia documentation explains how to do that in a code block...

```julia
some code
```

...but it doesn't tell how to do it inline.

1 Answers

As explained in the documentation of Weave.jl you can do

`j juliacode`

or

! juliacode

with the latter executing the whole line after !.

Related