##// END OF EJS Templates
Merge pull request #4333 from minrk/notebook-metadata...
Merge pull request #4333 from minrk/notebook-metadata Add Edit Notebook Metadata to Edit menu

File last commit:

r12913:46dd2590
r12917:bd66ff0f merge
Show More
notebook.html
261 lines | 13.7 KiB | text/html | HtmlLexer
Brian E. Granger
More work on the less setup.
r10706 {% extends "page.html" %}
Cameron Bates
Refactor notebook to use Jinja2 instead of tornado templates
r8350
Brian Granger
Major refactoring of notebook....
r6193 {% block stylesheet %}
{% if mathjax_url %}
Aron Ahmadia
Finalizing fixes to MathJax enhancements...
r8662 <script type="text/javascript" src="{{mathjax_url}}?config=TeX-AMS_HTML-full&delayStartupUntil=configured" charset="utf-8"></script>
Cameron Bates
Refactor notebook to use Jinja2 instead of tornado templates
r8350 {% endif %}
Brian Granger
Major refactoring of notebook....
r6193 <script type="text/javascript">
// MathJax disabled, set as null to distingish from *missing* MathJax,
// where it will be undefined, and should prompt a dialog later.
window.mathjax_url = "{{mathjax_url}}";
</script>
MinRK
fix a few URLs from previous PR...
r10528 <link rel="stylesheet" href="{{ static_url("components/codemirror/lib/codemirror.css") }}">
Brian Granger
Major refactoring of notebook....
r6193
Matthias BUSSONNIER
use super in templates
r9387 {{super()}}
Brian E. Granger
Creating override.css for each page....
r10723 <link rel="stylesheet" href="{{ static_url("notebook/css/override.css") }}" type="text/css" />
Cameron Bates
Refactor notebook to use Jinja2 instead of tornado templates
r8350 {% endblock %}
Brian Granger
Major refactoring of notebook....
r6193
{% block params %}
data-project={{project}}
data-base-project-url={{base_project_url}}
data-base-kernel-url={{base_kernel_url}}
data-notebook-id={{notebook_id}}
Matthias BUSSONNIER
fix body overflow on dashboard
r9290 class="notebook_app"
Brian Granger
Major refactoring of notebook....
r6193
Cameron Bates
Refactor notebook to use Jinja2 instead of tornado templates
r8350 {% endblock %}
Brian Granger
Major refactoring of notebook....
r6193
{% block header %}
MinRK
tweak header styling...
r10906 <span id="save_widget" class="nav pull-left">
Brian Granger
Major refactoring of notebook....
r6193 <span id="notebook_name"></span>
MinRK
add checkpoint status to notebook header...
r10516 <span id="checkpoint_status"></span>
<span id="autosave_status"></span>
Brian Granger
Major refactoring of notebook....
r6193 </span>
Cameron Bates
Refactor notebook to use Jinja2 instead of tornado templates
r8350 {% endblock %}
Brian Granger
Major refactoring of notebook....
r6193
{% block site %}
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292
MinRK
menubar not full-width...
r10970 <div id="menubar-container" class="container">
MinRK
tweak header styling...
r10906 <div id="menubar">
MinRK
menubar not full-width...
r10970 <div class="navbar">
MinRK
bootstrap menubar
r10888 <div class="navbar-inner">
<div class="container">
<ul id="menus" class="nav">
<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">File</a>
<ul class="dropdown-menu">
Brian Granger
Solid first go at jquery-ui based menus.
r5869 <li id="new_notebook"><a href="#">New</a></li>
<li id="open_notebook"><a href="#">Open...</a></li>
MinRK
bootstrap menubar
r10888 <!-- <hr/> -->
<li class="divider"></li>
Brian Granger
Solid first go at jquery-ui based menus.
r5869 <li id="copy_notebook"><a href="#">Make a Copy...</a></li>
<li id="rename_notebook"><a href="#">Rename...</a></li>
MinRK
Save and Checkpoint
r10513 <li id="save_checkpoint"><a href="#">Save and Checkpoint</a></li>
MinRK
bootstrap menubar
r10888 <!-- <hr/> -->
<li class="divider"></li>
<li id="restore_checkpoint" class="dropdown-submenu"><a href="#">Revert to Checkpoint</a>
<ul class="dropdown-menu">
MinRK
restore checkpoints in a sub-list...
r10520 <li><a href="#"></a></li>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
</ul>
</li>
MinRK
bootstrap menubar
r10888 <li class="divider"></li>
<li class="dropdown-submenu"><a href="#">Download as</a>
<ul class="dropdown-menu">
Brian Granger
Implemented menu based UI using Wijmo.
r5857 <li id="download_ipynb"><a href="#">IPython (.ipynb)</a></li>
<li id="download_py"><a href="#">Python (.py)</a></li>
Brian Granger
Initial work to add Wijmo based menu.
r5856 </ul>
</li>
MinRK
bootstrap menubar
r10888 <li class="divider"></li>
Matthias BUSSONNIER
add 'Close and halt' in notebook filemenu
r6850 <li id="kill_and_exit"><a href="#" >Close and halt</a></li>
Brian Granger
Initial work to add Wijmo based menu.
r5856 </ul>
</li>
MinRK
bootstrap menubar
r10888 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Edit</a>
<ul class="dropdown-menu">
Brian Granger
Adding "Cell" to cell related Edit actions.
r5996 <li id="cut_cell"><a href="#">Cut Cell</a></li>
<li id="copy_cell"><a href="#">Copy Cell</a></li>
MinRK
use bootstrap `disabled` instead of `ui-state-disabled`...
r11118 <li id="paste_cell_above" class="disabled"><a href="#">Paste Cell Above</a></li>
<li id="paste_cell_below" class="disabled"><a href="#">Paste Cell Below</a></li>
<li id="paste_cell_replace" class="disabled"><a href="#">Paste Cell &amp; Replace</a></li>
MinRK
add menu item for undo delete cell...
r9551 <li id="delete_cell"><a href="#">Delete Cell</a></li>
MinRK
use bootstrap `disabled` instead of `ui-state-disabled`...
r11118 <li id="undelete_cell" class="disabled"><a href="#">Undo Delete Cell</a></li>
MinRK
bootstrap menubar
r10888 <li class="divider"></li>
Brian Granger
Adding "Cell" to cell related Edit actions.
r5996 <li id="split_cell"><a href="#">Split Cell</a></li>
<li id="merge_cell_above"><a href="#">Merge Cell Above</a></li>
<li id="merge_cell_below"><a href="#">Merge Cell Below</a></li>
MinRK
bootstrap menubar
r10888 <li class="divider"></li>
Brian Granger
Adding "Cell" to cell related Edit actions.
r5996 <li id="move_cell_up"><a href="#">Move Cell Up</a></li>
<li id="move_cell_down"><a href="#">Move Cell Down</a></li>
MinRK
bootstrap menubar
r10888 <li class="divider"></li>
Brian Granger
Adding "Cell" to cell related Edit actions.
r5996 <li id="select_previous"><a href="#">Select Previous Cell</a></li>
<li id="select_next"><a href="#">Select Next Cell</a></li>
MinRK
add Edit Notebook Metadata to Edit menu
r12913 <li class="divider"></li>
<li id="edit_nb_metadata"><a href="#">Edit Notebook Metadata</a></li>
Brian Granger
Initial work to add Wijmo based menu.
r5856 </ul>
</li>
MinRK
bootstrap menubar
r10888 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">View</a>
<ul class="dropdown-menu">
Brian Granger
Further work on the toolbar UI....
r5994 <li id="toggle_header"><a href="#">Toggle Header</a></li>
<li id="toggle_toolbar"><a href="#">Toggle Toolbar</a></li>
</ul>
</li>
MinRK
bootstrap menubar
r10888 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Insert</a>
<ul class="dropdown-menu">
Brian Granger
Solid first go at jquery-ui based menus.
r5869 <li id="insert_cell_above"><a href="#">Insert Cell Above</a></li>
<li id="insert_cell_below"><a href="#">Insert Cell Below</a></li>
Brian Granger
Initial work to add Wijmo based menu.
r5856 </ul>
</li>
MinRK
bootstrap menubar
r10888 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Cell</a>
<ul class="dropdown-menu">
Brian Granger
Solid first go at jquery-ui based menus.
r5869 <li id="run_cell"><a href="#">Run</a></li>
<li id="run_cell_in_place"><a href="#">Run in Place</a></li>
Brian Granger
Implemented menu based UI using Wijmo.
r5857 <li id="run_all_cells"><a href="#">Run All</a></li>
Paul Ivanov
fine-grained notebook 'run' controls, closes #2521...
r8606 <li id="run_all_cells_above"><a href="#">Run All Above</a></li>
<li id="run_all_cells_below"><a href="#">Run All Below</a></li>
MinRK
bootstrap menubar
r10888 <li class="divider"></li>
<li id="change_cell_type" class="dropdown-submenu"><a href="#">Cell Type</a>
<ul class="dropdown-menu">
<li id="to_code"><a href="#">Code</a></li>
<li id="to_markdown"><a href="#">Markdown </a></li>
<li id="to_raw"><a href="#">Raw Text</a></li>
<li id="to_heading1"><a href="#">Heading 1</a></li>
<li id="to_heading2"><a href="#">Heading 2</a></li>
<li id="to_heading3"><a href="#">Heading 3</a></li>
<li id="to_heading4"><a href="#">Heading 4</a></li>
<li id="to_heading5"><a href="#">Heading 5</a></li>
<li id="to_heading6"><a href="#">Heading 6</a></li>
</ul>
</li>
<li class="divider"></li>
MinRK
third attempt at scrolled long output...
r7362 <li id="toggle_output"><a href="#">Toggle Current Output</a></li>
MinRK
bootstrap menubar
r10888 <li id="all_outputs" class="dropdown-submenu"><a href="#">All Output</a>
<ul class="dropdown-menu">
MinRK
third attempt at scrolled long output...
r7362 <li id="expand_all_output"><a href="#">Expand</a></li>
<li id="scroll_all_output"><a href="#">Scroll Long</a></li>
<li id="collapse_all_output"><a href="#">Collapse</a></li>
<li id="clear_all_output"><a href="#">Clear</a></li>
</ul>
</li>
Brian Granger
Initial work to add Wijmo based menu.
r5856 </ul>
</li>
MinRK
bootstrap menubar
r10888 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Kernel</a>
<ul class="dropdown-menu">
Brian Granger
Solid first go at jquery-ui based menus.
r5869 <li id="int_kernel"><a href="#">Interrupt</a></li>
<li id="restart_kernel"><a href="#">Restart</a></li>
Brian Granger
Initial work to add Wijmo based menu.
r5856 </ul>
</li>
MinRK
bootstrap menubar
r10888 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Help</a>
<ul class="dropdown-menu">
Brian Granger
Implemented menu based UI using Wijmo.
r5857 <li><a href="http://ipython.org/documentation.html" target="_blank">IPython Help</a></li>
Paul Ivanov
DOC: fix links to matplotlib, notebook docs...
r12176 <li><a href="http://ipython.org/ipython-doc/stable/interactive/notebook.html" target="_blank">Notebook Help</a></li>
Brian Granger
Solid first go at jquery-ui based menus.
r5869 <li id="keyboard_shortcuts"><a href="#">Keyboard Shortcuts</a></li>
MinRK
bootstrap menubar
r10888 <li class="divider"></li>
Brian Granger
Implemented menu based UI using Wijmo.
r5857 <li><a href="http://docs.python.org" target="_blank">Python</a></li>
<li><a href="http://docs.scipy.org/doc/numpy/reference/" target="_blank">NumPy</a></li>
<li><a href="http://docs.scipy.org/doc/scipy/reference/" target="_blank">SciPy</a></li>
Paul Ivanov
DOC: fix links to matplotlib, notebook docs...
r12176 <li><a href="http://matplotlib.org/" target="_blank">Matplotlib</a></li>
Brian Granger
Implemented menu based UI using Wijmo.
r5857 <li><a href="http://docs.sympy.org/dev/index.html" target="_blank">SymPy</a></li>
Paul Ivanov
DOC: fix links to matplotlib, notebook docs...
r12176 <li><a href="http://pandas.pydata.org/pandas-docs/stable/" target="_blank">pandas</a></li>
Brian Granger
Initial work to add Wijmo based menu.
r5856 </ul>
</li>
</ul>
MinRK
bootstrapify notification widget
r10932 <div id="notification_area"></div>
MinRK
bootstrap menubar
r10888 </div>
</div>
Brian Granger
Initial work to add Wijmo based menu.
r5856 </div>
Brian Granger
Major refactoring of saving, notification....
r6047 </div>
MinRK
menubar not full-width...
r10970 <div id="maintoolbar" class="navbar">
<div class="toolbar-inner navbar-inner navbar-nobg">
MinRK
tweak header styling...
r10906 <div id="maintoolbar-container" class="container"></div>
</div>
MinRK
use responsive bootstrap
r10900 </div>
MinRK
menubar not full-width...
r10970 </div>
Brian Granger
Major refactoring of saving, notification....
r6047
MinRK
only put the notebook in a container...
r10909 <div id="ipython-main-app">
Brian Granger
Fixing main toolbar area and cleaning up jquery themes.
r4305
Brian E. Granger
Starting to refactor the notebook layout
r4355 <div id="notebook_panel">
<div id="notebook"></div>
<div id="pager_splitter"></div>
MinRK
pager styling...
r10914 <div id="pager">
Matthias BUSSONNIER
This create the ability to detach the pager...
r8265 <div id='pager_button_area'>
</div>
MinRK
pager styling...
r10914 <div id="pager-container" class="container"></div>
Matthias BUSSONNIER
This create the ability to detach the pager...
r8265 </div>
Brian Granger
Fixing main toolbar area and cleaning up jquery themes.
r4305 </div>
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292
</div>
Matthias BUSSONNIER
use less for tooltip
r9263 <div id='tooltip' class='ipython_tooltip' style='display:none'></div>
Matthias Bussonnier
tooltip to mac
r7144
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292
Cameron Bates
Refactor notebook to use Jinja2 instead of tornado templates
r8350 {% endblock %}
Brian Granger
Major refactoring of notebook....
r6193
{% block script %}
Andrew Straw
use Tornado's handler.static_url() in templates
r6002
Matthias BUSSONNIER
propagate use_less flag in all pages
r9384 {{super()}}
Bussonnier Matthias
less flag in templates
r9268
MinRK
fix a few URLs from previous PR...
r10528 <script src="{{ static_url("components/codemirror/lib/codemirror.js") }}" charset="utf-8"></script>
Matthias BUSSONNIER
correct static path for CM modes autoload...
r11236 <script type="text/javascript">
CodeMirror.modeURL = "{{ static_url("components/codemirror/mode/%N/%N.js") }}";
</script>
MinRK
fix a few URLs from previous PR...
r10528 <script src="{{ static_url("components/codemirror/addon/mode/loadmode.js") }}" charset="utf-8"></script>
<script src="{{ static_url("components/codemirror/addon/mode/multiplex.js") }}" charset="utf-8"></script>
MinRK
use highlight.js to highlight markdown code blocks
r10539 <script src="{{ static_url("components/codemirror/addon/mode/overlay.js") }}" charset="utf-8"></script>
Samuel Ainsworth
Reenable bracket matching
r10775 <script src="{{ static_url("components/codemirror/addon/edit/matchbrackets.js") }}" charset="utf-8"></script>
MinRK
enable comment/uncomment selection...
r11488 <script src="{{ static_url("components/codemirror/addon/comment/comment.js") }}" charset="utf-8"></script>
MinRK
fix a few URLs from previous PR...
r10528 <script src="{{ static_url("components/codemirror/mode/htmlmixed/htmlmixed.js") }}" charset="utf-8"></script>
<script src="{{ static_url("components/codemirror/mode/xml/xml.js") }}" charset="utf-8"></script>
<script src="{{ static_url("components/codemirror/mode/javascript/javascript.js") }}" charset="utf-8"></script>
<script src="{{ static_url("components/codemirror/mode/css/css.js") }}" charset="utf-8"></script>
<script src="{{ static_url("components/codemirror/mode/rst/rst.js") }}" charset="utf-8"></script>
<script src="{{ static_url("components/codemirror/mode/markdown/markdown.js") }}" charset="utf-8"></script>
MinRK
use highlight.js to highlight markdown code blocks
r10539 <script src="{{ static_url("components/codemirror/mode/gfm/gfm.js") }}" charset="utf-8"></script>
MinRK
explicitly load python mode before IPython mode...
r11988 <script src="{{ static_url("components/codemirror/mode/python/python.js") }}" charset="utf-8"></script>
<script src="{{ static_url("notebook/js/codemirror-ipython.js") }}" charset="utf-8"></script>
Andrew Straw
use Tornado's handler.static_url() in templates
r6002
MinRK
use highlight.js to highlight markdown code blocks
r10539 <script src="{{ static_url("components/highlight.js/build/highlight.pack.js") }}" charset="utf-8"></script>
Andrew Straw
use Tornado's handler.static_url() in templates
r6002
<script src="{{ static_url("dateformat/date.format.js") }}" charset="utf-8"></script>
Brian E. Granger
More work on the less setup.
r10706 <script src="{{ static_url("base/js/events.js") }}" type="text/javascript" charset="utf-8"></script>
<script src="{{ static_url("base/js/utils.js") }}" type="text/javascript" charset="utf-8"></script>
MinRK
bootstrap dialogs
r10895 <script src="{{ static_url("base/js/dialog.js") }}" type="text/javascript" charset="utf-8"></script>
Brian E. Granger
Renaming notebooks->notebook in less and templates.
r10722 <script src="{{ static_url("notebook/js/layoutmanager.js") }}" type="text/javascript" charset="utf-8"></script>
<script src="{{ static_url("notebook/js/mathjaxutils.js") }}" type="text/javascript" charset="utf-8"></script>
<script src="{{ static_url("notebook/js/outputarea.js") }}" type="text/javascript" charset="utf-8"></script>
<script src="{{ static_url("notebook/js/cell.js") }}" type="text/javascript" charset="utf-8"></script>
<script src="{{ static_url("notebook/js/celltoolbar.js") }}" type="text/javascript" charset="utf-8"></script>
<script src="{{ static_url("notebook/js/codecell.js") }}" type="text/javascript" charset="utf-8"></script>
<script src="{{ static_url("notebook/js/completer.js") }}" type="text/javascript" charset="utf-8"></script>
<script src="{{ static_url("notebook/js/textcell.js") }}" type="text/javascript" charset="utf-8"></script>
Brian E. Granger
Creating services directory under static for kernels and friends.
r10736 <script src="{{ static_url("services/kernels/js/kernel.js") }}" type="text/javascript" charset="utf-8"></script>
Brian E. Granger
Renaming notebooks->notebook in less and templates.
r10722 <script src="{{ static_url("notebook/js/savewidget.js") }}" type="text/javascript" charset="utf-8"></script>
<script src="{{ static_url("notebook/js/quickhelp.js") }}" type="text/javascript" charset="utf-8"></script>
<script src="{{ static_url("notebook/js/pager.js") }}" type="text/javascript" charset="utf-8"></script>
<script src="{{ static_url("notebook/js/menubar.js") }}" type="text/javascript" charset="utf-8"></script>
<script src="{{ static_url("notebook/js/toolbar.js") }}" type="text/javascript" charset="utf-8"></script>
<script src="{{ static_url("notebook/js/maintoolbar.js") }}" type="text/javascript" charset="utf-8"></script>
<script src="{{ static_url("notebook/js/notebook.js") }}" type="text/javascript" charset="utf-8"></script>
<script src="{{ static_url("notebook/js/notificationwidget.js") }}" type="text/javascript" charset="utf-8"></script>
<script src="{{ static_url("notebook/js/notificationarea.js") }}" type="text/javascript" charset="utf-8"></script>
<script src="{{ static_url("notebook/js/tooltip.js") }}" type="text/javascript" charset="utf-8"></script>
<script src="{{ static_url("notebook/js/config.js") }}" type="text/javascript" charset="utf-8"></script>
<script src="{{ static_url("notebook/js/main.js") }}" type="text/javascript" charset="utf-8"></script>
<script src="{{ static_url("notebook/js/contexthint.js") }}" charset="utf-8"></script>
<script src="{{ static_url("notebook/js/celltoolbarpresets/default.js") }}" type="text/javascript" charset="utf-8"></script>
<script src="{{ static_url("notebook/js/celltoolbarpresets/slideshow.js") }}" type="text/javascript" charset="utf-8"></script>
Matthias BUSSONNIER
implement the completer in a separate class...
r7131
Matthias BUSSONNIER
Load default.js (for celltoolbar) by default...
r9079 {% endblock %}