Show More
@@ -15,12 +15,10 var IPython = (function (IPython) { | |||
|
15 | 15 | |
|
16 | 16 | var Kernel = function () { |
|
17 | 17 | this.kernel_id = null; |
|
18 | this.base_url = "/kernels"; | |
|
19 | this.kernel_url = null; | |
|
20 | 18 | this.shell_channel = null; |
|
21 | 19 | this.iopub_channel = null; |
|
20 | this.base_url = $('body').data('baseKernelUrl') + "kernels"; | |
|
22 | 21 | this.running = false; |
|
23 | ||
|
24 | 22 | this.username = "username"; |
|
25 | 23 | this.session_id = utils.uuid(); |
|
26 | 24 | |
@@ -52,7 +50,8 var IPython = (function (IPython) { | |||
|
52 | 50 | var that = this; |
|
53 | 51 | if (!this.running) { |
|
54 | 52 | var qs = $.param({notebook:notebook_id}); |
|
55 |
|
|
|
53 | var url = this.base_url + '?' + qs | |
|
54 | $.post(url, | |
|
56 | 55 | function (kernel_id) { |
|
57 | 56 | that._handle_start_kernel(kernel_id, callback); |
|
58 | 57 | }, |
@@ -929,7 +929,8 var IPython = (function (IPython) { | |||
|
929 | 929 | error : $.proxy(this.notebook_save_failed,this) |
|
930 | 930 | }; |
|
931 | 931 | IPython.save_widget.status_saving(); |
|
932 | $.ajax("/notebooks/" + notebook_id, settings); | |
|
932 | var url = $('body').data('baseProjectUrl') + 'notebooks/' + notebook_id | |
|
933 | $.ajax(url, settings); | |
|
933 | 934 | }; |
|
934 | 935 | }; |
|
935 | 936 | |
@@ -966,7 +967,8 var IPython = (function (IPython) { | |||
|
966 | 967 | } |
|
967 | 968 | }; |
|
968 | 969 | IPython.save_widget.status_loading(); |
|
969 | $.ajax("/notebooks/" + notebook_id, settings); | |
|
970 | var url = $('body').data('baseProjectUrl') + 'notebooks/' + notebook_id | |
|
971 | $.ajax(url, settings); | |
|
970 | 972 | } |
|
971 | 973 | |
|
972 | 974 |
@@ -67,7 +67,8 var IPython = (function (IPython) { | |||
|
67 | 67 | dataType : "json", |
|
68 | 68 | success : $.proxy(this.list_loaded, this) |
|
69 | 69 | }; |
|
70 | $.ajax("/notebooks", settings); | |
|
70 | var url = $('body').data('baseProjectUrl') + 'notebooks' | |
|
71 | $.ajax(url, settings); | |
|
71 | 72 | }; |
|
72 | 73 | |
|
73 | 74 | |
@@ -170,7 +171,8 var IPython = (function (IPython) { | |||
|
170 | 171 | parent_item.remove(); |
|
171 | 172 | } |
|
172 | 173 | }; |
|
173 |
$. |
|
|
174 | var url = $('body').data('baseProjectUrl') + 'notebooks/' + notebook_id | |
|
175 | $.ajax(url, settings); | |
|
174 | 176 | $(this).dialog('close'); |
|
175 | 177 | }, |
|
176 | 178 | "Cancel": function () { |
@@ -217,7 +219,8 var IPython = (function (IPython) { | |||
|
217 | 219 | }; |
|
218 | 220 | |
|
219 | 221 | var qs = $.param({name:nbname, format:nbformat}); |
|
220 | $.ajax('/notebooks?' + qs, settings); | |
|
222 | var url = $('body').data('baseProjectUrl') + 'notebooks?' + qs | |
|
223 | $.ajax(url, settings); | |
|
221 | 224 | }); |
|
222 | 225 | var cancel_button = $('<button>Cancel</button>').button(). |
|
223 | 226 | click(function (e) { |
General Comments 0
You need to be logged in to leave comments.
Login now