{ "metadata": { "name": "", "signature": "sha256:ee4b22b4c949fe21b3e5cda24f0916ba59d8c09443f4a897d98b96d4a73ac335" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "Running the Notebook Server" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The IPython notebook server is a custom web server that runs the notebook web application. Most of the time, users run the notebook server on their local computer using IPython's command line interface." ] }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Starting the notebook server using the command line" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "You can start the notebook server from the command line (Terminal on Mac/Linux, CMD prompt on Windows) by running the following command: \n", "\n", " ipython notebook\n", "\n", "This will print some information about the notebook server in your terminal, including the URL of the web application (by default, `http://127.0.0.1:8888`). It will then open your default web browser to this URL.\n", "\n", "When the notebook opens, you will see the **notebook dashboard**, which will show a list of the notebooks and subdirectories in the directory where the notebook server was started. As of IPython 2.0, the dashboard allows you to navigate to different subdirectories. Because of this, it is no longer necessary to start a separate notebook server for each subdirectory. Most of the time, you will want to start a notebook server in the highest directory in your filesystem where notebooks can be found. Often this will be your home directory.\n", "\n", "You can start more than one notebook server at the same time. By default, the first notebook server starts on port 8888 and later notebook servers search for open ports near that one.\n", "\n", "You can also specify the port manually:\n", "\n", " ipython notebook --port 9999\n", "\n", "Or start notebook server without opening a web browser.\n", "\n", " ipython notebook --no-browser\n", "\n", "The notebook server has a number of other command line arguments that can be displayed with the `--help` flag: \n", "\n", " ipython notebook --help\n", "\n", "
--pylab inline
from the command line. This is deprecated in IPython 2.0 and will be removed in IPython 3.0. To enable matplotlib based plotting for the Python kernel use the %matplotlib
magic command.\n",
"