Skip to content

Running Pluto without Webbserver.jl? #2184

Discussion options

You must be logged in to vote

You can try to control notebooks using the internal Julia API. See some of the tests for an example:

Pluto.jl/test/React.jl

Lines 16 to 40 in 4758c4e

notebook = Notebook([
Cell("x = 1"),
Cell("y = x"),
Cell("f(x) = x + y"),
Cell("f(4)"),
Cell("""begin
g(a) = x
g(a,b) = y
end"""),
Cell("g(6) + g(6,6)"),
Cell("import Distributed"),
Cell("Distributed.myid()"),
])
fakeclient.connected_notebook = notebook
@test !haskey(WorkspaceManager.workspaces, notebook.notebook_id)
update_run!(🍭, notebook, notebook.cells[1:2])
@test notebook.cells[1].output.body == notebook.cells[2].output.body

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zahachtah
Comment options

Answer selected by zahachtah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants