Skip to content

Commit

Permalink
pop nb id for validation (fixes #1354)
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Oct 5, 2022
1 parent 4f4f526 commit eb1116e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mpcontribs-portal/mpcontribs/portal/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ def highlight_code(source, language="python", metadata=None):


def export_notebook(nb, cid):
nb.pop("id")
nb = nbformat.from_dict(nb)
html_exporter = HTMLExporter(template_name="basic")
html_exporter.filters["highlight_code"] = highlight_code
Expand Down

0 comments on commit eb1116e

Please sign in to comment.