// Copyright (c) IPython Development Team. // Distributed under the terms of the Modified BSD License. var ipython = ipython || {}; require([ 'base/js/namespace', 'components/jquery/jquery.min', 'notebook/js/notebook', 'base/js/utils', 'base/js/page', 'notebook/js/layoutmanager', 'base/js/events', 'auth/js/loginwidget', 'notebook/js/maintoolbar', 'notebook/js/pager', 'notebook/js/quickhelp', 'notebook/js/menubar', 'notebook/js/notificationarea', 'notebook/js/savewidget', 'notebook/js/keyboardmanager', ], function( IPython, $, Notebook, utils, Page, LayoutManager, Events, LoginWidget, MainToolBar, Pager, QuickHelp, MenuBar, NotificationArea, SaveWidget, KeyboardManager ) { "use strict"; $('#ipython-main-app').addClass('border-box-sizing'); $('div#notebook_panel').addClass('border-box-sizing'); var opts = { base_url : utils.get_body_data("baseUrl"), notebook_path : utils.get_body_data("notebookPath"), notebook_name : utils.get_body_data('notebookName') }; page = new Page(); layout_manager = new LayoutManager(); events = $([new Events()]); pager = new Pager('div#pager', 'div#pager_splitter', layout_manager, events); keyboard_manager = new KeyboardManager(pager); save_widget = new SaveWidget('span#save_widget', events, keyboard); notebook = new Notebook('div#notebook', opts, events, keyboard_manager, save_widget, keyboard); login_widget = new LoginWidget('span#login_widget', opts); toolbar = new MainToolBar('#maintoolbar-container', notebook, events); quick_help = new QuickHelp(undefined, keyboard_manager, events); menubar = new MenuBar('#menubar', opts, notebook, layout_manager, events, save_widget, quick_help); notification_area = new NotificationArea('#notification_area', events, save_widget, notebook); notification_area.init_notification_widgets(); layout_manager.do_resize(); $('body').append('
x'+ 'x'+ 'x