@plutojl/rainbow
Version:
TypeScript/JavaScript API for programmatically interacting with Pluto notebooks
7 lines (6 loc) • 889 B
TypeScript
export function from_dyadgen(code: any, defaultPackages?: {}): string;
export const MODULE_CELL_ID: "00000000-c0de-ce11-0000-000000000000";
export const PKG_CELL_ID: "00000000-de95-ce11-0000-000000000000";
export const PKG_CELL_CODE: "# Dyad\u00B7Pluto Notebook\nbegin\n using DyadEcosystemDependencies\n using DyadInterface\n using Plots, CSV, DataFrames\n\n using AbstractPlutoDingetjes\nend";
export const EXECUTION_CELL_ID: "00000000-0000-0208-1991-000000000000";
export const EXECUTION_CELL_ID_CODE: "begin\n\tfunction eval_in_pluto(x::String)\n try\n\t\t id = PlutoRunner.moduleworkspace_count[]\n\t\t new_workspace_name = Symbol(\"workspace#\", id)\n\t\t Core.eval(getproperty(Main, new_workspace_name), Meta.parse(x))\n catch\n return \"failed to evaluate $x in latest module\"\n end\n\tend\n\tAbstractPlutoDingetjes.Display.with_js_link(eval_in_pluto)\nend";