Show More
@@ -250,7 +250,7 b' class ProfileCreate(BaseIPythonApplication):' | |||
|
250 | 250 | else: |
|
251 | 251 | apps.append(IPythonQtConsoleApp) |
|
252 | 252 | try: |
|
253 |
from IPython.html. |
|
|
253 | from IPython.html.notebookapp import NotebookApp | |
|
254 | 254 | except ImportError: |
|
255 | 255 | pass |
|
256 | 256 | except Exception: |
@@ -29,7 +29,7 b' def test_image_filename_defaults():' | |||
|
29 | 29 | embed=True) |
|
30 | 30 | nt.assert_raises(ValueError, display.Image) |
|
31 | 31 | nt.assert_raises(ValueError, display.Image, data='this is not an image', format='badformat', embed=True) |
|
32 |
imgfile = os.path.join(tpath, 'html/ |
|
|
32 | imgfile = os.path.join(tpath, 'html/static/base/images/ipynblogo.png') | |
|
33 | 33 | img = display.Image(filename=imgfile) |
|
34 | 34 | nt.assert_equal('png', img.format) |
|
35 | 35 | nt.assert_is_not_none(img._repr_png_()) |
@@ -54,7 +54,7 b' wide install.' | |||
|
54 | 54 | |
|
55 | 55 | First, cd into js directory : |
|
56 | 56 | ```bash |
|
57 |
cd IPython/html/ |
|
|
57 | cd IPython/html/static/js/ | |
|
58 | 58 | # install yuidoc |
|
59 | 59 | npm install yuidocjs |
|
60 | 60 | ``` |
@@ -62,7 +62,7 b' npm install yuidocjs' | |||
|
62 | 62 | |
|
63 | 63 | ### Run YUIdoc server |
|
64 | 64 | |
|
65 |
From IPython/html/ |
|
|
65 | From IPython/html/static/js/ | |
|
66 | 66 | ```bash |
|
67 | 67 | # run yuidoc for install dir |
|
68 | 68 | ./node_modules/yuidocjs/lib/cli.js --server . |
@@ -34,7 +34,7 b' import webbrowser' | |||
|
34 | 34 | # Third party |
|
35 | 35 | # check for pyzmq 2.1.11 |
|
36 | 36 | from IPython.utils.zmqrelated import check_for_zmq |
|
37 |
check_for_zmq('2.1.11', 'IPython.html |
|
|
37 | check_for_zmq('2.1.11', 'IPython.html') | |
|
38 | 38 | |
|
39 | 39 | import zmq |
|
40 | 40 | from jinja2 import Environment, FileSystemLoader |
@@ -61,7 +61,7 b' from tornado import httpserver' | |||
|
61 | 61 | from tornado import web |
|
62 | 62 | |
|
63 | 63 | # Our own libraries |
|
64 |
from IPython.html |
|
|
64 | from IPython.html import DEFAULT_STATIC_FILES_PATH | |
|
65 | 65 | |
|
66 | 66 | from .services.kernels.kernelmanager import MappingKernelManager |
|
67 | 67 | from .services.notebooks.nbmanager import NotebookManager |
@@ -120,7 +120,7 b' def random_ports(port, n):' | |||
|
120 | 120 | |
|
121 | 121 | def load_handlers(name): |
|
122 | 122 | """Load the (URL pattern, handler) tuples for each component.""" |
|
123 |
name = 'IPython.html. |
|
|
123 | name = 'IPython.html.' + name | |
|
124 | 124 | mod = __import__(name, fromlist=['default_handlers']) |
|
125 | 125 | return mod.default_handlers |
|
126 | 126 | |
@@ -490,7 +490,7 b' class NotebookApp(BaseIPythonApplication):' | |||
|
490 | 490 | else: |
|
491 | 491 | self.log.info("Using MathJax: %s", new) |
|
492 | 492 | |
|
493 |
notebook_manager_class = DottedObjectName('IPython.html. |
|
|
493 | notebook_manager_class = DottedObjectName('IPython.html.services.notebooks.filenbmanager.FileNotebookManager', | |
|
494 | 494 | config=True, |
|
495 | 495 | help='The notebook manager class to use.') |
|
496 | 496 |
@@ -226,7 +226,7 b' class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp):' | |||
|
226 | 226 | qtconsole=('IPython.qt.console.qtconsoleapp.IPythonQtConsoleApp', |
|
227 | 227 | """Launch the IPython Qt Console.""" |
|
228 | 228 | ), |
|
229 |
notebook=('IPython.html.notebook |
|
|
229 | notebook=('IPython.html.notebookapp.NotebookApp', | |
|
230 | 230 | """Launch the IPython HTML Notebook Server.""" |
|
231 | 231 | ), |
|
232 | 232 | profile = ("IPython.core.profileapp.ProfileApp", |
@@ -230,8 +230,8 b' def make_exclude():' | |||
|
230 | 230 | # files for web serving. Occasionally projects may put a .py |
|
231 | 231 | # file in there (MathJax ships a conf.py), so we might as |
|
232 | 232 | # well play it safe and skip the whole thing. |
|
233 |
ipjoin('html', ' |
|
|
234 |
ipjoin('html', ' |
|
|
233 | ipjoin('html', 'static'), | |
|
234 | ipjoin('html', 'fabfile'), | |
|
235 | 235 | ] |
|
236 | 236 | if not have['sqlite3']: |
|
237 | 237 | exclusions.append(ipjoin('core', 'tests', 'test_history')) |
@@ -296,14 +296,14 b' def make_exclude():' | |||
|
296 | 296 | exclusions.append(ipjoin('html')) |
|
297 | 297 | |
|
298 | 298 | if not have['jinja2']: |
|
299 |
exclusions.append(ipjoin('html', ' |
|
|
299 | exclusions.append(ipjoin('html', 'notebookapp')) | |
|
300 | 300 | |
|
301 | 301 | if not have['rpy2'] or not have['numpy']: |
|
302 | 302 | exclusions.append(ipjoin('extensions', 'rmagic')) |
|
303 | 303 | exclusions.append(ipjoin('extensions', 'tests', 'test_rmagic')) |
|
304 | 304 | |
|
305 | 305 | if not have['azure']: |
|
306 |
exclusions.append(ipjoin('html |
|
|
306 | exclusions.append(ipjoin('html', 'services', 'notebooks', 'azurenbmanager')) | |
|
307 | 307 | |
|
308 | 308 | # This is needed for the reg-exp to match on win32 in the ipdoctest plugin. |
|
309 | 309 | if sys.platform == 'win32': |
@@ -33,7 +33,7 b' def ipython_parent():' | |||
|
33 | 33 | def ipython_submodules(root): |
|
34 | 34 | """return IPython submodules relative to root""" |
|
35 | 35 | return [ |
|
36 |
pjoin(root, 'IPython', 'html', ' |
|
|
36 | pjoin(root, 'IPython', 'html', 'static', 'components'), | |
|
37 | 37 | ] |
|
38 | 38 | |
|
39 | 39 | def is_repo(d): |
@@ -11,7 +11,7 b' graft scripts' | |||
|
11 | 11 | graft IPython |
|
12 | 12 | prune IPython/deathrow |
|
13 | 13 | prune IPython/external/js |
|
14 |
prune IPython/html/ |
|
|
14 | prune IPython/html/static/mathjax | |
|
15 | 15 | |
|
16 | 16 | # Include some specific files and data resources we need |
|
17 | 17 | include IPython/.git_commit_info.ini |
@@ -413,7 +413,7 b' store the notebooks in a different format. Currently, we ship a' | |||
|
413 | 413 | storage. This can be used by adding the following lines to your |
|
414 | 414 | ``ipython_notebook_config.py`` file:: |
|
415 | 415 | |
|
416 |
c.NotebookApp.notebook_manager_class = 'IPython. |
|
|
416 | c.NotebookApp.notebook_manager_class = 'IPython.html.services.notebooks.azurenbmanager.AzureNotebookManager' | |
|
417 | 417 | c.AzureNotebookManager.account_name = u'paste_your_account_name_here' |
|
418 | 418 | c.AzureNotebookManager.account_key = u'paste_your_account_key_here' |
|
419 | 419 | c.AzureNotebookManager.container = u'notebooks' |
@@ -134,7 +134,7 b' def find_package_data():' | |||
|
134 | 134 | |
|
135 | 135 | # walk notebook resources: |
|
136 | 136 | cwd = os.getcwd() |
|
137 |
os.chdir(os.path.join('IPython', 'html' |
|
|
137 | os.chdir(os.path.join('IPython', 'html')) | |
|
138 | 138 | static_walk = list(os.walk('static')) |
|
139 | 139 | os.chdir(cwd) |
|
140 | 140 | static_data = [] |
@@ -148,7 +148,7 b' def find_package_data():' | |||
|
148 | 148 | 'IPython.config.profile' : ['README*', '*/*.py'], |
|
149 | 149 | 'IPython.testing' : ['*.txt'], |
|
150 | 150 | 'IPython.testing.plugin' : ['*.txt'], |
|
151 |
'IPython.html |
|
|
151 | 'IPython.html' : ['templates/*'] + static_data, | |
|
152 | 152 | 'IPython.qt.console' : ['resources/icon/*.svg'], |
|
153 | 153 | } |
|
154 | 154 | return package_data |
General Comments 0
You need to be logged in to leave comments.
Login now