Created
August 19, 2016 00:59
-
-
Save sunahsuh/ae740a94d58b3454599c0969e57aa902 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "cells": [ | |
| { | |
| "cell_type": "code", | |
| "execution_count": 1, | |
| "metadata": { | |
| "collapsed": false | |
| }, | |
| "outputs": [ | |
| { | |
| "name": "stdout", | |
| "output_type": "stream", | |
| "text": [ | |
| "Unable to parse whitelist (/home/hadoop/anaconda2/lib/python2.7/site-packages/moztelemetry/histogram-whitelists.json). Assuming all histograms are acceptable.\n" | |
| ] | |
| } | |
| ], | |
| "source": [ | |
| "from moztelemetry import get_pings, get_pings_properties\n", | |
| "from IPython.display import Audio\n", | |
| "\n", | |
| "# Make sure to upload a valid 'horn.wav' file in the notebook directory\n", | |
| "sound_file = 'horn.wav'" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": 2, | |
| "metadata": { | |
| "collapsed": false | |
| }, | |
| "outputs": [ | |
| { | |
| "data": { | |
| "text/html": [ | |
| "\n", | |
| " <audio controls=\"controls\" autoplay=\"autoplay\">\n", | |
| " <source src=\"horn.wav\" type=\"audio/x-wav\" />\n", | |
| " Your browser does not support the audio element.\n", | |
| " </audio>\n", | |
| " " | |
| ], | |
| "text/plain": [ | |
| "<IPython.lib.display.Audio object>" | |
| ] | |
| }, | |
| "execution_count": 2, | |
| "metadata": {}, | |
| "output_type": "execute_result" | |
| } | |
| ], | |
| "source": [ | |
| "testpilot_pings = get_pings(sc, doc_type=\"testpilot\", app=\"Firefox\", fraction=0.01)\n", | |
| "Audio(url=sound_file, autoplay=True)" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": null, | |
| "metadata": { | |
| "collapsed": true | |
| }, | |
| "outputs": [], | |
| "source": [] | |
| } | |
| ], | |
| "metadata": { | |
| "kernelspec": { | |
| "display_name": "Python 2", | |
| "language": "python", | |
| "name": "python2" | |
| }, | |
| "language_info": { | |
| "codemirror_mode": { | |
| "name": "ipython", | |
| "version": 2 | |
| }, | |
| "file_extension": ".py", | |
| "mimetype": "text/x-python", | |
| "name": "python", | |
| "nbconvert_exporter": "python", | |
| "pygments_lexer": "ipython2", | |
| "version": "2.7.11" | |
| } | |
| }, | |
| "nbformat": 4, | |
| "nbformat_minor": 0 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment