File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- using Scratch
1+ using Scratch: @get_scratch!
22using REPL
33import Base64
44
@@ -114,7 +114,7 @@ include(_path(backend_name()))
114114 n = length(_examples)
115115 imports = sizehint!(Expr[], n)
116116 examples = sizehint!(Expr[], 10 n)
117- _scratch_dir = mktempdir()
117+ scratch_dir = mktempdir()
118118 for i in setdiff(1 : n, _backend_skips[backend_name()], _animation_examples)
119119 _examples[i]. external && continue
120120 (imp = _examples[i]. imports) === nothing || push!(imports, imp)
@@ -125,7 +125,7 @@ include(_path(backend_name()))
125125 $ func() = begin # evaluate each example in a local scope
126126 $ (_examples[i]. exprs)
127127 $ i == 1 || return # only for one example
128- fn = tempname($ _scratch_dir )
128+ fn = tempname($ scratch_dir )
129129 pl = current()
130130 show(devnull , pl)
131131 showable(MIME" image/png" (), pl) && savefig(pl, " $fn .png" )
You can’t perform that action at this time.
0 commit comments