Skip to content

Commit 2293ab9

Browse files
author
Jürgen Hasch
committed
Keep existing attachments
1 parent 7e7c4c0 commit 2293ab9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jupyter_contrib_nbextensions/nbconvert_support/pre_embedimages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def preprocess_cell(self, cell, resources, index):
104104
Index of the cell being processed (see base.py)
105105
"""
106106
self.path = resources['metadata']['path']
107-
self.attachments = Struct()
107+
self.attachments = getattr(cell, 'attachments', Struct())
108108

109109
if cell.cell_type == "markdown":
110110
regex = re.compile('!\[([^"]*)\]\(([^"]+)\)')

0 commit comments

Comments
 (0)