01_notebook_introduction.ipynb
601 lines
| 54.1 KiB
| text/plain
|
TextLexer
Fernando Perez
|
r5787 | { | |
"metadata": { | |||
"name": "01_notebook_introduction" | |||
Brian Granger
|
r6035 | }, | |
"nbformat": 3, | |||
MinRK
|
r7739 | "nbformat_minor": 0, | |
Fernando Perez
|
r5787 | "worksheets": [ | |
{ | |||
"cells": [ | |||
{ | |||
MinRK
|
r7739 | "cell_type": "heading", | |
"level": 1, | |||
"metadata": {}, | |||
"source": [ | |||
"An introduction to the IPython notebook" | |||
] | |||
}, | |||
{ | |||
Brian Granger
|
r6035 | "cell_type": "markdown", | |
MinRK
|
r7739 | "metadata": {}, | |
Fernando Perez
|
r5787 | "source": [ | |
MinRK
|
r7739 | "\n", | |
"The IPython web notebook is a frontend that allows for new modes\n", | |||
"of interaction with IPython: this web-based interface allows you to execute Python and IPython\n", | |||
"commands in each input cell just like you would at the IPython terminal or Qt console, but you can\n", | |||
"also save an entire session as a document in a file with the `.ipynb` extension.\n", | |||
"\n", | |||
"The document you are reading now is precisely an example of one such notebook, and we will show you\n", | |||
"here how to best use this new interface.\n", | |||
"\n", | |||
"The first thing to understand is that a notebook consists of a sequence of 'cells' that can contain \n", | |||
"either text (such as this one) or code meant for execution (such as the next one):\n", | |||
"\n", | |||
"* Text cells can be written using [Markdown syntax](http://daringfireball.net/projects/markdown/syntax) \n", | |||
"(in a future release we will also provide support for reStructuredText and Sphinx integration, and we \n", | |||
"welcome help from interested contributors to make that happen).\n", | |||
"\n", | |||
"* Code cells take IPython input (i.e. Python code, `%magics`, `!system calls`, etc) like IPython at\n", | |||
"the terminal or at the Qt Console. The only difference is that in order to execute a cell, you *must*\n", | |||
"use `Shift-Enter`, as pressing `Enter` will add a new line of text to the cell. When you type \n", | |||
"`Shift-Enter`, the cell content is executed, output displayed and a new cell is created below. Try\n", | |||
Fernando Perez
|
r5787 | "it now by putting your cursor on the next cell and typing `Shift-Enter`:" | |
] | |||
Brian Granger
|
r6035 | }, | |
Fernando Perez
|
r5787 | { | |
Brian Granger
|
r6035 | "cell_type": "code", | |
MinRK
|
r7739 | "collapsed": false, | |
Fernando Perez
|
r5787 | "input": [ | |
"\"This is the new IPython notebook\"" | |||
Brian Granger
|
r6035 | ], | |
"language": "python", | |||
MinRK
|
r7739 | "metadata": {}, | |
Fernando Perez
|
r5787 | "outputs": [ | |
{ | |||
Brian Granger
|
r6035 | "output_type": "pyout", | |
MinRK
|
r7739 | "prompt_number": 2, | |
Fernando Perez
|
r5787 | "text": [ | |
MinRK
|
r5981 | "'This is the new IPython notebook'" | |
Fernando Perez
|
r5787 | ] | |
} | |||
Brian Granger
|
r6035 | ], | |
MinRK
|
r7739 | "prompt_number": 2 | |
Brian Granger
|
r6035 | }, | |
Fernando Perez
|
r5787 | { | |
Brian Granger
|
r6035 | "cell_type": "markdown", | |
MinRK
|
r7739 | "metadata": {}, | |
Fernando Perez
|
r5787 | "source": [ | |
MinRK
|
r7739 | "You can re-execute the same cell over and over as many times as you want. Simply put your\n", | |
"cursor in the cell again, edit at will, and type `Shift-Enter` to execute. \n", | |||
"\n", | |||
"**Tip:** A cell can also be executed\n", | |||
"*in-place*, where IPython executes its content but leaves the cursor in the same cell. This is done by\n", | |||
"typing `Ctrl-Enter` instead, and is useful if you want to quickly run a command to check something \n", | |||
"before tping the real content you want to leave in the cell. For example, in the next cell, try issuing\n", | |||
Fernando Perez
|
r5787 | "several system commands in-place with `Ctrl-Enter`, such as `pwd` and then `ls`:" | |
] | |||
Brian Granger
|
r6035 | }, | |
Fernando Perez
|
r5787 | { | |
Brian Granger
|
r6035 | "cell_type": "code", | |
MinRK
|
r7739 | "collapsed": false, | |
Fernando Perez
|
r5787 | "input": [ | |
"ls" | |||
Brian Granger
|
r6035 | ], | |
"language": "python", | |||
MinRK
|
r7739 | "metadata": {}, | |
Fernando Perez
|
r5787 | "outputs": [ | |
{ | |||
Brian Granger
|
r6035 | "output_type": "stream", | |
"stream": "stdout", | |||
Fernando Perez
|
r5787 | "text": [ | |
MinRK
|
r7739 | "00_notebook_tour.ipynb callbacks.ipynb python-logo.svg\r\n", | |
"01_notebook_introduction.ipynb cython_extension.ipynb rmagic_extension.ipynb\r\n", | |||
"Animations_and_Progress.ipynb display_protocol.ipynb sympy.ipynb\r\n", | |||
"Capturing Output.ipynb formatting.ipynb sympy_quantum_computing.ipynb\r\n", | |||
"Script Magics.ipynb octavemagic_extension.ipynb trapezoid_rule.ipynb\r\n", | |||
"animation.m4v progbar.ipynb\r\n" | |||
Fernando Perez
|
r5787 | ] | |
} | |||
Brian Granger
|
r6035 | ], | |
MinRK
|
r7739 | "prompt_number": 3 | |
Brian Granger
|
r6035 | }, | |
Fernando Perez
|
r5787 | { | |
Brian Granger
|
r6035 | "cell_type": "markdown", | |
MinRK
|
r7739 | "metadata": {}, | |
Fernando Perez
|
r5787 | "source": [ | |
MinRK
|
r7739 | "In a cell, you can type anything from a single python expression to an arbitrarily long amount of code \n", | |
Fernando Perez
|
r5787 | "(although for reasons of readability, you should probably limit this to a few dozen lines):" | |
] | |||
Brian Granger
|
r6035 | }, | |
Fernando Perez
|
r5787 | { | |
Brian Granger
|
r6035 | "cell_type": "code", | |
MinRK
|
r7739 | "collapsed": false, | |
Fernando Perez
|
r5787 | "input": [ | |
MinRK
|
r7739 | "def f(x):\n", | |
" \"\"\"My function\n", | |||
" x : parameter\"\"\"\n", | |||
" \n", | |||
" return x+1\n", | |||
"\n", | |||
Fernando Perez
|
r5787 | "print \"f(3) = \", f(3)" | |
Brian Granger
|
r6035 | ], | |
"language": "python", | |||
MinRK
|
r7739 | "metadata": {}, | |
Fernando Perez
|
r5787 | "outputs": [ | |
{ | |||
Brian Granger
|
r6035 | "output_type": "stream", | |
"stream": "stdout", | |||
Fernando Perez
|
r5787 | "text": [ | |
MinRK
|
r7739 | "f(3) = 4\n" | |
Fernando Perez
|
r5787 | ] | |
} | |||
Brian Granger
|
r6035 | ], | |
MinRK
|
r7739 | "prompt_number": 4 | |
}, | |||
{ | |||
"cell_type": "heading", | |||
"level": 2, | |||
"metadata": {}, | |||
"source": [ | |||
"User interface" | |||
] | |||
Brian Granger
|
r6035 | }, | |
Fernando Perez
|
r5787 | { | |
Brian Granger
|
r6035 | "cell_type": "markdown", | |
MinRK
|
r7739 | "metadata": {}, | |
Fernando Perez
|
r5787 | "source": [ | |
MinRK
|
r7739 | "When you start a new notebook server with `ipython notebook`, your\n", | |
"browser should open into the *Dashboard*, a page listing all notebooks\n", | |||
"available in the current directory as well as letting you create new\n", | |||
"notebooks. In this page, you can also drag and drop existing `.py` files\n", | |||
"over the file list to import them as notebooks (see the manual for \n", | |||
"[further details on how these files are \n", | |||
"interpreted](http://ipython.org/ipython-doc/stable/interactive/htmlnotebook.html)).\n", | |||
"\n", | |||
"Once you open an existing notebook (like this one) or create a new one,\n", | |||
"you are in the main notebook interface, which consists of a main editing\n", | |||
"area (where these cells are contained) as well as a menu and \n", | |||
"permanent header area at the top, and a pager that rises from the\n", | |||
Fernando Perez
|
r5787 | "bottom when needed and can be collapsed again." | |
] | |||
Brian Granger
|
r6035 | }, | |
Fernando Perez
|
r5787 | { | |
MinRK
|
r7739 | "cell_type": "heading", | |
"level": 3, | |||
"metadata": {}, | |||
"source": [ | |||
"Main editing area" | |||
] | |||
}, | |||
{ | |||
Brian Granger
|
r6035 | "cell_type": "markdown", | |
MinRK
|
r7739 | "metadata": {}, | |
Fernando Perez
|
r5787 | "source": [ | |
MinRK
|
r7739 | "Here, you can move with the arrow keys or using the \n", | |
"scroll bars. The cursor enters code cells immediately, but only selects\n", | |||
"text (markdown) cells without entering in them; to enter a text cell,\n", | |||
"use `Enter` (or double-click), and `Shift-Enter` to exit it again (just like to execute a \n", | |||
Fernando Perez
|
r5787 | "code cell)." | |
] | |||
Brian Granger
|
r6035 | }, | |
Fernando Perez
|
r5787 | { | |
MinRK
|
r7739 | "cell_type": "heading", | |
"level": 3, | |||
"metadata": {}, | |||
"source": [ | |||
"Menu" | |||
] | |||
}, | |||
{ | |||
Brian Granger
|
r6035 | "cell_type": "markdown", | |
MinRK
|
r7739 | "metadata": {}, | |
"source": [ | |||
"The menu bar conains all the commands you can use to manipulate the notebook.\n", | |||
"\n", | |||
"The *File* menu has the usual open/save file operations, as well as Export,\n", | |||
"for downloading the notebook to your computer.\n", | |||
"\n", | |||
"*Edit* has controls for cut/copy/paste, and moving cells around.\n", | |||
"\n", | |||
"*View* lets you toggle visibility of the header elements,\n", | |||
"to recover precious screen real estate.\n", | |||
"\n", | |||
"The *Cell* menu lets you manipulate individual cells,\n", | |||
"and the names should be fairly self-explanatory.\n", | |||
"\n", | |||
"The *Kernel* menu lets you signal the kernel executing your code. \n", | |||
"`Interrupt` does the equivalent of hitting `Ctrl-C` at a terminal, and\n", | |||
"`Restart` fully kills the kernel process and starts a fresh one. Obviously\n", | |||
"this means that all your previous variables are destroyed, but it also\n", | |||
"makes it easy to get a fresh kernel in which to re-execute a notebook, perhaps\n", | |||
"after changing an extension module for which Python's `reload` mechanism\n", | |||
"does not work.\n", | |||
"\n", | |||
"The *Help* menu contains links to the documentation of some projects\n", | |||
"closely related to IPython as well as the minimal keybindings you need to\n", | |||
"know. But you should use `Ctrl-m h` (or click the `QuickHelp` button at\n", | |||
"the top) and learn some of the other keybindings, as it will make your \n", | |||
"workflow much more fluid and efficient.\n", | |||
"\n", | |||
"You will also see a few buttons there for common actions,\n", | |||
"and hovering over each button will tell you which command they correspond to,\n", | |||
"if the icons are not clear enough." | |||
] | |||
}, | |||
{ | |||
"cell_type": "heading", | |||
"level": 3, | |||
"metadata": {}, | |||
Fernando Perez
|
r5787 | "source": [ | |
MinRK
|
r7739 | "Header bar" | |
Fernando Perez
|
r5787 | ] | |
Brian Granger
|
r6035 | }, | |
Fernando Perez
|
r5787 | { | |
Brian Granger
|
r6035 | "cell_type": "markdown", | |
MinRK
|
r7739 | "metadata": {}, | |
Fernando Perez
|
r5787 | "source": [ | |
MinRK
|
r7739 | "The header area at the top allows you to rename an existing \n", | |
"notebook and open up a short help tooltip. This area also indicates\n", | |||
"with a red **Busy** mark on the right whenever the kernel is busy executing\n", | |||
Fernando Perez
|
r5787 | "code." | |
] | |||
Brian Granger
|
r6035 | }, | |
Fernando Perez
|
r5787 | { | |
MinRK
|
r7739 | "cell_type": "heading", | |
"level": 3, | |||
"metadata": {}, | |||
"source": [ | |||
"The pager at the bottom" | |||
] | |||
}, | |||
{ | |||
Brian Granger
|
r6035 | "cell_type": "markdown", | |
MinRK
|
r7739 | "metadata": {}, | |
Fernando Perez
|
r5787 | "source": [ | |
MinRK
|
r7739 | "Whenever IPython needs to display additional \n", | |
"information, such as when you type `somefunction?` in a cell, the notebook\n", | |||
"opens a pane at the bottom where this information is shown. You can keep\n", | |||
"this pager pane open for reference (it doesn't block input in the main area)\n", | |||
Fernando Perez
|
r5787 | "or dismiss it by clicking on its divider bar." | |
] | |||
Brian Granger
|
r6035 | }, | |
Fernando Perez
|
r5787 | { | |
MinRK
|
r7739 | "cell_type": "heading", | |
"level": 3, | |||
"metadata": {}, | |||
"source": [ | |||
"Tab completion and tooltips" | |||
] | |||
}, | |||
{ | |||
Brian Granger
|
r6035 | "cell_type": "markdown", | |
MinRK
|
r7739 | "metadata": {}, | |
Fernando Perez
|
r5787 | "source": [ | |
MinRK
|
r7739 | "The notebook uses the same underlying machinery for tab completion that \n", | |
"IPython uses at the terminal, but displays the information differently.\n", | |||
"Whey you complete with the `Tab` key, IPython shows a drop list with all\n", | |||
"available completions. If you type more characters while this list is open,\n", | |||
"IPython automatically eliminates from the list options that don't match the\n", | |||
"new characters; once there is only one option left you can hit `Tab` once\n", | |||
"more (or `Enter`) to complete. You can also select the completion you\n", | |||
"want with the arrow keys or the mouse, and then hit `Enter`.\n", | |||
"\n", | |||
"In addition, if you hit `Tab` inside of open parentheses, IPython will \n", | |||
"search for the docstring of the last object left of the parens and will\n", | |||
"display it on a tooltip. For example, type `list(<TAB>` and you will\n", | |||
Fernando Perez
|
r5787 | "see the docstring for the builtin `list` constructor:" | |
] | |||
Brian Granger
|
r6035 | }, | |
Fernando Perez
|
r5787 | { | |
Brian Granger
|
r6035 | "cell_type": "code", | |
MinRK
|
r7739 | "collapsed": false, | |
Fernando Perez
|
r5787 | "input": [ | |
MinRK
|
r7739 | "# Position your cursor after the ( and hit the Tab key:\n", | |
Matthias BUSSONNIER
|
r7185 | "range(" | |
Brian Granger
|
r6035 | ], | |
"language": "python", | |||
MinRK
|
r7739 | "metadata": {}, | |
MinRK
|
r5981 | "outputs": [] | |
Brian Granger
|
r6035 | }, | |
Fernando Perez
|
r5787 | { | |
Brian Granger
|
r6035 | "cell_type": "markdown", | |
MinRK
|
r7739 | "metadata": {}, | |
Fernando Perez
|
r5787 | "source": [ | |
MinRK
|
r7739 | "Moreover, pressing tab several time in a row allows you change the behaviour of the tooltip.\n", | |
"\n", | |||
"* first `tab` press, you get a classical tooltip\n", | |||
"* second tab, the tooltip grow vertically, and allow you to scroll the docstring\n", | |||
"* third tab, tooltip will be made sticky for 10 seconds, allowing you to carry on typing while it stays open.\n", | |||
"* forth tab, the tooltip help is sent to the pager at the bottom of the screen.\n", | |||
"<script>\n", | |||
" IPython.tooltip.tabs_functions = [ function(cell,text){\n", | |||
" IPython.tooltip._request_tooltip(cell,text);\n", | |||
" IPython.notification_widget.set_message('tab again to expand pager',2500);\n", | |||
" setTimeout(function(){\n", | |||
" $('.tooltiptext pre').text(\"function signture : You've invoked a tooltip !\\n\\nWell done! Here usualy lies the current function *call signature* and it's *docstring*. You can now expand the tooltip pressing <tab> a second time...\")},400);\n", | |||
" },\n", | |||
" function(){\n", | |||
" IPython.tooltip.expand();\n", | |||
" IPython.notification_widget.set_message('tab again to make pager sticky for 10s',2500);\n", | |||
" setTimeout(function(){\n", | |||
" $('.tooltiptext pre').text(\"Now the tooltip is expanded !\\\n", | |||
" \\n\\nThis is really usefull if you have long docstring and if you want to be able to scroll them. \\\n", | |||
"For example, I can give you many information about the tooltip:\\n - The tooltip is smart, and \\\n", | |||
"you don't always need to press tab to invoke it, if you press an opening bracket `(` then nothing \\\n", | |||
"for some time, tooltip will be invoked by itself.\\\n", | |||
"\\n - Also you can hoover over the icon on the top right to know what they are dooing...\\\n", | |||
"\\n\\nBack to the next lesson.\\n\\nSometime you need to the tooltip to stay on screen while\\\n", | |||
"you type. That's the reason for the sticky mode (indicated by a small clock on the top left of the tooltip),\\\n", | |||
"\\n\\nNow press <tab> a 3rd time and continue typing some text to test it...\")\n", | |||
" },400);\n", | |||
" },\n", | |||
" function(){\n", | |||
" var time = 35;\n", | |||
" IPython.tooltip.stick(time);\n", | |||
" $('.tooltiptext pre').text(\"Type more text !...\\n\\n range(7,125,3)\\n\\n The tooltip is in sticky mode, it won't be dismissed for at least 10 secondes \",400);\n", | |||
" setTimeout(function(){\n", | |||
" $('.tooltiptext pre').text(\"That was sticky mode...\\nI'll keep it on 15 more seconds just for you.\\n\\nLast thing you can do is send the current help displayed in the tooltip to the pager at the bottom of the screen. To do that, press tab 4 time in a row after a parenthesis. \\n\\n Now I'll stop bothering you and let you Play with the tooltip !\");\n", | |||
" reset_tooltip()\n", | |||
" },15000);\n", | |||
" },\n", | |||
" function(cell){\n", | |||
" IPython.tooltip.cancel_stick();\n", | |||
" reset_tooltip()\n", | |||
" IPython.tooltip.showInPager(cell);\n", | |||
" IPython.tooltip._cmfocus();\n", | |||
" }\n", | |||
" ];\n", | |||
" \n", | |||
" reset_tooltip = function(){\n", | |||
" IPython.tooltip.tabs_functions = [ function(cell,text){\n", | |||
" IPython.tooltip._request_tooltip(cell,text);\n", | |||
" IPython.notification_widget.set_message('tab again to expand pager',2500);\n", | |||
" },\n", | |||
" function(){\n", | |||
" IPython.tooltip.expand();\n", | |||
" IPython.notification_widget.set_message('tab again to make pager sticky for 10s',2500);\n", | |||
" },\n", | |||
" function(){\n", | |||
" IPython.tooltip.stick();\n", | |||
" IPython.notification_widget.set_message('tab again to open help in pager',2500);\n", | |||
" },\n", | |||
" function(cell){\n", | |||
" IPython.tooltip.cancel_stick();\n", | |||
" IPython.tooltip.showInPager(cell);\n", | |||
" IPython.tooltip._cmfocus();\n", | |||
" }\n", | |||
" ];\n", | |||
" }\n", | |||
Matthias BUSSONNIER
|
r7185 | "</script>" | |
] | |||
}, | |||
{ | |||
MinRK
|
r7739 | "cell_type": "heading", | |
"level": 2, | |||
"metadata": {}, | |||
"source": [ | |||
"The frontend/kernel model" | |||
] | |||
}, | |||
{ | |||
Matthias BUSSONNIER
|
r7185 | "cell_type": "markdown", | |
MinRK
|
r7739 | "metadata": {}, | |
Matthias BUSSONNIER
|
r7185 | "source": [ | |
MinRK
|
r7739 | "The IPython notebook works on a client/server model where an *IPython kernel*\n", | |
"starts in a separate process and acts as a server to executes the code you type,\n", | |||
"while the web browser provides acts as a client, providing a front end environment\n", | |||
"for you to type. But one kernel is capable of simultaneously talking to more than\n", | |||
"one client, and they do not all need to be of the same kind. All IPython frontends\n", | |||
"are capable of communicating with a kernel, and any number of them can be active\n", | |||
"at the same time. In addition to allowing you to have, for example, more than one\n", | |||
"browser session active, this lets you connect clients with different user interface features.\n", | |||
"\n", | |||
"For example, you may want to connect a Qt console to your kernel and use it as a help\n", | |||
"browser, calling `??` on objects in the Qt console (whose pager is more flexible than the\n", | |||
"one in the notebook). You can start a new Qt console connected to your current kernel by \n", | |||
"using the `%qtconsole` magic, this will automatically detect the necessary connection\n", | |||
"information.\n", | |||
"\n", | |||
"If you want to open one manually, or want to open a text console from a terminal, you can \n", | |||
Fernando Perez
|
r5787 | "get your kernel's connection information with the `%connect_info` magic:" | |
] | |||
Brian Granger
|
r6035 | }, | |
Fernando Perez
|
r5787 | { | |
Brian Granger
|
r6035 | "cell_type": "code", | |
MinRK
|
r7739 | "collapsed": false, | |
Fernando Perez
|
r5787 | "input": [ | |
"%connect_info" | |||
Brian Granger
|
r6035 | ], | |
"language": "python", | |||
MinRK
|
r7739 | "metadata": {}, | |
Fernando Perez
|
r5787 | "outputs": [ | |
{ | |||
Brian Granger
|
r6035 | "output_type": "stream", | |
"stream": "stdout", | |||
Fernando Perez
|
r5787 | "text": [ | |
MinRK
|
r7739 | "{\n", | |
" \"stdin_port\": 52858, \n", | |||
" \"ip\": \"127.0.0.1\", \n", | |||
" \"hb_port\": 52859, \n", | |||
" \"key\": \"7efd45ca-d8a2-41b0-9cea-d9116d0fb883\", \n", | |||
" \"shell_port\": 52856, \n", | |||
" \"iopub_port\": 52857\n", | |||
"}\n", | |||
"\n", | |||
"Paste the above JSON into a file, and connect with:\n", | |||
" $> ipython <app> --existing <file>\n", | |||
"or, if you are local, you can connect with just:\n", | |||
" $> ipython <app> --existing kernel-b3bac7c1-8b2c-4536-8082-8d1df24f99ac.json \n", | |||
"or even just:\n", | |||
" $> ipython <app> --existing \n", | |||
"if this is the most recent IPython session you have started.\n" | |||
Fernando Perez
|
r5787 | ] | |
} | |||
Brian Granger
|
r6035 | ], | |
MinRK
|
r7739 | "prompt_number": 6 | |
}, | |||
{ | |||
"cell_type": "heading", | |||
"level": 2, | |||
"metadata": {}, | |||
"source": [ | |||
"The kernel's `raw_input` and `%debug`" | |||
] | |||
Brian Granger
|
r6035 | }, | |
Fernando Perez
|
r5787 | { | |
Brian Granger
|
r6035 | "cell_type": "markdown", | |
MinRK
|
r7739 | "metadata": {}, | |
Fernando Perez
|
r5787 | "source": [ | |
MinRK
|
r7739 | "The one feature the notebook currently doesn't support as a client is the ability to send data to the kernel's\n", | |
"standard input socket. That is, if the kernel requires information to be typed interactively by calling the\n", | |||
"builtin `raw_input` function, the notebook will be blocked. This happens for example if you run a script\n", | |||
"that queries interactively for parameters, and very importantly, is how the interactive IPython debugger that \n", | |||
"activates when you type `%debug` works.\n", | |||
"\n", | |||
"So, in order to be able to use `%debug` or anything else that requires `raw_input`, you can either use a Qt \n", | |||
"console or a terminal console:\n", | |||
"\n", | |||
"- From the notebook, typing `%qtconsole` finds all the necessary connection data for you.\n", | |||
"- From the terminal, first type `%connect_info` while still in the notebook, and then copy and paste the \n", | |||
Fernando Perez
|
r5787 | "resulting information, using `qtconsole` or `console` depending on which type of client you want." | |
] | |||
Brian Granger
|
r6035 | }, | |
Fernando Perez
|
r5787 | { | |
MinRK
|
r7739 | "cell_type": "heading", | |
"level": 2, | |||
"metadata": {}, | |||
"source": [ | |||
"Display of complex objects" | |||
] | |||
}, | |||
{ | |||
Brian Granger
|
r6035 | "cell_type": "markdown", | |
MinRK
|
r7739 | "metadata": {}, | |
Fernando Perez
|
r5787 | "source": [ | |
MinRK
|
r7739 | "As the 'tour' notebook shows, the IPython notebook has fairly sophisticated display capabilities. In addition\n", | |
"to the examples there, you can study the `display_protocol` notebook in this same examples folder, to \n", | |||
"learn how to customize arbitrary objects (in your own code or external libraries) to display in the notebook\n", | |||
Fernando Perez
|
r5787 | "in any way you want, including graphical forms or mathematical expressions." | |
] | |||
Brian Granger
|
r6035 | }, | |
Fernando Perez
|
r5787 | { | |
MinRK
|
r7739 | "cell_type": "heading", | |
"level": 2, | |||
"metadata": {}, | |||
"source": [ | |||
"Plotting support" | |||
] | |||
}, | |||
{ | |||
Brian Granger
|
r6035 | "cell_type": "markdown", | |
MinRK
|
r7739 | "metadata": {}, | |
Fernando Perez
|
r5787 | "source": [ | |
MinRK
|
r7739 | "As we've explained already, the notebook is just another frontend talking to the same IPython kernel that\n", | |
"you're familiar with, so the same options for plotting support apply.\n", | |||
"\n", | |||
"You can enable inline plotting with `%pylab inline`:" | |||
Fernando Perez
|
r5787 | ] | |
Brian Granger
|
r6035 | }, | |
Fernando Perez
|
r5787 | { | |
Brian Granger
|
r6035 | "cell_type": "code", | |
MinRK
|
r7739 | "collapsed": false, | |
Fernando Perez
|
r5787 | "input": [ | |
MinRK
|
r7739 | "%pylab inline" | |
Brian Granger
|
r6035 | ], | |
"language": "python", | |||
MinRK
|
r7739 | "metadata": {}, | |
Fernando Perez
|
r5787 | "outputs": [ | |
{ | |||
Brian Granger
|
r6035 | "output_type": "stream", | |
"stream": "stdout", | |||
Fernando Perez
|
r5787 | "text": [ | |
MinRK
|
r7739 | "\n", | |
"Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.zmq.pylab.backend_inline].\n", | |||
"For more information, type 'help(pylab)'.\n" | |||
Fernando Perez
|
r5787 | ] | |
MinRK
|
r7739 | } | |
], | |||
"prompt_number": 7 | |||
}, | |||
{ | |||
"cell_type": "markdown", | |||
"metadata": {}, | |||
"source": [ | |||
"If you start the notebook server itself with `--pylab`, you will get matplotlib's floating, interactive windows and you\n", | |||
"can call the `display` function to paste figures into the notebook document. If you start it with \n", | |||
"`--pylab inline`, all plots will appear inline automatically. In this regard, the notebook works identically\n", | |||
"to the Qt console.\n", | |||
"\n", | |||
"Note that if you start the notebook server with pylab support, *all* kernels are automatically started in\n", | |||
"pylab mode and with the same choice of backend (i.e. floating windows or inline figures).\n", | |||
"For this reason, it is recommended that you\n", | |||
"start the notebook server simply by typing `ipython notebook`, and then selectively turn on pylab support \n", | |||
"only for the notebooks you want by using the `%pylab` magic (see its docstring for details)." | |||
] | |||
}, | |||
{ | |||
"cell_type": "code", | |||
"collapsed": false, | |||
"input": [ | |||
"plot(rand(100))" | |||
], | |||
"language": "python", | |||
"metadata": {}, | |||
"outputs": [ | |||
Fernando Perez
|
r5787 | { | |
Brian Granger
|
r6035 | "output_type": "pyout", | |
MinRK
|
r7739 | "prompt_number": 8, | |
Fernando Perez
|
r5787 | "text": [ | |
MinRK
|
r7739 | "[<matplotlib.lines.Line2D at 0x1124ba350>]" | |
Fernando Perez
|
r5787 | ] | |
Brian Granger
|
r6035 | }, | |
Fernando Perez
|
r5787 | { | |
Brian Granger
|
r6035 | "output_type": "display_data", | |
MinRK
|
r7739 | "png": "iVBORw0KGgoAAAANSUhEUgAAAXgAAAD9CAYAAAC2l2x5AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJztfXt0HcWd5nelK+uF329ZIiZItmwcbLIGh2STmFeMmcQk\nwC7m7CRZQsBLhknIkp1Hcs4Ez544mJw5hBNnsyZMCORhzDBsDASU4ATxCDEGzGuwAUMskOSnbMuy\nbD2upN4/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LsvqqqA7dvJucYR5GURd1+UC5QEv337djQ3N2Pu3LmoqqrC6tWrsWXL\nloJtHn74YXz5g7Jpy5YtQ29vLw4cOBBeiy0sYkBDA/n9mc/E244wMWECMGkScNddNvOlXKAk+O7u\nbjQx72mNjY3o7u523aarq8twMy0s4kVzM/CP/1jeC78vXEhy3kU1dixKE8oga0bzMe44jtbf6e4v\nDVi7dm3cTUgMSqkvvv/9cPdfSn0RNmxfBIeS4OfMmYPOzs5Tnzs7O9HISRh+m66uLswRSAD+IWBh\nYWFhES6UFs3SpUuxe/dudHR0YHh4GJs3b8aqVasKtlm1ahXuu+8+AMC2bdswadIkzJw5M7wWW1hY\nWFhoQangs9ksNmzYgBUrVmB0dBTXXXcdFixYgI0bNwIA1qxZg8suuwyPPfYYmpubUV9fj3vuuSeS\nhltYWFhYuMAJGY8//rgzf/58p7m52bntttvCPlyi8P777zvLly93Fi5c6Jx11lnOnXfe6TiO4xw+\nfNi5+OKLnZaWFueSSy5xjh49GnNLo8PIyIizZMkS57Of/azjOOnti6NHjzpXXnml09ra6ixYsMDZ\ntm1bavti3bp1zsKFC51FixY511xzjTM4OJiavrj22mudGTNmOIsWLTr1nerc161b5zQ3Nzvz5893\nfve737nuP9R5ajp59OWMqqoq3HHHHXjjjTewbds2/PjHP8auXbtw22234ZJLLsHbb7+Niy66CLfd\ndlvcTY0Md955JxYuXHgq4J7WvvjGN76Byy67DLt27cJrr72G1tbWVPZFR0cHfvrTn2LHjh14/fXX\nMTo6ivvvvz81fXHttdeira2t4DvZue/cuRObN2/Gzp070dbWhq997WsYGxtTHyCUx9IHeO6555wV\nK1ac+vz973/f+f73vx/mIRONyy+/3HniiSec+fPnO/v373ccx3H27dvnzJ8/P+aWRYPOzk7noosu\ncv74xz+eUvBp7Ive3l7njDPOKPo+jX1x+PBhZ968ec6RI0ecXC7nfPazn3V+//vfp6ov9uzZU6Dg\nZee+bt26AhdkxYoVzp///GflvkNV8Dp59GlBR0cHXn75ZSxbtgwHDhw4FYieOXNmaiaGffOb38QP\nfvADVDAFTtLYF3v27MH06dNx7bXX4qMf/Siuv/56nDhxIpV9MWXKFNxyyy04/fTT0dDQgEmTJuGS\nSy5JZV9QyM597969BVmMOnwaKsHbvHeC/v5+XHnllbjzzjsxfvz4gv/LZDKp6KdHH30UM2bMwDnn\nnCNNmU1LX4yMjGDHjh342te+hh07dqC+vr7IgkhLX7z77rv44Q9/iI6ODuzduxf9/f345S9/WbBN\nWvpCBLdzd+uXUAleJ4++3JHL5XDllVfii1/8Ij7/+c8DIE/l/fv3AwD27duHGSlYbv65557Dww8/\njDPOOAPXXHMN/vjHP+KLX/xiKvuisbERjY2NOPfccwEAV111FXbs2IFZs2alri9efPFFfPzjH8fU\nqVORzWZxxRVX4M9//nMq+4JCdk/ozjliESrB6+TRlzMcx8F1112HhQsX4uabbz71/apVq3DvvfcC\nAO69995TxF/OWLduHTo7O7Fnzx7cf//9uPDCC/GLX/wilX0xa9YsNDU14e233wYAbN26FWeddRY+\n97nPpa4vWltbsW3bNgwMDMBxHGzduhULFy5MZV9QyO6JVatW4f7778fw8DD27NmD3bt347zzzlPv\nzHTAgMdjjz3mzJs3zznzzDOddevWhX24ROGZZ55xMpmMs3jxYmfJkiXOkiVLnMcff9w5fPiwc9FF\nF5V9CpgM7e3tzuc+9znHcZzU9sUrr7ziLF261Dn77LOdL3zhC05vb29q+2L9+vWn0iS/9KUvOcPD\nw6npi9WrVzuzZ892qqqqnMbGRudnP/uZ8ty/973vOWeeeaYzf/58p62tzXX/GcexNQQsLCwsyhF2\nvRYLCwuLMoUleAsLC4syhSV4CwsLizKFJXgLCwuLMoUleAsLC4syhSV4CwsLizLF/weSDoopnVla\nxAAAAABJRU5ErkJggg==\n" | |
Fernando Perez
|
r5787 | } | |
Brian Granger
|
r6035 | ], | |
MinRK
|
r7739 | "prompt_number": 8 | |
Brian Granger
|
r6035 | }, | |
Fernando Perez
|
r5787 | { | |
MinRK
|
r7739 | "cell_type": "heading", | |
"level": 2, | |||
"metadata": {}, | |||
Fernando Perez
|
r5787 | "source": [ | |
MinRK
|
r7739 | "Security" | |
Fernando Perez
|
r5787 | ] | |
Brian Granger
|
r6035 | }, | |
Fernando Perez
|
r5787 | { | |
MinRK
|
r7739 | "cell_type": "markdown", | |
"metadata": {}, | |||
"source": [ | |||
"By default the notebook only listens on localhost, so it does not expose your computer to attacks coming from\n", | |||
"the internet. By default the notebook does not require any authentication, but you can configure it to\n", | |||
"ask for a password before allowing access to the files. \n", | |||
"\n", | |||
"Furthermore, you can require the notebook to encrypt all communications by using SSL and making all connections\n", | |||
"using the https protocol instead of plain http. This is a good idea if you decide to run your notebook on\n", | |||
"addresses that are visible from the internet. For further details on how to configure this, see the\n", | |||
"[security section](http://ipython.org/ipython-doc/stable/interactive/htmlnotebook.html#security) of the \n", | |||
"manual.\n", | |||
"\n", | |||
"Finally, note that you can also run a notebook with the `--read-only` flag, which lets you provide access\n", | |||
"to your notebook documents to others without letting them execute code (which can be useful to broadcast\n", | |||
"a computation to colleagues or students, for example). The read-only flag behaves differently depending\n", | |||
"on whether the server has a password or not:\n", | |||
"\n", | |||
"- Passwordless server: users directly see all notebooks in read-only mode.\n", | |||
"- Password-protected server: users can see all notebooks in read-only mode, but a login button is available\n", | |||
"and once a user authenticates, he or she obtains write/execute privileges.\n", | |||
"\n", | |||
"The first case above makes it easy to broadcast on the fly an existing notebook by simply starting a *second* \n", | |||
"notebook server in the same directory as the first, but in read-only mode. This can be done without having\n", | |||
"to configure a password first (which requires calling a hashing function and editing a configuration file).\n", | |||
"\n", | |||
"**NOTE:** IPython 0.13's javascript rewrite did not include read-only UI, so it does not work well.\n", | |||
"Code/notebooks are still protected from unauthorized access, but the UI is not appropriately restricted." | |||
] | |||
Fernando Perez
|
r5787 | } | |
MinRK
|
r7739 | ], | |
"metadata": {} | |||
Fernando Perez
|
r5787 | } | |
] | |||
MinRK
|
r5981 | } |