Skip to content
Snippets Groups Projects
Commit f3ffe41d authored by Maurice Herné's avatar Maurice Herné
Browse files

Fix: attachments = None leads to Jupyter no longer being able to load the notebook

parent 02b691f3
No related branches found
No related tags found
No related merge requests found
...@@ -85,7 +85,7 @@ class NotebookMarkdownCellModel(BaseNotebookCellModel): ...@@ -85,7 +85,7 @@ class NotebookMarkdownCellModel(BaseNotebookCellModel):
"Notebook markdown cell." "Notebook markdown cell."
""" """
cell_type: Literal["markdown"] cell_type: Literal["markdown"]
attachments: Optional[dict] = Field(default=None, description="Media attachments (e.g. inline images), stored as mimebundle keyed by filename.") attachments: dict = Field(default={}, description="Media attachments (e.g. inline images), stored as mimebundle keyed by filename.")
class NotebookCodeCellModel(BaseNotebookCellModel): class NotebookCodeCellModel(BaseNotebookCellModel):
...@@ -102,7 +102,7 @@ class NotebookRawCellModel(BaseNotebookCellModel): ...@@ -102,7 +102,7 @@ class NotebookRawCellModel(BaseNotebookCellModel):
"Notebook raw nbconvert cell." "Notebook raw nbconvert cell."
""" """
cell_type: Literal["raw"] cell_type: Literal["raw"]
attachments: Optional[dict] = Field(default=None, description="Media attachments (e.g. inline images), stored as mimebundle keyed by filename.") attachments: dict = Field(default={}, description="Media attachments (e.g. inline images), stored as mimebundle keyed by filename.")
NotebookCellAnnotation = Annotated[ NotebookCellAnnotation = Annotated[
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment