<commit_before>{
 "metadata": {
  "name": "",
  "signature": "sha256:8afa887a25666b6427a6b8d765c476e62f2ac21cbd9ad37f9dcded9f15b85b22"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Creating a simple js extension"
     ]
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "<div class=\"alert alert-info\">\n",
      "The creation of js extensions are not well covered in the [IPython official docs](http://ipython.org/ipython-doc/dev/config/extensions/) (or maybe I didn't find the useful information) and you have to dive in the web to find useful information.\n",
      "</div>"
     ]
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "We will create an extension that allows us to talk to the IPython notebook and the text will be written in a cell in the notebook. It was tested with IPython 2.3.0 and 3.0.0.dev on chrome/chromium v40 (you need the [web speech API working in your browser](https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html))."
     ]
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "To make it work just create a folder called 'talk' in in the ***IPYTHONDIR/nbextensions*** folder and copy the files here <span style=\"background-color: red;\">(A\u00d1ADIR RUTA AL REPO)</span> in the recently created 'talk' folder. "
     ]
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "Now, to load the extension:"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "%%javascript\n",
      "IPython.load_extensions('talk/talk');"<commit_msg>added link to talk extension files<commit_after>{
 "metadata": {
  "name": "",
  "signature": "sha256:8afa887a25666b6427a6b8d765c476e62f2ac21cbd9ad37f9dcded9f15b85b22"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Creating a simple js extension"
     ]
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "<div class=\"alert alert-info\">\n",
      "The creation of js extensions are not well covered in the [IPython official docs](http://ipython.org/ipython-doc/dev/config/extensions/) (or maybe I didn't find the useful information) and you have to dive in the web to find useful information.\n",
      "</div>"
     ]
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "We will create an extension that allows us to talk to the IPython notebook and the text will be written in a cell in the notebook. It was tested with IPython 2.3.0 and 3.0.0.dev on chrome/chromium v40 (you need the [web speech API working in your browser](https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html))."
     ]
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "To make it work just create a folder called 'talk' in in the ***IPYTHONDIR/nbextensions*** folder and copy the files [here](https://github.com/kikocorreoso/PyConES14_talk-Hacking_the_Notebook/tree/master/nbextensions/talk) in the recently created 'talk' folder. "
     ]
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "Now, to load the extension:"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "%%javascript\n",
      "IPython.load_extensions('talk/talk');"
{'fraction_non_alphanumeric': 0.1528891346419685, 'fraction_numerical': 0.030135471385125796, 'mean_word_length': 2.764828303850156, 'pattern_counts': {'":': 52, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5694658', 'n_tokens_mistral': 1292, 'n_tokens_neox': 1211, 'n_words': 332}