Path: blob/master/src/packages/project/conat/api/editor.ts
1450 views
export { jupyter_strip_notebook as jupyterStripNotebook } from "@cocalc/jupyter/nbgrader/jupyter-parse";1export { jupyter_run_notebook as jupyterRunNotebook } from "@cocalc/jupyter/nbgrader/jupyter-run";2export { nbconvert as jupyterNbconvert } from "../../jupyter/convert";3export { run_formatter_string as formatterString } from "../../formatters";4export { logo as jupyterKernelLogo } from "@cocalc/jupyter/kernel/logo";5export { get_kernel_data as jupyterKernels } from "@cocalc/jupyter/kernel/kernel-data";6export { newFile } from "@cocalc/backend/misc/new-file";78import { printSageWS as printSageWS0 } from "@cocalc/project/print_to_pdf";9import { filename_extension } from "@cocalc/util/misc";10export async function printSageWS(opts): Promise<string> {11let pdf;12const ext = filename_extension(opts.path);13if (ext) {14pdf = `${opts.path.slice(0, opts.path.length - ext.length)}pdf`;15} else {16pdf = opts.path + ".pdf";17}1819await printSageWS0({20path: opts.path,21outfile: pdf,22title: opts.options?.title,23author: opts.options?.author,24date: opts.options?.date,25contents: opts.options?.contents,26subdir: opts.options?.subdir,27extra_data: opts.options?.extra_data,28timeout: opts.options?.timeout,29});30return pdf;31}3233export { createTerminalService } from "@cocalc/project/conat/terminal";343536