Skip to content

Instantly share code, notes, and snippets.

View fonsp's full-sized avatar
🌳
climbing

Fons van der Plas fonsp

🌳
climbing
View GitHub Profile
####!! means that I took the measurement again after fixing the problem
import Pluto
import Pluto: Cell, ServerSession, Notebook, FunctionName, ClientRequest
import Pluto.Firebasey
import Pluto.WorkspaceManager
using UUIDs
using BenchmarkTools
@fonsp
fonsp / backwards and forwards compatible - 1.jl
Last active January 14, 2021 22:59
Examples of the new notebook format
### A Pluto.jl notebook ###
# v0.14.0
using Markdown
using InteractiveUtils
# This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error).
macro bind(def, element)
quote
local el = $(esc(element))

img

Fons van der Plas:pluto:Today at 11:27 PM

We made some big changes on Pluto#master that are not ready to be released yet, but we would like to release a patch update with a small change relative to our latest release. Is this possible?

10 replies


struct Bond
create_view::Function
do_background_work::Function
end
@bind var b
### A Pluto.jl notebook ###
# v0.12.7
using Markdown
using InteractiveUtils
# ╔═╡ ba8685e0-241a-11eb-28cb-5b561f0c541f
begin
using Pkg
true, @__MODULE__
This file has been truncated, but you can view the full file.
Internal error: encountered unexpected error in runtime:
StackOverflowError()
jl_compute_field_offsets at /buildworker/worker/package_linux64/build/src/datatype.c:491
inst_datatype_inner at /buildworker/worker/package_linux64/build/src/jltypes.c:1367
jl_apply_tuple_type_v_ at /buildworker/worker/package_linux64/build/src/jltypes.c:1385 [inlined]
jl_apply_tuple_type_v at /buildworker/worker/package_linux64/build/src/jltypes.c:1395
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2214 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2398
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1690 [inlined]
do_apply at /buildworker/worker/package_linux64/build/src/builtins.c:655
### A Pluto.jl notebook ###
# v0.12.7
using Markdown
using InteractiveUtils
# This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error).
macro bind(def, element)
quote
local el = $(esc(element))
### A Pluto.jl notebook ###
# v0.11.14
using Markdown
using InteractiveUtils
# This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error).
macro bind(def, element)
quote
local el = $(esc(element))