Created
April 16, 2014 14:28
-
-
Save ArcTanSusan/10884741 to your computer and use it in GitHub Desktop.
This file contains 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
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:025883229740ec0da175d59088cac88b2347cda445f6eb3bb7b65c99a2e43892" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"collapsed": true, | |
"input": [ | |
"!date" | |
], | |
"language": "python", | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"stream": "stdout", | |
"text": [ | |
"Tue Apr 15 20:28:57 EDT 2014\r\n" | |
] | |
} | |
], | |
"prompt_number": 29 | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": [ | |
"%%javascript\n", | |
"var toggle_all = function(){\n", | |
" this.state = !this.state;\n", | |
" var cells = IPython.notebook.get_cells()\n", | |
" for(var i in cells ){\n", | |
" cells[i].toggle_line_numbers(this.state)\n", | |
" }\n", | |
"}" | |
], | |
"language": "python", | |
"metadata": {}, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": [ | |
"IPython.toolbar.add_buttons_group([{\n", | |
" label:'toggle all line number',\n", | |
" icon:'ui-icon-note',\n", | |
" callback:toggle_all,\n", | |
"}])\n", | |
"print(\"hi\")\n", | |
"import pandas as pd\n", | |
"pd.DataFrame(zip(range(10),[\"word_entry\"]*10))" | |
], | |
"language": "python", | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"javascript": [ | |
"var toggle_all = function(){\n", | |
" this.state = !this.state;\n", | |
" var cells = IPython.notebook.get_cells()\n", | |
" for(var i in cells ){\n", | |
" cells[i].toggle_line_numbers(this.state)\n", | |
" }\n", | |
"}\n", | |
"\n", | |
"\n", | |
"IPython.toolbar.add_buttons_group([{\n", | |
" label:'toggle all line number',\n", | |
" icon:'ui-icon-note',\n", | |
" callback:toggle_all,\n", | |
"}])" | |
], | |
"metadata": {}, | |
"output_type": "display_data", | |
"text": [ | |
"<IPython.core.display.Javascript at 0x10f183310>" | |
] | |
} | |
], | |
"prompt_number": 28 | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"| Name | Description |\n", | |
"| ------------- | ----------- |\n", | |
"| Help | ~~Display the~~ help window.|\n", | |
"| Close | _Closes_ a window |" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"Here's an example:\n", | |
"\n", | |
"```\n", | |
"function test() {\n", | |
" console.log(\"notice the blank line before this function?\");\n", | |
"}\n", | |
"```" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"~~Mistaken text.~~" | |
] | |
} | |
], | |
"metadata": {} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment