March Docs

Scroll

scroll.march — Entry point for the Scroll notebook server.

This module is the public face of the notebook system. It:

  1. Exposes the public API used by tests (delegating to sub-modules)
  2. Contains the HTTP router, CLI arg parser, and main entry point

Sub-modules: Cells — Cell ADT, parsing, string helpers Runner — Code generation, output extraction Processes — Background process management Protocol — JSON message builders and parsers Session — WebSocket handler and receive loop Page — Browser UI HTML/CSS/JS

Functions

fnasset_rootasset_root()#
fncell_sourcecell_source(cell) do Cells.cell_source(cell) end#
fncell_tagcell_tag(cell) do Cells.cell_tag(cell) end#
fncheck_run_proccheck_run_proc(idx, nb_path, conn_id) do Processes.check_run_proc(idx, nb_path, conn_id) end#
fnextract_cell_outputextract_cell_output(stdout, code_n) do Runner.extract_cell_output(stdout, code_n) end#
fnextract_forge_addsextract_forge_adds(stdout) do Runner.extract_forge_adds(stdout) end#
fnextract_varsextract_vars(stdout) do Runner.extract_vars(stdout) end#
fnfind_code_idxfind_code_idx(cells, target) do Runner.find_code_idx(cells, target, 0, 0) end#
fngenerate_runnergenerate_runner(cells, idx) do Runner.generate_runner(cells, idx) end#
fnhtml_escapehtml_escape(s) do Cells.html_escape(s) end#
fnjson_escapejson_escape(s) do Cells.json_escape(s) end#
fnjson_get_intjson_get_int(jv, key) do Protocol.json_get_int(jv, key) end#
fnjson_get_strjson_get_str(jv, key) do Protocol.json_get_str(jv, key) end#
fnjson_strjson_str(s) do Cells.json_str(s) end#
fnlog_appendlog_append(cat, msg) do DebugLog.append(cat, msg) end#
fnlog_get_pathlog_get_path() do DebugLog.get_path() end#
fnlog_read_alllog_read_all() do DebugLog.read_all() end#
fnlog_startlog_start(nb_path) do DebugLog.start_log(nb_path) end#
fnmainmain()#
fnnormalize_crlfnormalize_crlf(s) do Cells.normalize_crlf(s) end#
fnnotebook_msgnotebook_msg(content, cells) do Protocol.notebook_msg(content, cells) end#
fnnth_cellnth_cell(cells, idx) do Cells.nth_cell(cells, idx) end#
fnoutput_msgoutput_msg(idx, out, blobs, err_opt, vars) do Protocol.output_msg(idx, out, blobs, err_opt, vars) end#
fnparse_cellsparse_cells(content) do Cells.parse_cells(content) end#
fnprocess_forge_addsprocess_forge_adds(stdout, nb_path) do Runner.process_forge_adds(stdout, nb_path) end#
fnsh_quotesh_quote(s) do Shell.sh_quote(s) end#
fnstart_run_procstart_run_proc(cells, idx, bin, env, nb_path, conn_id) do Processes.start_run_proc(cells, idx, bin, env, nb_path, conn_id) end#
fnstop_run_procstop_run_proc(nb_path, conn_id) do Processes.stop_run_proc(nb_path, conn_id) end#
fnstrip_forge_addsstrip_forge_adds(output) do Runner.strip_forge_adds(output) end#
fnui_htmlui_html(nb_path, port, is_temp) do Page.ui_html(nb_path, port, is_temp) end#
fnunescape_jsonunescape_json(s) do Protocol.unescape_json(s) end#