Show More
@@ -194,15 +194,15 b' class ProfileCreate(BaseIPythonApplication):' | |||
|
194 | 194 | else: |
|
195 | 195 | apps.append(IPythonQtConsoleApp) |
|
196 | 196 | try: |
|
197 |
from IPython.frontend.html.notebook.notebookapp import |
|
|
197 | from IPython.frontend.html.notebook.notebookapp import NotebookApp | |
|
198 | 198 | except ImportError: |
|
199 | 199 | pass |
|
200 | 200 | except Exception: |
|
201 |
self.log.debug('Unexpected error when importing |
|
|
201 | self.log.debug('Unexpected error when importing NotebookApp', | |
|
202 | 202 | exc_info=True |
|
203 | 203 | ) |
|
204 | 204 | else: |
|
205 |
apps.append( |
|
|
205 | apps.append(NotebookApp) | |
|
206 | 206 | if self.parallel: |
|
207 | 207 | from IPython.parallel.apps.ipcontrollerapp import IPControllerApp |
|
208 | 208 | from IPython.parallel.apps.ipengineapp import IPEngineApp |
@@ -125,11 +125,11 b" notebook_flags = ['no-browser']" | |||
|
125 | 125 | aliases = dict(ipkernel_aliases) |
|
126 | 126 | |
|
127 | 127 | aliases.update({ |
|
128 |
'ip': ' |
|
|
129 |
'port': ' |
|
|
130 |
'keyfile': ' |
|
|
131 |
'certfile': ' |
|
|
132 |
'ws-hostname': ' |
|
|
128 | 'ip': 'NotebookApp.ip', | |
|
129 | 'port': 'NotebookApp.port', | |
|
130 | 'keyfile': 'NotebookApp.keyfile', | |
|
131 | 'certfile': 'NotebookApp.certfile', | |
|
132 | 'ws-hostname': 'NotebookApp.ws_hostname', | |
|
133 | 133 | 'notebook-dir': 'NotebookManager.notebook_dir', |
|
134 | 134 | }) |
|
135 | 135 | |
@@ -141,10 +141,10 b" notebook_aliases = [u'port', u'ip', u'keyfile', u'certfile', u'ws-hostname'," | |||
|
141 | 141 | u'notebook-dir'] |
|
142 | 142 | |
|
143 | 143 | #----------------------------------------------------------------------------- |
|
144 |
# |
|
|
144 | # NotebookApp | |
|
145 | 145 | #----------------------------------------------------------------------------- |
|
146 | 146 | |
|
147 |
class |
|
|
147 | class NotebookApp(BaseIPythonApplication): | |
|
148 | 148 | |
|
149 | 149 | name = 'ipython-notebook' |
|
150 | 150 | default_config_file_name='ipython_notebook_config.py' |
@@ -213,7 +213,7 b' class IPythonNotebookApp(BaseIPythonApplication):' | |||
|
213 | 213 | return prefix + self.ws_hostname + u':' + unicode(self.port) |
|
214 | 214 | |
|
215 | 215 | def parse_command_line(self, argv=None): |
|
216 |
super( |
|
|
216 | super(NotebookApp, self).parse_command_line(argv) | |
|
217 | 217 | if argv is None: |
|
218 | 218 | argv = sys.argv[1:] |
|
219 | 219 | |
@@ -254,14 +254,14 b' class IPythonNotebookApp(BaseIPythonApplication):' | |||
|
254 | 254 | self.notebook_manager.list_notebooks() |
|
255 | 255 | |
|
256 | 256 | def init_logging(self): |
|
257 |
super( |
|
|
257 | super(NotebookApp, self).init_logging() | |
|
258 | 258 | # This prevents double log messages because tornado use a root logger that |
|
259 | 259 | # self.log is a child of. The logging module dipatches log messages to a log |
|
260 | 260 | # and all of its ancenstors until propagate is set to False. |
|
261 | 261 | self.log.propagate = False |
|
262 | 262 | |
|
263 | 263 | def initialize(self, argv=None): |
|
264 |
super( |
|
|
264 | super(NotebookApp, self).initialize(argv) | |
|
265 | 265 | self.init_configurables() |
|
266 | 266 | self.web_app = NotebookWebApplication( |
|
267 | 267 | self, self.kernel_manager, self.notebook_manager, self.log |
@@ -309,7 +309,7 b' class IPythonNotebookApp(BaseIPythonApplication):' | |||
|
309 | 309 | #----------------------------------------------------------------------------- |
|
310 | 310 | |
|
311 | 311 | def launch_new_instance(): |
|
312 |
app = |
|
|
312 | app = NotebookApp() | |
|
313 | 313 | app.initialize() |
|
314 | 314 | app.start() |
|
315 | 315 |
@@ -82,7 +82,7 b' var IPython = (function (IPython) {' | |||
|
82 | 82 | |
|
83 | 83 | SaveWidget.prototype.set_document_title = function () { |
|
84 | 84 | nbname = this.get_notebook_name(); |
|
85 |
document.title = |
|
|
85 | document.title = nbname; | |
|
86 | 86 | }; |
|
87 | 87 | |
|
88 | 88 |
@@ -7,21 +7,18 b'' | |||
|
7 | 7 | <title>IPython Notebook</title> |
|
8 | 8 | |
|
9 | 9 | <link rel="stylesheet" href="static/jquery/css/themes/aristo/jquery-wijmo.css" type="text/css" /> |
|
10 | <!-- <link rel="stylesheet" href="static/jquery/css/themes/rocket/jquery-wijmo.css" type="text/css" /> --> | |
|
11 | <!-- <link rel="stylesheet" href="static/jquery/css/themes/smoothness/jquery-ui-1.8.14.custom.css" type="text/css" />--> | |
|
12 | ||
|
13 | 10 | <link rel="stylesheet" href="static/css/boilerplate.css" type="text/css" /> |
|
14 | 11 | <link rel="stylesheet" href="static/css/layout.css" type="text/css" /> |
|
15 | 12 | <link rel="stylesheet" href="static/css/base.css" type="text/css" /> |
|
16 | <script type="text/javascript" charset="utf-8"> | |
|
17 | function add_next_to_action(){ | |
|
18 | // add 'next' argument to action url, to preserve redirect | |
|
19 | var query = location.search.substring(1); | |
|
20 | var form = document.forms[0]; | |
|
21 | var action = form.getAttribute("action"); | |
|
22 | form.setAttribute("action", action + '?' + query); | |
|
23 | } | |
|
24 | </script> | |
|
13 | <script type="text/javascript" charset="utf-8"> | |
|
14 | function add_next_to_action(){ | |
|
15 | // add 'next' argument to action url, to preserve redirect | |
|
16 | var query = location.search.substring(1); | |
|
17 | var form = document.forms[0]; | |
|
18 | var action = form.getAttribute("action"); | |
|
19 | form.setAttribute("action", action + '?' + query); | |
|
20 | } | |
|
21 | </script> | |
|
25 | 22 | </head> |
|
26 | 23 | |
|
27 | 24 | <body onload="add_next_to_action()"> |
@@ -7,9 +7,6 b'' | |||
|
7 | 7 | <title>IPython Notebook</title> |
|
8 | 8 | |
|
9 | 9 | <link rel="stylesheet" href="static/jquery/css/themes/aristo/jquery-wijmo.css" type="text/css" /> |
|
10 | <!-- <link rel="stylesheet" href="static/jquery/css/themes/rocket/jquery-wijmo.css" type="text/css" /> --> | |
|
11 | <!-- <link rel="stylesheet" href="static/jquery/css/themes/smoothness/jquery-ui-1.8.14.custom.css" type="text/css" />--> | |
|
12 | ||
|
13 | 10 | <link rel="stylesheet" href="static/css/boilerplate.css" type="text/css" /> |
|
14 | 11 | <link rel="stylesheet" href="static/css/layout.css" type="text/css" /> |
|
15 | 12 | <link rel="stylesheet" href="static/css/base.css" type="text/css" /> |
@@ -6,10 +6,6 b'' | |||
|
6 | 6 | |
|
7 | 7 | <title>IPython Notebook</title> |
|
8 | 8 | |
|
9 | <link rel="stylesheet" href="static/jquery/css/themes/aristo/jquery-wijmo.css" type="text/css" /> | |
|
10 | <!-- <link rel="stylesheet" href="static/jquery/css/themes/rocket/jquery-wijmo.css" type="text/css" /> --> | |
|
11 | <!-- <link rel="stylesheet" href="static/jquery/css/themes/smoothness/jquery-ui-1.8.14.custom.css" type="text/css" />--> | |
|
12 | ||
|
13 | 9 | <!-- <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML" charset="utf-8"></script> --> |
|
14 | 10 | <script type='text/javascript' src='static/mathjax/MathJax.js?config=TeX-AMS_HTML' charset='utf-8'></script> |
|
15 | 11 | <script type="text/javascript"> |
@@ -30,6 +26,7 b'' | |||
|
30 | 26 | } |
|
31 | 27 | </script> |
|
32 | 28 | |
|
29 | <link rel="stylesheet" href="static/jquery/css/themes/aristo/jquery-wijmo.css" type="text/css" /> | |
|
33 | 30 | <link rel="stylesheet" href="static/codemirror/lib/codemirror.css"> |
|
34 | 31 | <link rel="stylesheet" href="static/codemirror/mode/markdown/markdown.css"> |
|
35 | 32 | <link rel="stylesheet" href="static/codemirror/mode/rst/rst.css"> |
@@ -206,7 +206,7 b' class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp):' | |||
|
206 | 206 | qtconsole=('IPython.frontend.qt.console.qtconsoleapp.IPythonQtConsoleApp', |
|
207 | 207 | """Launch the IPython Qt Console.""" |
|
208 | 208 | ), |
|
209 |
notebook=('IPython.frontend.html.notebook.notebookapp. |
|
|
209 | notebook=('IPython.frontend.html.notebook.notebookapp.NotebookApp', | |
|
210 | 210 | """Launch the IPython HTML Notebook Server""" |
|
211 | 211 | ), |
|
212 | 212 | profile = ("IPython.core.profileapp.ProfileApp", |
General Comments 0
You need to be logged in to leave comments.
Login now