Skip to content

Commit

Permalink
🐗 Quick fix fonsp#741
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Dec 2, 2020
1 parent 4854572 commit 909be44
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = "Pluto"
uuid = "c3e4b0f8-55cb-11ea-2926-15256bba5781"
license = "MIT"
authors = ["Fons van der Plas <fonsvdplas@gmail.com>"]
version = "0.12.15"
version = "0.12.16"

[deps]
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
Expand Down
2 changes: 1 addition & 1 deletion src/runner/PlutoRunner.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ struct Computer
output_globals::Vector{Symbol}
end

expr_hash(e::Expr) = objectid(e.head) + mapreduce(expr_hash, +, e.args; init=zero(ObjectID))
expr_hash(e::Expr) = objectid(e.head) + mapreduce(expr_hash, +, enumerate(e.args); init=zero(ObjectID))
expr_hash(x) = objectid(x)
# TODO: clear key when a cell is deleted furever
const computers = Dict{ObjectID,Computer}()
Expand Down
6 changes: 6 additions & 0 deletions test/React.jl
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,7 @@ import Distributed
"""),
Cell("4"),
Cell("[5]"),
Cell("6 / 66"),
])

update_run!(🍭, notebook, notebook.cells)
Expand Down Expand Up @@ -910,6 +911,11 @@ import Distributed
update_run!(🍭, notebook, notebook.cells[5])
@test old != notebook.cells[5].output_repr

old = notebook.cells[6].output_repr
setcode(notebook.cells[6], "66 / 6")
update_run!(🍭, notebook, notebook.cells[6])
@test old != notebook.cells[6].output_repr

WorkspaceManager.unmake_workspace((🍭, notebook))
end

Expand Down

0 comments on commit 909be44

Please sign in to comment.