Skip to content

Commit

Permalink
Set nbsphinx_timeout for examples/pitch_manipulation.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickJadoul committed Mar 19, 2024
1 parent 523c117 commit 50ff5f1
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions docs/examples/pitch_manipulation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -232,23 +232,9 @@
" sound_changed_pitch = change_pitch(sound, factor)\n",
" return Audio(data=sound_changed_pitch.values, rate=sound_changed_pitch.sampling_frequency)\n",
"\n",
"#w = ipywidgets.interact(interactive_change_pitch,\n",
"# audio_file=ipywidgets.Dropdown(options=sorted(glob.glob(\"audio/*.wav\")), value=\"audio/4_b.wav\"),\n",
"# factor=ipywidgets.FloatSlider(min=0.25, max=4, step=0.05, value=1.5))"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"nbsphinx": "hidden",
"tags": []
},
"outputs": [],
"source": [
"# Workaround deadlock with ipywidgets.interact and IPython.display.Audio (https://github.com/jupyter/nbconvert/issues/2029)\n",
"import time\n",
"time.sleep(5)"
"w = ipywidgets.interact(interactive_change_pitch,\n",
" audio_file=ipywidgets.Dropdown(options=sorted(glob.glob(\"audio/*.wav\")), value=\"audio/4_b.wav\"),\n",
" factor=ipywidgets.FloatSlider(min=0.25, max=4, step=0.05, value=1.5))"
]
}
],
Expand All @@ -269,6 +255,9 @@
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.7"
},
"nbsphinx": {
"timeout": 60
}
},
"nbformat": 4,
Expand Down

0 comments on commit 50ff5f1

Please sign in to comment.