##// END OF EJS Templates
Merge pull request #1490 from minrk/raw...
Merge pull request #1490 from minrk/raw rename plaintext cell -> raw cell Raw cells should be *untransformed* when writing various output formats, as the point of them is to let users pass through IPython to their rendered document format (rst, latex, etc.). This is different from what is the logical meaning of 'plaintext', which would suggest that the contents should be preserved as unformatted plaintext (e.g. in a `<pre>` tag, or literal block). In the UI, these cells will be displayed as 'Raw Text'. WARNING: any existing v3 notebooks which use plaintext cells, when read in by versions after this merge, will silently rename those cells to 'raw'. But if such a notebook is uploaded into a pre-merge IPython, cells labeled as 'raw' will simply *not be displayed*.

File last commit:

r6193:f60f6df8
r6480:a0e0f391 merge
Show More
notebookmain.js
56 lines | 2.2 KiB | application/javascript | JavascriptLexer
Brian E. Granger
More review changes....
r4609 //----------------------------------------------------------------------------
// Copyright (C) 2008-2011 The IPython Development Team
//
// Distributed under the terms of the BSD License. The full license is in
// the file COPYING, distributed as part of this software.
//----------------------------------------------------------------------------
Brian E. Granger
Splitting notebook.js into muliple files for development ease.
r4349
//============================================================================
// On document ready
//============================================================================
$(document).ready(function () {
Brian Granger
Add Ace editing mode for code cells.
r5904
Brian Granger
Major refactoring of notebook....
r6193 IPython.init_mathjax();
Brian E. Granger
Splitting notebook.js into muliple files for development ease.
r4349
Brian Granger
Major refactoring of notebook....
r6193 IPython.read_only = $('body').data('readOnly') === 'True';
$('div#main_app').addClass('border-box-sizing ui-widget');
Brian E. Granger
Left panel is now working.
r4363 $('div#notebook_panel').addClass('border-box-sizing ui-widget');
Brian Granger
Major refactoring of notebook....
r6193 // The header's bottom border is provided by the menu bar so we remove it.
$('div#header').css('border-bottom-style','none');
Brian E. Granger
Splitting notebook.js into muliple files for development ease.
r4349
Brian Granger
Major refactoring of notebook....
r6193 IPython.page = new IPython.Page();
IPython.markdown_converter = new Markdown.Converter();
Brian E. Granger
Left panel is now working.
r4363 IPython.layout_manager = new IPython.LayoutManager();
Brian E. Granger
Refactoring pager into its own class.
r4357 IPython.pager = new IPython.Pager('div#pager', 'div#pager_splitter');
MinRK
fix quickhelp widget...
r5066 IPython.quick_help = new IPython.QuickHelp('span#quick_help_area');
MinRK
add read-only view for notebooks...
r5200 IPython.login_widget = new IPython.LoginWidget('span#login_widget');
Brian E. Granger
Left panel is now working.
r4363 IPython.notebook = new IPython.Notebook('div#notebook');
Brian Granger
Major refactoring of saving, notification....
r6047 IPython.save_widget = new IPython.SaveWidget('span#save_widget');
Brian Granger
Implemented menu based UI using Wijmo.
r5857 IPython.menubar = new IPython.MenuBar('#menubar')
Brian Granger
First draft of toolbar....
r5993 IPython.toolbar = new IPython.ToolBar('#toolbar')
Brian Granger
Major refactoring of saving, notification....
r6047 IPython.notification_widget = new IPython.NotificationWidget('#notification')
Brian E. Granger
Refactoring pager into its own class.
r4357
Brian E. Granger
Updating font-sizing to use the YUI protocol.
r4379 IPython.layout_manager.do_resize();
Brian E. Granger
Hacks to prevent FLOUC (flash of unformatted content).
r4395
MinRK
move read_only flag to page-level...
r5213 if(IPython.read_only){
// hide various elements from read-only view
Matthias BUSSONNIER
totally remove pager when read only...
r5655 $('div#pager').remove();
$('div#pager_splitter').remove();
Matthias BUSSONNIER
[notebook] read-only: disable name field
r5659
// set the notebook name field as not modifiable
$('#notebook_name').attr('disabled','disabled')
MinRK
move read_only flag to page-level...
r5213 }
Brian Granger
Major refactoring of notebook....
r6193 IPython.page.show();
Brian E. Granger
Massive work on the notebook document format....
r4484
Brian Granger
Optimizing notebook loading.
r5949 IPython.layout_manager.do_resize();
Brian Granger
Major refactoring of saving, notification....
r6047 $([IPython.events]).on('notebook_loaded.Notebook', function () {
IPython.layout_manager.do_resize();
IPython.save_widget.update_url();
})
IPython.notebook.load_notebook($('body').data('notebookId'));
Brian E. Granger
Implemented basic notebook browser and fixed numerous bugs.
r4488
Brian E. Granger
Splitting notebook.js into muliple files for development ease.
r4349 });