Skip to content

Commit 603c883

Browse files
claude: wip jupyter discovery port 5/n
1 parent 613506e commit 603c883

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/execute/jupyter/jupyter.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ import {
4343
JupyterNotebook,
4444
JupyterWidgetDependencies,
4545
} from "../../core/jupyter/types.ts";
46-
import {
47-
includesForJupyterWidgetDependencies,
48-
} from "../../core/jupyter/widgets.ts";
4946

5047
import { RenderOptions, RenderResultFile } from "../../command/render/types.ts";
5148
import {
@@ -73,7 +70,6 @@ interface JupyterTargetData {
7370
import { quartoAPI as quarto } from "../../core/quarto-api.ts";
7471
import { postProcessRestorePreservedHtml } from "../engine-shared.ts";
7572
import { MappedString } from "../../core/mapped-text.ts";
76-
import { breakQuartoMd } from "../../core/lib/break-quarto-md.ts";
7773
import { ProjectContext } from "../../project/types.ts";
7874
import { isQmdFile } from "../qmd.ts";
7975
import { kJupyterPercentScriptExtensions } from "./percent.ts";
@@ -698,7 +694,7 @@ async function disableDaemonForNotebook(target: ExecutionTarget) {
698694
"rm",
699695
"rmdir",
700696
];
701-
const nb = await breakQuartoMd(target.markdown);
697+
const nb = await quarto.markdown.breakQuartoMd(target.markdown);
702698
for (const cell of nb.cells) {
703699
if (ld.isObject(cell.cell_type)) {
704700
const language = (cell.cell_type as { language: string }).language;
@@ -744,7 +740,7 @@ export function executeResultIncludes(
744740
): PandocIncludes | undefined {
745741
if (widgetDependencies) {
746742
const includes: PandocIncludes = {};
747-
const includeFiles = includesForJupyterWidgetDependencies(
743+
const includeFiles = quarto.jupyter.widgetDependencyIncludes(
748744
[widgetDependencies],
749745
tempDir,
750746
);

0 commit comments

Comments
 (0)