Skip to content

Commit f45bad4

Browse files
committed
Change cell_output_to_nodes to output posix
1 parent 4fd1798 commit f45bad4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jupyter_sphinx/ast.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import os
44
import json
5+
from pathlib import Path
56

67
import docutils
78
from docutils.parsers.rst import Directive, directives
@@ -316,7 +317,7 @@ def cell_output_to_nodes(outputs, data_priority, write_stderr, dir, thebe_config
316317
subpath = subpaths[1]
317318
dir += subpath
318319

319-
uri = os.path.join(dir, filename)
320+
uri = Path(os.path.join(dir, filename)).as_posix()
320321
to_add.append(docutils.nodes.image(uri=uri))
321322
elif mime_type == "text/html":
322323
to_add.append(

0 commit comments

Comments
 (0)