From 473a40e4480ef31122ca9594d9fd3c8303347eda 2015-08-28 20:24:57 From: Ben Rousch Date: 2015-08-28 20:24:57 Subject: [PATCH] Grammar and spelling improvements --- diff --git a/examples/Notebook/JavaScript Notebook Extensions.ipynb b/examples/Notebook/JavaScript Notebook Extensions.ipynb index db001a9..70daddb 100644 --- a/examples/Notebook/JavaScript Notebook Extensions.ipynb +++ b/examples/Notebook/JavaScript Notebook Extensions.ipynb @@ -11,14 +11,15 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "One of the main reason that allowed us to developp the current notebook web application \n", - "was to embrase the web technology. \n", + "One of the main reasons we developed the current notebook as a web application \n", + "is to embrace the available-everywhere web technology. \n", "\n", - "By beeing a pure web application using HTML, Javascript and CSS, the Notebook can get \n", - "all the web technology improvement for free. Thus, as browsers support for different \n", - "media extend, The notebook web app should be able to be compatible without modification. \n", + "Being a pure web application using only HTML, Javascript and CSS, the Notebook can access \n", + "all of the web technology improvements for free. Thus, as browsers support for different \n", + "media extend, the notebook web app should be compatible without modification. \n", "\n", - "This is also true with performance of the User Interface as the speed of javascript VM increase. " + "This is also true with performance of the User Interface as the speed of the Javascript \n", + "VM increases. " ] }, { @@ -27,27 +28,27 @@ "source": [ "The other advantage of using only web technology is that the code of the interface is fully accessible to the end user, and modifiable live.\n", "Even if this task is not always easy, we strive to keep our code as accessible and reusable as possible.\n", - "This should allow with minimum effort to develop small extensions that customize the behavior of the web interface. " + "This should allow - with minimum effort - development of small extensions that customize the behavior of the web interface. " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ - "## Tempering with Notebook app" + "## Tampering with the Notebook app" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ - "The first tool that is availlable to you and that you shoudl be aware of are browser \"developpers tool\". The exact naming can change across browser, and might require the installation of extensions. But basically they can allow you to inspect/modify the DOM, and interact with the javascript code that run the frontend.\n", + "The first tool that is available to you and that you should be aware of are browser \"developer tools\". The exact name of these tools is different in each browser, and might require the installation of extensions. But basically they can allow you to inspect/modify the DOM, and interact with the Javascript code that runs the frontend.\n", "\n", - " - In Chrome and safari Developper tools are in the menu [Put mmenu name in english here] \n", - " - In firefox you might need to install [Firebug](http://getfirebug.com/)\n", + " - In Chrome and Safari, Developer tools are in the menu [Menu -> More tools -> Developer Tools] \n", + " - In Firefox you might need to install [Firebug](http://getfirebug.com/)\n", " - others ?\n", " \n", - "Those will be your best friends to debug and try different approach for your extensions." + "Those will be your best friends to debug and try different approaches for your extensions." ] }, { @@ -68,12 +69,12 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Above tools can be tedious to edit long javascipt files. Hopefully we provide the `%%javascript` magic. This allows you to quickly inject javascript into the notebook. Still the javascript injected this way will not survive reloading. Hence it is a good tool for testing an refinig a script.\n", + "The above tools can be tedious for editing long Javascipt files. Helpfully, we provide the `%%javascript` magic. This allows you to quickly inject Javascript into the notebook. Still, the Javascript injected this way will not survive reloading. Hence, it is a good tool for testing and refining a script.\n", "\n", - "You might see here and there people modifying css and injecting js into notebook by reading file and publishing them into the notebook.\n", - "Not only this often break the flow of the notebook and make the re-execution of the notebook broken, but it also mean that you need to execute those cells on all the notebook every time you need to update the code.\n", + "You might see here and there people modifying CSS and injecting Javascript into notebook by reading files and publishing them into the notebook.\n", + "Not only does this often break the flow of the notebook and break the re-execution of the notebook, but it also means that you need to execute those cells every time you need to update the code.\n", "\n", - "This can still be usefull in some cases, like the `%autosave` magic that allows to control the time between each save. But this can be replaced by a Javascript dropdown menu to select save interval." + "This can still be useful in some cases, like the `%autosave` magic that allows you to control the time between each save. But this can be replaced by a Javascript dropdown menu to select a save interval." ] }, { @@ -84,7 +85,7 @@ }, "outputs": [], "source": [ - "## you can inspect the autosave code to see what it does.\n", + "## You can inspect the autosave code to see what it does.\n", "%autosave??" ] }, @@ -99,10 +100,10 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "To inject Javascript we provide an entry point: `custom.js` that allow teh user to execute and load other resources into the notebook.\n", - "Javascript code in `custom.js` will be executed when the notebook app start and can then be used to customise almost anything in the UI and in the behavior of the notebook.\n", + "To inject Javascript we provide an entry point: `custom.js` that allows the user to execute and load other resources into the notebook.\n", + "Javascript code in `custom.js` will be executed when the notebook app starts and can then be used to customize almost anything in the UI and in the behavior of the notebook.\n", "\n", - "`custom.js` can be found in IPython profile dir, and so you can have different UI modification on a per profile basis, as well as share your modfication with others." + "`custom.js` can be found in the IPython profile dir, and so you can have different UI modifications on a per-profile basis, as well as share your modfications with others." ] }, { @@ -116,8 +117,8 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "You have been provided with an already existing profile folder with this tutorial...\n", - "start the notebook from the root of the tutorial directory with :\n", + "You have been provided with an pre-existing profile folder with this tutorial...\n", + "Start the notebook from the root of the tutorial directory with :\n", "\n", "```bash\n", "$ ipython notebook --ProfileDir.location=./profile_euroscipy\n", @@ -181,14 +182,14 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Note that `custom.js` is ment to be modified by user, when writing a script, you can define it in a separate file and add a line of configuration into `custom.js` that will fetch and execute the file." + "Note that `custom.js` is meant to be modified by the user. When writing a script, you can define it in a separate file and add a line of configuration into `custom.js` that will fetch and execute the file." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ - "**Warning** : even if modification of `custom.js` take effect immediately after browser refresh (except if browser cache is aggressive), *creating* a file in `static/` directory need a **server restart**." + "**Warning** : even if modification of `custom.js` takes effect immediately after a browser refresh (except if browser cache is aggressive), *creating* a file in `static/` directory needs a **server restart**." ] }, { @@ -215,7 +216,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Have a look at [default custom.js](https://github.com/ipython/ipython/blob/1.x/IPython/html/static/custom/custom.js), to see it's content and some more explanation." + "Have a look at [default custom.js](https://github.com/ipython/ipython/blob/1.x/IPython/html/static/custom/custom.js), to see it's contents and for more explanation." ] }, { @@ -229,7 +230,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "We've seen above that you can change the autosave rate by using a magic. This is typically something I don't want to type everytime, and that I don't like to embed into my workwlow and documents. (reader don't care what my autosave time is), let's build an extension that allow to do it. " + "We've seen above that you can change the autosave rate by using a magic. This is typically something I don't want to type everytime, and that I don't like to embed into my workflow and documents. (The reader doesn't care what my autosave time is), so let's build an extension that allow to do it. " ] }, { @@ -238,10 +239,10 @@ "foo": true }, "source": [ - "Create a dropdow elemement in the toolbar (DOM `IPython.toolbar.element`), you will need \n", + "Create a dropdown elemement in the toolbar (DOM `IPython.toolbar.element`). You will need \n", "\n", "- `IPython.notebook.set_autosave_interval(miliseconds)`\n", - "- know that 1min = 60 sec, and 1 sec = 1000 ms" + "- know that 1 min = 60 sec, and 1 sec = 1000 ms" ] }, { @@ -287,7 +288,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "#### A non interactive example first" + "#### A non-interactive example first" ] }, { @@ -301,7 +302,7 @@ "traitlets.config.cell_magic_highlight['magic_text/x-cython'].reg = [/^%%cython/]\n", "```\n", "\n", - "`text/x-cython` is the name of CodeMirror mode name, `magic_` prefix will just patch the mode so that the first line that contains a magic does not screw up the highlighting. `reg`is a list or regular expression that will trigger the change of mode." + "`text/x-cython` is the name of a CodeMirror mode name, the `magic_` prefix will just patch the mode so that the first line that contains a magic does not screw up the highlighting. `reg`is a list or regular expression that will trigger the change of mode." ] }, { @@ -315,7 +316,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Sadly you will have to read the js source file (but there are lots of comments) an/or build the javascript documentation using yuidoc.\n", + "Sadly, you will have to read the Javascript source file (but there are lots of comments) and/or build the Javascript documentation using YUIDoc.\n", "If you have `node` and `yui-doc` installed:" ] }, @@ -340,7 +341,7 @@ "info: (server): Starting server: http://127.0.0.1:3000\n", "```\n", "\n", - "and browse http://127.0.0.1:3000 to get docs" + "and browse to http://127.0.0.1:3000 to get the docs" ] }, { @@ -356,7 +357,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "By browsing the doc you will see that we have soem convenience methods that avoid to re-invent the UI everytime :\n", + "By browsing the docs you will see that we have some convenience methods that avoid re-inventing the UI everytime :\n", "```javascript\n", "IPython.toolbar.add_buttons_group([\n", " {\n", @@ -388,8 +389,8 @@ "foo": true }, "source": [ - "The most requested feature is generaly to be able to distinguish individual cell in th enotebook, or run specific action with them.\n", - "To do so, you can either use `IPython.notebook.get_selected_cell()`, or rely on `CellToolbar`. This allow you to register aset of action and graphical element that will be attached on individual cells." + "The most requested feature is generally to be able to distinguish individual cells in the notebook, or run specific actions with them.\n", + "To do so, you can either use `IPython.notebook.get_selected_cell()`, or rely on `CellToolbar`. This allows you to register a set of actions and graphical elements that will be attached to individual cells." ] }, { @@ -403,14 +404,14 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "You can see some example of what can be done by toggling the `Cell Toolbar` selector in the toolbar on top of the notebook. It provide two default `presets` that are `Default` and `slideshow`. Default allow edit the metadata attached to each cell manually." + "You can see some examples of what can be done by toggling the `Cell Toolbar` selector in the toolbar on top of the notebook. It provides two default `presets` that are `Default` and `slideshow`. Defaults allow editing the metadata attached to each cell manually." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ - "First we define a function that takes at first parameter an element on the DOM in which to inject UI element. Second element will be the cell this element will be registerd with. Then we will need to register that function ad give it a name.\n" + "First we define a function that takes as the first parameter an element on the DOM into which to inject UI element. The second element will be the cell with which this element will be registerd. Then we will need to register that function and give it a name.\n" ] }, { @@ -433,7 +434,7 @@ "var toggle = function(div, cell) {\n", " var button_container = $(div)\n", "\n", - " // let's create a button that show the current value of the metadata\n", + " // Let's create a button that shows the current value of the metadata\n", " var button = $('