Skip to content

Add an invalid notebook error - #1675

Merged
Carreau merged 2 commits into
jupyter:mainfrom
gwincr11:cg-invalid-notebook
Dec 10, 2021
Merged

Carreau merged 2 commits into
jupyter:mainfrom
gwincr11:cg-invalid-notebook

Conversation

@gwincr11

@gwincr11 gwincr11 commented Nov 18, 2021 •

Copy link
Copy Markdown
Contributor

Motivation:

  • Our new service is serving a significant amount of notebooks a day. In this we are
    seeing a number of errors from Notebook rendering that really stem
    from notebooks not being properly formatted. These show up in a number
    of errors such as the error handled in this pr, an assertion error,
    we have also seen key errors and others. This pr is a bit of a proposal
    to instead introduced a common exception that indicates the notebook
    is missing some required data that is needed to render itself.

Motivation:
  - As we are now service hundreds of thousands of notebooks a day, we are
    seeing a number of errors from Notebook rendering that really stem
    from notebooks not being properly formated. These show up in a number
    of errors such as the error handled in this pr, an assertion error,
    we have also seen key errors and others. This pr is a bit of a proposal
    to instead introduced a common exception that indicates the notebook
    is missing some required data that is needed to render itself.
@Carreau

Carreau commented Dec 10, 2021

Copy link
Copy Markdown
Member

I would be happy to have a common exception with subclasses, that seem like a reasonable requests.

Comment thread nbconvert/filters/markdown_mistune.py Outdated
@Carreau

Carreau commented Dec 10, 2021

Copy link
Copy Markdown
Member

As we are now service a significant amount of notebooks a day,

For other readers "We" in this context is GitHub themselves.

Sorry for the delay in responding, the jupyter team is quite thin, and we don't always watch all the repos.

Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
@Carreau
Carreau merged commit 88ee3d3 into jupyter:main Dec 10, 2021
@gwincr11

Copy link
Copy Markdown
Contributor Author

Thank you @Carreau

@blink1073 blink1073 added this to the 6.4 milestone Dec 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants