mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
don't reverse bind to IPython namespace in Notebook
This commit is contained in:
parent
f3e50f0fd5
commit
bb690fbd9d
@ -59,6 +59,7 @@ define(function(){
|
|||||||
jglobal('OutputArea','notebook/js/outputarea');
|
jglobal('OutputArea','notebook/js/outputarea');
|
||||||
jglobal('KeyboardManager','notebook/js/keyboardmanager');
|
jglobal('KeyboardManager','notebook/js/keyboardmanager');
|
||||||
jglobal('Completer','notebook/js/completer');
|
jglobal('Completer','notebook/js/completer');
|
||||||
|
jglobal('Notebook','notebook/js/notebook');
|
||||||
|
|
||||||
Jupyter.version = "4.0.0.dev";
|
Jupyter.version = "4.0.0.dev";
|
||||||
Jupyter._target = '_blank';
|
Jupyter._target = '_blank';
|
||||||
|
@ -1140,7 +1140,7 @@ define(function (require) {
|
|||||||
keyboard_manager: this.keyboard_manager,
|
keyboard_manager: this.keyboard_manager,
|
||||||
title : "Use markdown headings",
|
title : "Use markdown headings",
|
||||||
body : $("<p/>").text(
|
body : $("<p/>").text(
|
||||||
'IPython no longer uses special heading cells. ' +
|
'Jupyter no longer uses special heading cells. ' +
|
||||||
'Instead, write your headings in Markdown cells using # characters:'
|
'Instead, write your headings in Markdown cells using # characters:'
|
||||||
).append($('<pre/>').text(
|
).append($('<pre/>').text(
|
||||||
'## This is a level 2 heading'
|
'## This is a level 2 heading'
|
||||||
@ -1618,7 +1618,7 @@ define(function (require) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prompt the user to restart the IPython kernel.
|
* Prompt the user to restart the Jupyter kernel.
|
||||||
*/
|
*/
|
||||||
Notebook.prototype.restart_kernel = function () {
|
Notebook.prototype.restart_kernel = function () {
|
||||||
var that = this;
|
var that = this;
|
||||||
@ -2032,7 +2032,7 @@ define(function (require) {
|
|||||||
*/
|
*/
|
||||||
Notebook.prototype.trust_notebook = function () {
|
Notebook.prototype.trust_notebook = function () {
|
||||||
var body = $("<div>").append($("<p>")
|
var body = $("<div>").append($("<p>")
|
||||||
.text("A trusted IPython notebook may execute hidden malicious code ")
|
.text("A trusted Jupyter notebook may execute hidden malicious code ")
|
||||||
.append($("<strong>")
|
.append($("<strong>")
|
||||||
.append(
|
.append(
|
||||||
$("<em>").text("when you open it")
|
$("<em>").text("when you open it")
|
||||||
@ -2042,7 +2042,7 @@ define(function (require) {
|
|||||||
).append(
|
).append(
|
||||||
" For more information, see the "
|
" For more information, see the "
|
||||||
).append($("<a>").attr("href", "http://ipython.org/ipython-doc/2/notebook/security.html")
|
).append($("<a>").attr("href", "http://ipython.org/ipython-doc/2/notebook/security.html")
|
||||||
.text("IPython security documentation")
|
.text("Jupyter security documentation")
|
||||||
).append(".")
|
).append(".")
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -2509,9 +2509,5 @@ define(function (require) {
|
|||||||
this.load_notebook(this.notebook_path);
|
this.load_notebook(this.notebook_path);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// For backwards compatability.
|
|
||||||
IPython.Notebook = Notebook;
|
|
||||||
|
|
||||||
return {'Notebook': Notebook};
|
return {'Notebook': Notebook};
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user