From df461b7d7c0f95e5ecd531d46fa90568dd0e5e6c Mon Sep 17 00:00:00 2001 From: 4coderz <4coderz@users.noreply.github.com> Date: Mon, 24 Mar 2014 12:26:42 +0530 Subject: [PATCH 1/2] Delete example-notebook.ipynb --- example-notebook.ipynb | 126 ----------------------------------------- 1 file changed, 126 deletions(-) delete mode 100644 example-notebook.ipynb diff --git a/example-notebook.ipynb b/example-notebook.ipynb deleted file mode 100644 index 45b5f2a..0000000 --- a/example-notebook.ipynb +++ /dev/null @@ -1,126 +0,0 @@ -{ - "metadata": { - "blah": "stuff", - "browsercast": { - "audioURL": "http://wolever.github.io/browsercast/examples/example.ogg" - }, - "name": "example-notebook" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "code", - "collapsed": false, - "input": [ - "foo = 7" - ], - "language": "python", - "metadata": { - "browsercast": { - "time": 0 - } - }, - "outputs": [], - "prompt_number": 5 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "bar = 42" - ], - "language": "python", - "metadata": { - "browsercast": { - "time": 1.92 - } - }, - "outputs": [], - "prompt_number": 6 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "print \"Sum:\", foo + bar\n", - "print \"Product:\", foo * bar" - ], - "language": "python", - "metadata": { - "browsercast": { - "time": 4.17 - } - }, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Sum: 49\n", - "Product: 294\n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "print \"Hello, world!\"" - ], - "language": "python", - "metadata": { - "browsercast": { - "time": 6.3 - } - }, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Hello, world!\n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import browsercast\n", - "browsercast.load(browsercast_js=\"url:files/browsercast/browsercast.js\", browsercast_css=\"url:files/browsercast/browsercast.css\")" - ], - "language": "python", - "metadata": { - "browsercast": { - "time": 11.2 - } - }, - "outputs": [ - { - "html": [ - "

Loading BrowserCast…

\n", - "\n", - "\n", - "" - ], - "output_type": "pyout", - "prompt_number": 2, - "text": [ - "" - ] - } - ], - "prompt_number": 2 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file From 240243f20def62ddfefc64d1987afcf7fd749f2f Mon Sep 17 00:00:00 2001 From: 4coderz <4coderz@users.noreply.github.com> Date: Mon, 24 Mar 2014 12:28:43 +0530 Subject: [PATCH 2/2] Create example-notebook.ipynb This example has enabled edit option and audio url button --- example-notebook.ipynb | 103 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 example-notebook.ipynb diff --git a/example-notebook.ipynb b/example-notebook.ipynb new file mode 100644 index 0000000..8dfb776 --- /dev/null +++ b/example-notebook.ipynb @@ -0,0 +1,103 @@ +{ + "metadata": { + "blah": "stuff", + "browsercast": { + "audioURL": "http://wolever.github.io/browsercast/examples/example.ogg" + }, + "name": "example-notebook" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "code", + "collapsed": false, + "input": "foo = 7", + "language": "python", + "metadata": { + "browsercast": { + "time": 0 + } + }, + "outputs": [], + "prompt_number": 1 + }, + { + "cell_type": "code", + "collapsed": false, + "input": "bar = 42", + "language": "python", + "metadata": { + "browsercast": { + "time": 1.92 + } + }, + "outputs": [], + "prompt_number": 2 + }, + { + "cell_type": "code", + "collapsed": false, + "input": "print \"Sum:\", foo + bar\nprint \"Product:\", foo * bar", + "language": "python", + "metadata": { + "browsercast": { + "time": 4.17 + } + }, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": "Sum: 49\nProduct: 294\n" + } + ], + "prompt_number": 3 + }, + { + "cell_type": "code", + "collapsed": false, + "input": "print \"Hello, world!\"", + "language": "python", + "metadata": { + "browsercast": { + "time": 6.3 + } + }, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": "Hello, world!\n" + } + ], + "prompt_number": 4 + }, + { + "cell_type": "code", + "collapsed": false, + "input": "import browsercast\nbrowsercast.load()", + "language": "python", + "metadata": { + "browsercast": { + "time": 11.2 + } + }, + "outputs": [ + { + "html": "

Loading BrowserCast…

\n\n\n", + "metadata": {}, + "output_type": "pyout", + "prompt_number": 5, + "text": "" + } + ], + "prompt_number": 5 + } + ], + "metadata": {} + } + ] +}