Pluto.Cell
— TypeThe building block of Notebook
s. Contains code, output and reactivity data.
Pluto.run
— FunctionStart a Pluto server synchronously (i.e. blocking call) on http://localhost:[port]/
.
This will start the static HTTP server and a WebSocket server. Pluto Notebooks will be started dynamically (by user input).
Pluto.responses
— ConstantWill hold all 'response handlers': functions that respond to a WebSocket request from the client. These are defined in src/webserver/Dynamic.jl
.
Pluto.CellTopology
— TypeInformation container about the cells to run in a reactive call and any cells that will err.
Pluto.NotebookPath
— TypeTo be used in make_paths_distinct!
Pluto.all_assignments
— MethodReturn all variables that a cell assigns to, including mutable globals assigned through function calls.
Pluto.all_recursed_calls!
— FunctionReturn all functions called by a cell, and all functions called by those functions, et cetera.
Pluto.all_references
— MethodReturn all variables that a cell references, including those referenced through function calls.
Pluto.dependent_cells
— MethodReturn a CellTopology
that lists the cells to be evaluated in a single reactive run, in topological order. Includes the given roots.
Pluto.finish_cache!
— MethodAccount for globals referenced in function calls by including SymbolsState
s from called functions in the cell itself.
Pluto.make_paths_distinct!
— MethodFor internal use. Takes a Set of NotebookPath
s and gives each a short path (e.g. to/file.jl
from /path/to/file.jl
), with the guarantee that all final short paths will be distinct.
For example, the set
/a/b/c.jl
, /a/P/c.jl
, /Q/b/c.jl
, '/a/b/R.jl'
will become
/a/b/c.jl
, P/c.jl
, /Q/b/c.jl
, 'R.jl'
Pluto.mime_fromfilename
— MethodAttempts to find the MIME pair corresponding to the extension of a filename. Defaults to text/plain
.
Pluto.only_versions_or_lineorder_differ
— MethodCheck if two savefiles are identical, up to their version numbers and a possible line shuffle.
If a notebook has not yet had all of its cells run, we can't deduce the topological cell order.
Pluto.putclientupdates!
— MethodSend messages
to a client
.
Pluto.putclientupdates!
— MethodSend messages
to the Client
who initiated.
Pluto.putnotebookupdates!
— MethodSend messages
to all clients connected to the notebook
.
Pluto.putplutoupdates!
— MethodSend messages
to all connected clients.
Pluto.relay_reactivity_error!
— MethodSend error
to the frontend without backtrace. Runtime errors are handled by WorkspaceManager.eval_fetch_in_workspace
- this function is for Reactivity errors.
Pluto.run_reactive!
— MethodRun given cells and all the cells that depend on them.
Pluto.run_reactive_async!
— MethodSee run_reactive
.
Pluto.run_single!
— MethodRun a single cell non-reactively, return run information.
Pluto.start_cache!
— MethodUpdate a single cell's cache - parsed code etc
Pluto.update_funcdefs!
— MethodUpdate the combined collection of function definitions, where multiple specialisations of a function are combined into a single SymbolsState
.
Pluto.where_assigned
— MethodReturn the cells that assign to any of the given symbols. Recurses down functions calls, but not down cells.
Pluto.where_referenced
— MethodReturn the cells that reference any of the given symbols. Recurses down functions calls, but not down cells.