ExecuteCode
struct
defined in module
Pollen
ExecuteCode(; kwargs...) <: Rewriter
A
Rewriter
that runs all Julia code blocks annotated with a
:cell
attribute.
using
Pollen
node
=
Node
(
:
codeblock
,
"""
print("Hi")
1 + 1
"""
,
cell
=
"
main
"
)
Node(:codeblock; cell = "main")
└─ "print("Hi")
1 + 1
"
Pollen
.
rewritedoc
(
ExecuteCode
(
)
,
"
"
,
node
)
Node(:codeblock; cell = "main")
└─ "print("Hi")
1 + 1
"
There are
2
methods for Pollen.ExecuteCode
:
The following pages link back here:
Pollen.jl , rewriters/executecode.jl , rewriters/packagewatcher.jl