Skip to content

Commit

Permalink
Pluto 0.16 support
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Sep 21, 2021
1 parent 5576cc5 commit 6eb0ddd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "PlutoTest"
uuid = "cb4044da-4d16-4ffa-a6a3-8cad7f73ebdc"
authors = ["Fons van der Plas <fons@plutojl.org>"]
version = "0.1.0"
version = "0.1.1"

[deps]
HypertextLiteral = "ac1192a8-f4b3-4bfe-ba22-af5b92cd3ab2"
Expand Down
13 changes: 9 additions & 4 deletions src/notebook.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
### A Pluto.jl notebook ###
# v0.15.0
# v0.16.1

using Markdown
using InteractiveUtils
Expand Down Expand Up @@ -593,7 +593,7 @@ md"""

# ╔═╡ 35f63c4e-3583-4ea8-a057-31f18f8a09d6
md"""
## DisplayOnly
## `@skip_as_script`
"""

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

# ╔═╡ cf314b21-3f4f-4637-b1ce-ec1d5d5af966
begin
@skip_as_script begin
if is_inside_pluto(@__MODULE__)
import Pkg
Pkg.activate("..")
Pkg.instantiate()
Expand Down Expand Up @@ -643,6 +643,11 @@ function test(expr, extra_args...; __module__)
Test.test_expr!("", expr, extra_args...)

quote
# for pluto to detect
if false
$(esc(expr))
end

expr_raw = $(QuoteNode(expr))
try
# steps = @eval_step_by_step($(expr))
Expand Down Expand Up @@ -1472,7 +1477,7 @@ embed_display(@test false)
# ╠═a2cbb0c3-23b9-4091-9ca7-5ba96e85e3a3
# ╟─34f613a3-85fb-45a8-be3b-cd8e6b3cb5a2
# ╟─f9ed2487-a7f6-4ce9-b673-f8a298cd5fc3
# ╠═35f63c4e-3583-4ea8-a057-31f18f8a09d6
# ╟─35f63c4e-3583-4ea8-a057-31f18f8a09d6
# ╟─35b2770e-1db6-4327-bf86-c27a4b61dbd3
# ╟─22640a2f-ea38-4517-a4f3-7a65e60ffebe
# ╟─d414f840-4952-4de5-a565-7fdc81a94817
Expand Down

2 comments on commit 6eb0ddd

@fonsp
Copy link
Member Author

@fonsp fonsp commented on 6eb0ddd Sep 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/45260

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.1 -m "<description of version>" 6eb0ddd6e0c9148954523430cd1c110aa8759f48
git push origin v0.1.1

Please sign in to comment.