jupyter / jupyter/notebook

Notebook validation fails when using IPython.display.Audio

Open
#2,001 9 comments 0 reactions 0 assignees View on GitHub
component:Notebook status:Needs Info tag:Extensions
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

When using IPython.display.Audio to listen to audio in Jupyter notebooks, the notebook validation fails. I am not sure whether this is a Jupyter or IPython.display.Audio bug.

I get two different errors:

`Notebook Validation failed: Additional properties are not allowed (u'execution_count' was unexpected):
{
"output_type": "display_data",
"data": {
"image/png": "iVBOR...z73wM=\" type=\"audio/wav\" />\n Your browser does not support the audio element.\n \n "
},
"execution_count": 153,
"metadata": {}
}`

`Notebook Validation failed: u'execution_count' is a required property:
{
"output_type": "execute_result",
"data": {
"text/html": "\n \n "
},
"metadata": {}
}`

I am using Jupyter 4.2.1 and IPython 5.1.0.

In addition, saving the notebook produces

Contributor guide

Open the contributing guide

Research direction

Start by reproducing notebook validation with IPython.display.Audio under Jupyter 4.2.1 and IPython 5.1.0, then determine whether the generated output or the validator causes the execution_count errors. Done means Audio-containing notebooks validate successfully and saving them no longer produces the reported failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter, jupyter-notebook
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.