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