Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d6d419b

Browse files
committed
A LOT OF CLEANUP IN examples/Notebook
1 parent f1090ae commit d6d419b

23 files changed

Lines changed: 297 additions & 2417 deletions

examples/Notebook/Running the Notebook Server.ipynb renamed to examples/Notebook/Configuring the Notebook and Server.ipynb

Lines changed: 10 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -4,53 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# Running the Notebook Server"
8-
]
9-
},
10-
{
11-
"cell_type": "markdown",
12-
"metadata": {},
13-
"source": [
14-
"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."
15-
]
16-
},
17-
{
18-
"cell_type": "markdown",
19-
"metadata": {},
20-
"source": [
21-
"## Starting the notebook server using the command line"
22-
]
23-
},
24-
{
25-
"cell_type": "markdown",
26-
"metadata": {},
27-
"source": [
28-
"You can start the notebook server from the command line (Terminal on Mac/Linux, CMD prompt on Windows) by running the following command: \n",
29-
"\n",
30-
" ipython notebook\n",
31-
"\n",
32-
"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",
33-
"\n",
34-
"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",
35-
"\n",
36-
"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",
37-
"\n",
38-
"You can also specify the port manually:\n",
39-
"\n",
40-
" ipython notebook --port 9999\n",
41-
"\n",
42-
"Or start notebook server without opening a web browser.\n",
43-
"\n",
44-
" ipython notebook --no-browser\n",
45-
"\n",
46-
"The notebook server has a number of other command line arguments that can be displayed with the `--help` flag: \n",
47-
"\n",
48-
" ipython notebook --help\n",
49-
"\n",
50-
"<div class=\"alert alert-failure\">\n",
51-
"It used to be possible to specify kernel options, such as <code>--pylab inline</code> 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 <code>%matplotlib</code> magic command.\n",
52-
"</div>\n",
53-
"\n"
7+
"# Configuring the Notebook and Server"
548
]
559
},
5610
{
@@ -71,19 +25,11 @@
7125
},
7226
{
7327
"cell_type": "code",
74-
"execution_count": 7,
28+
"execution_count": null,
7529
"metadata": {
7630
"collapsed": false
7731
},
78-
"outputs": [
79-
{
80-
"name": "stdout",
81-
"output_type": "stream",
82-
"text": [
83-
"/Users/bgranger/.ipython/profile_default\r\n"
84-
]
85-
}
86-
],
32+
"outputs": [],
8733
"source": [
8834
"!ipython profile locate default"
8935
]
@@ -99,22 +45,11 @@
9945
},
10046
{
10147
"cell_type": "code",
102-
"execution_count": 3,
48+
"execution_count": null,
10349
"metadata": {
10450
"collapsed": false
10551
},
106-
"outputs": [
107-
{
108-
"name": "stdout",
109-
"output_type": "stream",
110-
"text": [
111-
"[ProfileCreate] Generating default config file: u'/Users/bgranger/.ipython/profile_my_profile/ipython_config.py'\r\n",
112-
"[ProfileCreate] Generating default config file: u'/Users/bgranger/.ipython/profile_my_profile/ipython_qtconsole_config.py'\r\n",
113-
"[ProfileCreate] Generating default config file: u'/Users/bgranger/.ipython/profile_my_profile/ipython_notebook_config.py'\r\n",
114-
"[ProfileCreate] Generating default config file: u'/Users/bgranger/.ipython/profile_my_profile/ipython_nbconvert_config.py'\r\n"
115-
]
116-
}
117-
],
52+
"outputs": [],
11853
"source": [
11954
"!ipython profile create my_profile"
12055
]
@@ -128,19 +63,11 @@
12863
},
12964
{
13065
"cell_type": "code",
131-
"execution_count": 5,
66+
"execution_count": null,
13267
"metadata": {
13368
"collapsed": false
13469
},
135-
"outputs": [
136-
{
137-
"name": "stdout",
138-
"output_type": "stream",
139-
"text": [
140-
"/Users/bgranger/.ipython/profile_my_profile\r\n"
141-
]
142-
}
143-
],
70+
"outputs": [],
14471
"source": [
14572
"!ipython profile locate my_profile"
14673
]
@@ -194,22 +121,11 @@
194121
},
195122
{
196123
"cell_type": "code",
197-
"execution_count": 1,
124+
"execution_count": null,
198125
"metadata": {
199126
"collapsed": false
200127
},
201-
"outputs": [
202-
{
203-
"data": {
204-
"text/plain": [
205-
"'sha1:6c2164fc2b22:ed55ecf07fc0f985ab46561483c0e888e8964ae6'"
206-
]
207-
},
208-
"execution_count": 1,
209-
"metadata": {},
210-
"output_type": "execute_result"
211-
}
212-
],
128+
"outputs": [],
213129
"source": [
214130
"from IPython.lib import passwd\n",
215131
"password = passwd(\"secret\")\n",
@@ -371,7 +287,7 @@
371287
"name": "python",
372288
"nbconvert_exporter": "python",
373289
"pygments_lexer": "ipython3",
374-
"version": "3.4.2"
290+
"version": "3.4.3"
375291
}
376292
},
377293
"nbformat": 4,

examples/Notebook/Connecting with the Qt Console.ipynb

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -54,34 +54,11 @@
5454
},
5555
{
5656
"cell_type": "code",
57-
"execution_count": 6,
57+
"execution_count": null,
5858
"metadata": {
5959
"collapsed": false
6060
},
61-
"outputs": [
62-
{
63-
"name": "stdout",
64-
"output_type": "stream",
65-
"text": [
66-
"{\n",
67-
" \"stdin_port\": 52858, \n",
68-
" \"ip\": \"127.0.0.1\", \n",
69-
" \"hb_port\": 52859, \n",
70-
" \"key\": \"7efd45ca-d8a2-41b0-9cea-d9116d0fb883\", \n",
71-
" \"shell_port\": 52856, \n",
72-
" \"iopub_port\": 52857\n",
73-
"}\n",
74-
"\n",
75-
"Paste the above JSON into a file, and connect with:\n",
76-
" $> ipython <app> --existing <file>\n",
77-
"or, if you are local, you can connect with just:\n",
78-
" $> ipython <app> --existing kernel-b3bac7c1-8b2c-4536-8082-8d1df24f99ac.json \n",
79-
"or even just:\n",
80-
" $> ipython <app> --existing \n",
81-
"if this is the most recent IPython session you have started.\n"
82-
]
83-
}
84-
],
61+
"outputs": [],
8562
"source": [
8663
"%connect_info"
8764
]
@@ -110,7 +87,7 @@
11087
},
11188
{
11289
"cell_type": "code",
113-
"execution_count": 1,
90+
"execution_count": null,
11491
"metadata": {
11592
"collapsed": false
11693
},
@@ -121,7 +98,7 @@
12198
},
12299
{
123100
"cell_type": "code",
124-
"execution_count": 2,
101+
"execution_count": null,
125102
"metadata": {
126103
"collapsed": false
127104
},
@@ -147,7 +124,7 @@
147124
"name": "python",
148125
"nbconvert_exporter": "python",
149126
"pygments_lexer": "ipython3",
150-
"version": "3.4.2"
127+
"version": "3.4.3"
151128
}
152129
},
153130
"nbformat": 4,

0 commit comments

Comments
 (0)