notebook.html
346 lines
| 18.4 KiB
| text/html
|
HtmlLexer
|
r10706 | {% extends "page.html" %} | ||
|
r8350 | |||
|
r6193 | {% block stylesheet %} | ||
{% if mathjax_url %} | ||||
|
r8662 | <script type="text/javascript" src="{{mathjax_url}}?config=TeX-AMS_HTML-full&delayStartupUntil=configured" charset="utf-8"></script> | ||
|
r8350 | {% endif %} | ||
|
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> | ||||
|
r10528 | <link rel="stylesheet" href="{{ static_url("components/codemirror/lib/codemirror.css") }}"> | ||
|
r6193 | |||
|
r9387 | {{super()}} | ||
|
r10723 | <link rel="stylesheet" href="{{ static_url("notebook/css/override.css") }}" type="text/css" /> | ||
|
r8350 | {% endblock %} | ||
|
r6193 | |||
{% block params %} | ||||
|
r13061 | data-project="{{project}}" | ||
data-base-project-url="{{base_project_url}}" | ||||
data-base-kernel-url="{{base_kernel_url}}" | ||||
data-notebook-name="{{notebook_name}}" | ||||
data-notebook-path="{{notebook_path}}" | ||||
|
r9290 | class="notebook_app" | ||
|
r6193 | |||
|
r8350 | {% endblock %} | ||
|
r6193 | |||
{% block header %} | ||||
|
r10906 | <span id="save_widget" class="nav pull-left"> | ||
|
r6193 | <span id="notebook_name"></span> | ||
|
r10516 | <span id="checkpoint_status"></span> | ||
<span id="autosave_status"></span> | ||||
|
r6193 | </span> | ||
|
r8350 | {% endblock %} | ||
|
r6193 | |||
{% block site %} | ||||
|
r4292 | |||
|
r10970 | <div id="menubar-container" class="container"> | ||
|
r10906 | <div id="menubar"> | ||
|
r10970 | <div class="navbar"> | ||
|
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> | ||||
|
r14879 | <ul id="file_menu" class="dropdown-menu"> | ||
|
r13164 | <li id="new_notebook" | ||
title="Make a new notebook (Opens a new window)"> | ||||
<a href="#">New</a></li> | ||||
<li id="open_notebook" | ||||
title="Opens a new window with the Dashboard view"> | ||||
<a href="#">Open...</a></li> | ||||
|
r10888 | <!-- <hr/> --> | ||
<li class="divider"></li> | ||||
|
r13164 | <li id="copy_notebook" | ||
title="Open a copy of this notebook's contents and start a new kernel"> | ||||
<a href="#">Make a Copy...</a></li> | ||||
|
r5869 | <li id="rename_notebook"><a href="#">Rename...</a></li> | ||
|
r10513 | <li id="save_checkpoint"><a href="#">Save and Checkpoint</a></li> | ||
|
r10888 | <!-- <hr/> --> | ||
<li class="divider"></li> | ||||
<li id="restore_checkpoint" class="dropdown-submenu"><a href="#">Revert to Checkpoint</a> | ||||
<ul class="dropdown-menu"> | ||||
|
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> | ||||
|
r10888 | <li class="divider"></li> | ||
|
r13829 | <li id="print_preview"><a href="#">Print Preview</a></li> | ||
|
r10888 | <li class="dropdown-submenu"><a href="#">Download as</a> | ||
<ul class="dropdown-menu"> | ||||
|
r13108 | <li id="download_ipynb"><a href="#">IPython Notebook (.ipynb)</a></li> | ||
|
r13829 | <li id="download_py"><a href="#">Python (.py)</a></li> | ||
<li id="download_html"><a href="#">HTML (.html)</a></li> | ||||
|
r13831 | <li id="download_rst"><a href="#">reST (.rst)</a></li> | ||
|
r5856 | </ul> | ||
</li> | ||||
|
r10888 | <li class="divider"></li> | ||
|
r13164 | <li id="kill_and_exit" | ||
title="Shutdown this notebook's kernel, and close this window"> | ||||
<a href="#" >Close and halt</a></li> | ||||
|
r5856 | </ul> | ||
</li> | ||||
|
r10888 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Edit</a> | ||
|
r14879 | <ul id="edit_menu" class="dropdown-menu"> | ||
|
r5996 | <li id="cut_cell"><a href="#">Cut Cell</a></li> | ||
<li id="copy_cell"><a href="#">Copy Cell</a></li> | ||||
|
r13102 | <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 & Replace</a></li> | ||||
|
r9551 | <li id="delete_cell"><a href="#">Delete Cell</a></li> | ||
|
r13102 | <li id="undelete_cell" class="disabled"><a href="#">Undo Delete Cell</a></li> | ||
|
r10888 | <li class="divider"></li> | ||
|
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> | ||||
|
r10888 | <li class="divider"></li> | ||
|
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> | ||||
|
r10888 | <li class="divider"></li> | ||
|
r12913 | <li id="edit_nb_metadata"><a href="#">Edit Notebook Metadata</a></li> | ||
|
r5856 | </ul> | ||
</li> | ||||
|
r10888 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">View</a> | ||
|
r14879 | <ul id="view_menu" class="dropdown-menu"> | ||
|
r13163 | <li id="toggle_header" | ||
title="Show/Hide the IPython Notebook logo and notebook title (above menu bar)"> | ||||
<a href="#">Toggle Header</a></li> | ||||
<li id="toggle_toolbar" | ||||
title="Show/Hide the action icons (below menu bar)"> | ||||
<a href="#">Toggle Toolbar</a></li> | ||||
|
r5994 | </ul> | ||
</li> | ||||
|
r10888 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Insert</a> | ||
|
r14879 | <ul id="insert_menu" class="dropdown-menu"> | ||
|
r13163 | <li id="insert_cell_above" | ||
title="Insert an empty Code cell above the currently active cell"> | ||||
<a href="#">Insert Cell Above</a></li> | ||||
<li id="insert_cell_below" | ||||
title="Insert an empty Code cell below the currently active cell"> | ||||
<a href="#">Insert Cell Below</a></li> | ||||
|
r5856 | </ul> | ||
</li> | ||||
|
r10888 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Cell</a> | ||
|
r14879 | <ul id="cell_menu" class="dropdown-menu"> | ||
|
r13160 | <li id="run_cell" title="Run this cell, and move cursor to the next one"> | ||
<a href="#">Run</a></li> | ||||
|
r14085 | <li id="run_cell_select_below" title="Run this cell, select below"> | ||
<a href="#">Run and Select Below</a></li> | ||||
<li id="run_cell_insert_below" title="Run this cell, insert below"> | ||||
<a href="#">Run and Insert Below</a></li> | ||||
|
r13160 | <li id="run_all_cells" title="Run all cells in the notebook"> | ||
<a href="#">Run All</a></li> | ||||
<li id="run_all_cells_above" title="Run all cells above (but not including) this cell"> | ||||
<a href="#">Run All Above</a></li> | ||||
<li id="run_all_cells_below" title="Run this cell and all cells below it"> | ||||
<a href="#">Run All Below</a></li> | ||||
|
r10888 | <li class="divider"></li> | ||
|
r14869 | <li id="change_cell_type" class="dropdown-submenu" | ||
title="All cells in the notebook have a cell type. By default, new cells are created as 'Code' cells"> | ||||
<a href="#">Cell Type</a> | ||||
<ul class="dropdown-menu"> | ||||
<li id="to_code" | ||||
title="Contents will be sent to the kernel for execution, and output will display in the footer of cell"> | ||||
<a href="#">Code</a></li> | ||||
<li id="to_markdown" | ||||
title="Contents will be rendered as HTML and serve as explanatory text"> | ||||
<a href="#">Markdown</a></li> | ||||
<li id="to_raw" | ||||
title="Contents will pass through nbconvert unmodified"> | ||||
<a href="#">Raw NBConvert</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> | ||||
|
r14867 | <li id="current_outputs" class="dropdown-submenu"><a href="#">Current Output</a> | ||
|
r10888 | <ul class="dropdown-menu"> | ||
|
r14871 | <li id="toggle_current_output" | ||
title="Hide/Show the output of the current cell"> | ||||
<a href="#">Toggle</a> | ||||
</li> | ||||
<li id="toggle_current_output_scroll" | ||||
title="Scroll the output of the current cell"> | ||||
<a href="#">Toggle Scrolling</a> | ||||
</li> | ||||
|
r14867 | <li id="clear_current_output" | ||
|
r14871 | title="Clear the output of the current cell"> | ||
|
r14867 | <a href="#">Clear</a> | ||
</li> | ||||
|
r10888 | </ul> | ||
</li> | ||||
<li id="all_outputs" class="dropdown-submenu"><a href="#">All Output</a> | ||||
<ul class="dropdown-menu"> | ||||
|
r14871 | <li id="toggle_all_output" | ||
title="Hide/Show the output of all cells"> | ||||
<a href="#">Toggle</a> | ||||
</li> | ||||
<li id="toggle_all_output_scroll" | ||||
title="Scroll the output of all cells"> | ||||
<a href="#">Toggle Scrolling</a> | ||||
</li> | ||||
|
r13161 | <li id="clear_all_output" | ||
|
r14871 | title="Clear the output of all cells"> | ||
|
r14867 | <a href="#">Clear</a> | ||
</li> | ||||
|
r7362 | </ul> | ||
</li> | ||||
|
r5856 | </ul> | ||
</li> | ||||
|
r14869 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Kernel</a> | ||
|
r14879 | <ul id="kernel_menu" class="dropdown-menu"> | ||
|
r14869 | <li id="int_kernel" | ||
title="Send KeyboardInterrupt (CTRL-C) to the Kernel"> | ||||
<a href="#">Interrupt</a></li> | ||||
<li id="restart_kernel" | ||||
title="Restart the Kernel"> | ||||
<a href="#">Restart</a></li> | ||||
</ul> | ||||
</li> | ||||
|
r10888 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Help</a> | ||
|
r14984 | <ul id="help_menu" class="dropdown-menu"> | ||
|
r13162 | <li id="keyboard_shortcuts" title="Opens a tooltip with all keyboard shortcuts"><a href="#">Keyboard Shortcuts</a></li> | ||
|
r10888 | <li class="divider"></li> | ||
|
r14984 | {% set | ||
sections = ( | ||||
( | ||||
("http://ipython.org/documentation.html","IPython Help",True), | ||||
|
r15038 | ("http://nbviewer.ipython.org/github/ipython/ipython/tree/master/examples/notebooks/", "Notebook Examples", True), | ||
|
r14984 | ("http://ipython.org/ipython-doc/stable/interactive/notebook.html","Notebook Help",True), | ||
("http://ipython.org/ipython-doc/dev/interactive/cm_keyboard.html","Editor Shortcuts",True), | ||||
),( | ||||
("http://docs.python.org","Python",True), | ||||
("http://docs.scipy.org/doc/numpy/reference/","NumPy",True), | ||||
("http://docs.scipy.org/doc/scipy/reference/","SciPy",True), | ||||
|
r14991 | ("http://matplotlib.org/contents.html","Matplotlib",True), | ||
|
r14984 | ("http://docs.sympy.org/dev/index.html","SymPy",True), | ||
("http://pandas.pydata.org/pandas-docs/stable/","pandas", True) | ||||
) | ||||
) | ||||
%} | ||||
{% for helplinks in sections %} | ||||
{% for link in helplinks %} | ||||
<li><a href="{{link[0]}}" {{'target="_blank" title="Opens in a new window"' if link[2]}}>{{link[1]}}{{'<i class="icon-external-link menu-icon pull-right"></i>' if link[2]}}</a></li> | ||||
{% endfor %} | ||||
{% if not loop.last %} | ||||
<li class="divider"></li> | ||||
{% endif %} | ||||
{% endfor %} | ||||
</li> | ||||
|
r5856 | </ul> | ||
</li> | ||||
</ul> | ||||
|
r15042 | <div class='pull-right' id="indicator_area"> | ||
<div id="kernel_indicator"></div> | ||||
</div> | ||||
|
r10932 | <div id="notification_area"></div> | ||
|
r10888 | </div> | ||
</div> | ||||
|
r5856 | </div> | ||
|
r6047 | </div> | ||
|
r10970 | <div id="maintoolbar" class="navbar"> | ||
<div class="toolbar-inner navbar-inner navbar-nobg"> | ||||
|
r10906 | <div id="maintoolbar-container" class="container"></div> | ||
</div> | ||||
|
r10900 | </div> | ||
|
r10970 | </div> | ||
|
r6047 | |||
|
r10909 | <div id="ipython-main-app"> | ||
|
r4305 | |||
|
r4355 | <div id="notebook_panel"> | ||
<div id="notebook"></div> | ||||
<div id="pager_splitter"></div> | ||||
|
r10914 | <div id="pager"> | ||
|
r8265 | <div id='pager_button_area'> | ||
</div> | ||||
|
r10914 | <div id="pager-container" class="container"></div> | ||
|
r8265 | </div> | ||
|
r4305 | </div> | ||
|
r4292 | |||
</div> | ||||
|
r9263 | <div id='tooltip' class='ipython_tooltip' style='display:none'></div> | ||
|
r7144 | |||
|
r4292 | |||
|
r8350 | {% endblock %} | ||
|
r6193 | |||
{% block script %} | ||||
|
r6002 | |||
|
r9384 | {{super()}} | ||
|
r9268 | |||
|
r10528 | <script src="{{ static_url("components/codemirror/lib/codemirror.js") }}" charset="utf-8"></script> | ||
|
r11236 | <script type="text/javascript"> | ||
CodeMirror.modeURL = "{{ static_url("components/codemirror/mode/%N/%N.js") }}"; | ||||
</script> | ||||
|
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> | ||||
|
r10539 | <script src="{{ static_url("components/codemirror/addon/mode/overlay.js") }}" charset="utf-8"></script> | ||
|
r10775 | <script src="{{ static_url("components/codemirror/addon/edit/matchbrackets.js") }}" charset="utf-8"></script> | ||
|
r11488 | <script src="{{ static_url("components/codemirror/addon/comment/comment.js") }}" charset="utf-8"></script> | ||
|
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> | ||||
|
r10539 | <script src="{{ static_url("components/codemirror/mode/gfm/gfm.js") }}" charset="utf-8"></script> | ||
|
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> | ||||
|
r6002 | |||
|
r10539 | <script src="{{ static_url("components/highlight.js/build/highlight.pack.js") }}" charset="utf-8"></script> | ||
|
r6002 | |||
<script src="{{ static_url("dateformat/date.format.js") }}" charset="utf-8"></script> | ||||
|
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> | ||||
|
r10895 | <script src="{{ static_url("base/js/dialog.js") }}" type="text/javascript" charset="utf-8"></script> | ||
|
r13220 | <script src="{{ static_url("services/kernels/js/kernel.js") }}" type="text/javascript" charset="utf-8"></script> | ||
<script src="{{ static_url("services/kernels/js/comm.js") }}" type="text/javascript" charset="utf-8"></script> | ||||
<script src="{{ static_url("services/sessions/js/session.js") }}" type="text/javascript" charset="utf-8"></script> | ||||
|
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> | ||||
<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> | ||||
|
r14020 | <script src="{{ static_url("notebook/js/keyboardmanager.js") }}" type="text/javascript" charset="utf-8"></script> | ||
|
r10722 | <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> | ||||
|
r13671 | <script src="{{ static_url("notebook/js/celltoolbarpresets/rawcell.js") }}" type="text/javascript" charset="utf-8"></script> | ||
|
r10722 | <script src="{{ static_url("notebook/js/celltoolbarpresets/slideshow.js") }}" type="text/javascript" charset="utf-8"></script> | ||
|
r7131 | |||
|
r9079 | {% endblock %} | ||