|
|
|
|
@ -32,6 +32,8 @@ require([
|
|
|
|
|
contents = new contents.Contents({base_url: base_url});
|
|
|
|
|
var config = new configmod.ConfigSection('edit', {base_url: base_url});
|
|
|
|
|
config.load();
|
|
|
|
|
var common_config = new configmod.ConfigSection('common', common_options);
|
|
|
|
|
common_config.load();
|
|
|
|
|
|
|
|
|
|
var editor = new editmod.Editor('#texteditor-container', {
|
|
|
|
|
base_url: base_url,
|
|
|
|
|
@ -62,13 +64,8 @@ require([
|
|
|
|
|
});
|
|
|
|
|
notification_area.init_notification_widgets();
|
|
|
|
|
|
|
|
|
|
config.loaded.then(function() {
|
|
|
|
|
if (config.data.load_extensions) {
|
|
|
|
|
var nbextension_paths = Object.getOwnPropertyNames(
|
|
|
|
|
config.data.load_extensions);
|
|
|
|
|
IPython.load_extensions.apply(this, nbextension_paths);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
utils.load_extensions_from_config(config);
|
|
|
|
|
utils.load_extensions_from_config(common_config);
|
|
|
|
|
editor.load();
|
|
|
|
|
page.show();
|
|
|
|
|
|
|
|
|
|
|