Skip to content

Commit 6eb0ddd

Browse files
committed
Pluto 0.16 support
1 parent 5576cc5 commit 6eb0ddd

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "PlutoTest"
22
uuid = "cb4044da-4d16-4ffa-a6a3-8cad7f73ebdc"
33
authors = ["Fons van der Plas <fons@plutojl.org>"]
4-
version = "0.1.0"
4+
version = "0.1.1"
55

66
[deps]
77
HypertextLiteral = "ac1192a8-f4b3-4bfe-ba22-af5b92cd3ab2"

src/notebook.jl

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
### A Pluto.jl notebook ###
2-
# v0.15.0
2+
# v0.16.1
33

44
using Markdown
55
using InteractiveUtils
@@ -593,7 +593,7 @@ md"""
593593

594594
# ╔═╡ 35f63c4e-3583-4ea8-a057-31f18f8a09d6
595595
md"""
596-
## DisplayOnly
596+
## `@skip_as_script`
597597
"""
598598

599599
# ╔═╡ 35b2770e-1db6-4327-bf86-c27a4b61dbd3
@@ -615,7 +615,7 @@ macro skip_as_script(ex) is_inside_pluto(__module__) ? esc(ex) : nothing end
615615

616616
# ╔═╡ cf314b21-3f4f-4637-b1ce-ec1d5d5af966
617617
begin
618-
@skip_as_script begin
618+
if is_inside_pluto(@__MODULE__)
619619
import Pkg
620620
Pkg.activate("..")
621621
Pkg.instantiate()
@@ -643,6 +643,11 @@ function test(expr, extra_args...; __module__)
643643
Test.test_expr!("", expr, extra_args...)
644644

645645
quote
646+
# for pluto to detect
647+
if false
648+
$(esc(expr))
649+
end
650+
646651
expr_raw = $(QuoteNode(expr))
647652
try
648653
# steps = @eval_step_by_step($(expr))
@@ -1472,7 +1477,7 @@ embed_display(@test false)
14721477
# ╠═a2cbb0c3-23b9-4091-9ca7-5ba96e85e3a3
14731478
# ╟─34f613a3-85fb-45a8-be3b-cd8e6b3cb5a2
14741479
# ╟─f9ed2487-a7f6-4ce9-b673-f8a298cd5fc3
1475-
# ╠═35f63c4e-3583-4ea8-a057-31f18f8a09d6
1480+
# ╟─35f63c4e-3583-4ea8-a057-31f18f8a09d6
14761481
# ╟─35b2770e-1db6-4327-bf86-c27a4b61dbd3
14771482
# ╟─22640a2f-ea38-4517-a4f3-7a65e60ffebe
14781483
# ╟─d414f840-4952-4de5-a565-7fdc81a94817

0 commit comments

Comments
 (0)