Show More
@@ -18,6 +18,7 require([ | |||
|
18 | 18 | 'notebook/js/savewidget', |
|
19 | 19 | 'notebook/js/keyboardmanager', |
|
20 | 20 | 'notebook/js/config', |
|
21 | 'custom/custom', | |
|
21 | 22 | ], function( |
|
22 | 23 | IPython, |
|
23 | 24 | $, |
@@ -113,11 +114,8 require([ | |||
|
113 | 114 | // only do this once |
|
114 | 115 | events.off('notebook_loaded.Notebook', first_load); |
|
115 | 116 | }; |
|
116 | ||
|
117 | 117 | events.on('notebook_loaded.Notebook', first_load); |
|
118 | events.trigger('app_initialized.NotebookApp'); | |
|
119 | notebook.load_notebook(common_options.notebook_name, common_options.notebook_path); | |
|
120 | ||
|
118 | ||
|
121 | 119 | IPython.page = page; |
|
122 | 120 | IPython.layout_manager = layout_manager; |
|
123 | 121 | IPython.notebook = notebook; |
@@ -132,4 +130,8 require([ | |||
|
132 | 130 | IPython.save_widget = save_widget; |
|
133 | 131 | IPython.config = user_config; |
|
134 | 132 | IPython.tooltip = notebook.tooltip; |
|
133 | ||
|
134 | events.trigger('app_initialized.NotebookApp'); | |
|
135 | notebook.load_notebook(common_options.notebook_name, common_options.notebook_path); | |
|
136 | ||
|
135 | 137 | }); |
@@ -14,6 +14,7 require([ | |||
|
14 | 14 | 'auth/js/loginwidget', |
|
15 | 15 | 'jqueryui', |
|
16 | 16 | 'bootstrap', |
|
17 | 'custom/custom', | |
|
17 | 18 | ], function( |
|
18 | 19 | IPython, |
|
19 | 20 | $, |
@@ -90,6 +91,16 require([ | |||
|
90 | 91 | enable_autorefresh(); |
|
91 | 92 | |
|
92 | 93 | page.show(); |
|
94 | ||
|
95 | // For backwards compatability. | |
|
96 | IPython.page = page; | |
|
97 | IPython.notebook_list = notebook_list; | |
|
98 | IPython.cluster_list = cluster_list; | |
|
99 | IPython.session_list = session_list; | |
|
100 | IPython.kernel_list = kernel_list; | |
|
101 | IPython.login_widget = login_widget; | |
|
102 | IPython.events = events; | |
|
103 | ||
|
93 | 104 | events.trigger('app_initialized.DashboardApp'); |
|
94 | 105 | |
|
95 | 106 | // bound the upload method to the on change of the file select list |
@@ -107,12 +118,4 require([ | |||
|
107 | 118 | $("#tabs").find("a[href=" + window.location.hash + "]").click(); |
|
108 | 119 | } |
|
109 | 120 | |
|
110 | // For backwards compatability. | |
|
111 | IPython.page = page; | |
|
112 | IPython.notebook_list = notebook_list; | |
|
113 | IPython.cluster_list = cluster_list; | |
|
114 | IPython.session_list = session_list; | |
|
115 | IPython.kernel_list = kernel_list; | |
|
116 | IPython.login_widget = login_widget; | |
|
117 | IPython.events = events; | |
|
118 | 121 | }); |
General Comments 0
You need to be logged in to leave comments.
Login now