##// END OF EJS Templates
fix help-links on Firefox...
fix help-links on Firefox link text must come after icon to layout properly on Firefox this makes help links from the kernel match those already populated from the template

File last commit:

r20207:50f3cbd3
r20236:a234d15b
Show More
notebook.html
321 lines | 16.0 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 %}
Bussonnier Matthias
do not try to fix mathjax URl
r19482 <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>
Paul Ivanov
proper styling for the tour
r15678 <link rel="stylesheet" href="{{ static_url("components/bootstrap-tour/build/css/bootstrap-tour.min.css") }}" type="text/css" />
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" />
Matthias BUSSONNIER
load the per kernel kernel.js and kernel.css...
r19404 <link rel="stylesheet" href="" id='kernel-css' type="text/css" />
Brian E. Granger
Creating override.css for each page....
r10723
Cameron Bates
Refactor notebook to use Jinja2 instead of tornado templates
r8350 {% endblock %}
Brian Granger
Major refactoring of notebook....
r6193
Jason Grout
Split apart the body attributes and classes in the notebook templates
r19841 {% block bodyclasses %}notebook_app {{super()}}{% endblock %}
Brian Granger
Major refactoring of notebook....
r6193 {% block params %}
MinRK
quote data attributes...
r13061 data-project="{{project}}"
MinRK
s/base_project_url/base_url/...
r15238 data-base-url="{{base_url}}"
MinRK
restore websocket_url configurable...
r17303 data-ws-url="{{ws_url}}"
MinRK
quote data attributes...
r13061 data-notebook-name="{{notebook_name}}"
data-notebook-path="{{notebook_path}}"
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
Jonathan Frederic
Kill the layout manager
r19179 {% block headercontainer %}
Brian Granger
Major refactoring of notebook....
r6193
Matthias BUSSONNIER
Simplify and uniformise styling of kernel selector...
r17382
Min RK
update edit page blocks after layout changes
r19318 <span id="save_widget" class="pull-left save_widget">
Jessica B. Hamrick
Make tour functional again
r20044 <span id="notebook_name" class="filename"></span>
Min RK
make savewidget css a little more generic...
r19315 <span class="checkpoint_status"></span>
<span class="autosave_status"></span>
Brian Granger
Major refactoring of notebook....
r6193 </span>
Min RK
remove kernel selector from header...
r19596 <span id="kernel_logo_widget">
Min RK
transparent gif placeholder src...
r19599 <img class="current_kernel_logo" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"/>
Min RK
remove kernel selector from header...
r19596 </span>
Thomas Kluyver
Allow switching kernel from the notebook UI
r17370
Jonathan Frederic
Kill the layout manager
r19179 {% endblock headercontainer %}
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292
Jonathan Frederic
Kill the layout manager
r19179 {% block header %}
MinRK
menubar not full-width...
r10970 <div id="menubar-container" class="container">
MinRK
tweak header styling...
r10906 <div id="menubar">
Jonathan Frederic
Updated notebook template so menubar is rendered correctly
r16929 <div id="menus" class="navbar navbar-default" role="navigation">
<div class="container-fluid">
Min RK
remove some custom css...
r19298 <button type="button" class="btn btn-default navbar-btn navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
MinRK
tweak collapsed navbar style...
r18414 <i class="fa fa-bars"></i>
<span class="navbar-text">Menu</span>
</button>
Bussonnier Matthias
re-hook notification area for editor....
r20149 <p id="kernel_indicator" class="navbar-text indicator_area">
Min RK
remove kernel selector from header...
r19596 <span class="kernel_indicator_name">Kernel</span>
Min RK
remove some custom css...
r19298 <i id="kernel_indicator_icon"></i>
</p>
Bussonnier Matthias
make global css change on command/edit mode
r19671 <i id="modal_indicator" class="navbar-text"></i>
Min RK
remove some custom css...
r19298 <span id="notification_area"></span>
MinRK
tweak collapsed navbar style...
r18414 <div class="navbar-collapse collapse">
MinRK
collapse the navbar on narrow windows...
r18413 <ul class="nav navbar-nav">
jon
Fixed status indicator region
r16932 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">File</a>
<ul id="file_menu" class="dropdown-menu">
Mathieu
add choice of kernel for new notebook
r19843 <li id="new_notebook" class="dropdown-submenu">
<a href="#">New Notebook</a>
<ul class="dropdown-menu" id="menu-new-notebook-submenu"></ul>
</li>
jon
Fixed status indicator region
r16932 <li id="open_notebook"
title="Opens a new window with the Dashboard view">
<a href="#">Open...</a></li>
<!-- <hr/> -->
<li class="divider"></li>
<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>
<li id="rename_notebook"><a href="#">Rename...</a></li>
<li id="save_checkpoint"><a href="#">Save and Checkpoint</a></li>
<!-- <hr/> -->
<li class="divider"></li>
<li id="restore_checkpoint" class="dropdown-submenu"><a href="#">Revert to Checkpoint</a>
<ul class="dropdown-menu">
<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>
<li class="divider"></li>
<li id="print_preview"><a href="#">Print Preview</a></li>
<li class="dropdown-submenu"><a href="#">Download as</a>
<ul class="dropdown-menu">
<li id="download_ipynb"><a href="#">IPython Notebook (.ipynb)</a></li>
Thomas Kluyver
'Download as' script
r18967 <li id="download_script"><a href="#">Script</a></li>
jon
Fixed status indicator region
r16932 <li id="download_html"><a href="#">HTML (.html)</a></li>
<li id="download_rst"><a href="#">reST (.rst)</a></li>
Jonathan Frederic
Rebase cleanup, comments and nesting
r16942 <li id="download_pdf"><a href="#">PDF (.pdf)</a></li>
jon
Fixed status indicator region
r16932 </ul>
</li>
<li class="divider"></li>
<li id="trust_notebook"
title="Trust the output of this notebook">
<a href="#" >Trust Notebook</a></li>
<li class="divider"></li>
<li id="kill_and_exit"
title="Shutdown this notebook's kernel, and close this window">
<a href="#" >Close and halt</a></li>
Brian Granger
Initial work to add Wijmo based menu.
r5856 </ul>
</li>
jon
Fixed status indicator region
r16932 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Edit</a>
<ul id="edit_menu" class="dropdown-menu">
<li id="cut_cell"><a href="#">Cut Cell</a></li>
<li id="copy_cell"><a href="#">Copy Cell</a></li>
<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>
<li id="delete_cell"><a href="#">Delete Cell</a></li>
<li id="undelete_cell" class="disabled"><a href="#">Undo Delete Cell</a></li>
<li class="divider"></li>
<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>
<li class="divider"></li>
<li id="move_cell_up"><a href="#">Move Cell Up</a></li>
<li id="move_cell_down"><a href="#">Move Cell Down</a></li>
<li class="divider"></li>
<li id="edit_nb_metadata"><a href="#">Edit Notebook Metadata</a></li>
Brian E. Granger
Adding back Kernel menu and Cell Type submenu.
r14869 </ul>
</li>
jon
Fixed status indicator region
r16932 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">View</a>
<ul id="view_menu" class="dropdown-menu">
<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>
MinRK
bootstrap menubar
r10888 </ul>
</li>
jon
Fixed status indicator region
r16932 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Insert</a>
<ul id="insert_menu" class="dropdown-menu">
<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>
</ul>
</li>
<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Cell</a>
<ul id="cell_menu" class="dropdown-menu">
<li id="run_cell" title="Run this cell, and move cursor to the next one">
<a href="#">Run</a></li>
<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>
<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>
<li class="divider"></li>
<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>
</ul>
Brian E. Granger
Simplified Cell menu items related to output.
r14871 </li>
jon
Fixed status indicator region
r16932 <li class="divider"></li>
<li id="current_outputs" class="dropdown-submenu"><a href="#">Current Output</a>
<ul class="dropdown-menu">
<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>
<li id="clear_current_output"
title="Clear the output of the current cell">
<a href="#">Clear</a>
</li>
</ul>
Brian E. Granger
Simplified Cell menu items related to output.
r14871 </li>
jon
Fixed status indicator region
r16932 <li id="all_outputs" class="dropdown-submenu"><a href="#">All Output</a>
<ul class="dropdown-menu">
<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>
<li id="clear_all_output"
title="Clear the output of all cells">
<a href="#">Clear</a>
</li>
</ul>
Brian E. Granger
Cleaning up output management in code and menus.
r14867 </li>
MinRK
third attempt at scrolled long output...
r7362 </ul>
</li>
jon
Fixed status indicator region
r16932 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Kernel</a>
<ul id="kernel_menu" class="dropdown-menu">
<li id="int_kernel"
title="Send KeyboardInterrupt (CTRL-C) to the Kernel">
Min RK
add Reconnect to kernel menu
r18731 <a href="#">Interrupt</a>
</li>
jon
Fixed status indicator region
r16932 <li id="restart_kernel"
title="Restart the Kernel">
Min RK
add Reconnect to kernel menu
r18731 <a href="#">Restart</a>
</li>
<li id="reconnect_kernel"
title="Reconnect to the Kernel">
<a href="#">Reconnect</a>
</li>
Thomas Kluyver
Add submenu under kernel for changing kernel
r17387 <li class="divider"></li>
<li id="menu-change-kernel" class="dropdown-submenu">
<a href="#">Change kernel</a>
<ul class="dropdown-menu" id="menu-change-kernel-submenu"></ul>
</li>
jon
Fixed status indicator region
r16932 </ul>
</li>
<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Help</a>
<ul id="help_menu" class="dropdown-menu">
<li id="notebook_tour" title="A quick tour of the notebook user interface"><a href="#">User Interface Tour</a></li>
<li id="keyboard_shortcuts" title="Opens a tooltip with all keyboard shortcuts"><a href="#">Keyboard Shortcuts</a></li>
<li class="divider"></li>
{% set
sections = (
(
Andrew Dawes
changed to 3.x
r19966 ("http://nbviewer.ipython.org/github/ipython/ipython/blob/3.x/examples/Notebook/Index.ipynb", "Notebook Help", True),
Thomas Kluyver
Update help link about Markdown...
r19879 ("https://help.github.com/articles/markdown-basics/","Markdown",True),
Min RK
move Python-specific help links to kernel_info...
r19732 ),
jon
Fixed status indicator region
r16932 )
%}
Matthias BUSSONNIER
make help menu a templates...
r14984
jon
Fixed status indicator region
r16932 {% for helplinks in sections %}
{% for link in helplinks %}
<li><a href="{{link[0]}}" {{'target="_blank" title="Opens in a new window"' if link[2]}}>
Thomas Spura
Port more icons to fontawesome-4
r17413 {{'<i class="fa fa-external-link menu-icon pull-right"></i>' if link[2]}}
jon
Fixed status indicator region
r16932 {{link[1]}}
</a></li>
{% endfor %}
{% if not loop.last %}
<li class="divider"></li>
{% endif %}
{% endfor %}
Matthias Bussonnier
Add about dialog in Notebook Help Menu....
r18359 <li class="divider"></li>
<li title="About IPython Notebook"><a id="notebook_about" href="#">About</a></li>
jon
Fixed status indicator region
r16932 </ul>
Matthias BUSSONNIER
make help menu a templates...
r14984 </li>
MinRK
collapse the navbar on narrow windows...
r18413 </ul>
</div>
jon
Fixed status indicator region
r16932 </div>
</div>
Brian Granger
Major refactoring of saving, notification....
r6047 </div>
Jonathan Frederic
Kill the layout manager
r19179
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
Jonathan Frederic
Kill the layout manager
r19179 <div class="lower-header-bar"></div>
{% endblock header %}
Brian Granger
Fixing main toolbar area and cleaning up jquery themes.
r4305
Jonathan Frederic
Kill the layout manager
r19179 {% block site %}
<div id="ipython-main-app">
Brian E. Granger
Starting to refactor the notebook layout
r4355 <div id="notebook_panel">
<div id="notebook"></div>
Brian Granger
Fixing main toolbar area and cleaning up jquery themes.
r4305 </div>
Jonathan Frederic
Kill the layout manager
r19179 </div>
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292
Min RK
fix tooltip location...
r20207 <div id='tooltip' class='ipython_tooltip' style='display:none'></div>
Min RK
"fix" the pager...
r20206 {% endblock %}
{% block after_site %}
Jonathan Frederic
Kill the layout manager
r19179 <div id="pager">
Jonathan Frederic
Fix scroll/resize handle missing behavior.
r19181 <div id="pager-contents">
<div id="pager-container" class="container"></div>
Jonathan Frederic
Kill the layout manager
r19179 </div>
Jonathan Frederic
Fix scroll/resize handle missing behavior.
r19181 <div id='pager-button-area'></div>
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 </div>
Jonathan Frederic
Kill the layout manager
r19179
Cameron Bates
Refactor notebook to use Jinja2 instead of tornado templates
r8350 {% endblock %}
Brian Granger
Major refactoring of notebook....
r6193
{% block script %}
Jonathan Frederic
@carreau review changes
r17204 {{super()}}
Matthias Bussonnier
Add about dialog in Notebook Help Menu....
r18359 <script type="text/javascript">
sys_info = {{sys_info}};
</script>
Andrew Straw
use Tornado's handler.static_url() in templates
r6002
MinRK
use TextEncoding for string<->ArrayBuffer...
r18333 <script src="{{ static_url("components/text-encoding/lib/encoding.js") }}" charset="utf-8"></script>
Matthias BUSSONNIER
Update to codemirror 4...
r18280
Jonathan Frederic
Start of work to make notebook.html requirejs friendly.
r17192 <script src="{{ static_url("notebook/js/main.js") }}" 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 %}