##// END OF EJS Templates
Adding dev version of jquery-ui.
Adding dev version of jquery-ui.

File last commit:

r5862:ee6f5a36
r5867:3f6697c3
Show More
notebook.html
266 lines | 11.9 KiB | text/html | HtmlLexer
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 <!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>IPython Notebook</title>
Brian Granger
Fixing main toolbar area and cleaning up jquery themes.
r4305
MinRK
adjust missing mathjax handling per review...
r5557 {% if mathjax_url %}
<script type="text/javascript" src="{{mathjax_url}}?config=TeX-AMS_HTML" charset="utf-8"></script>
{% end %}
Brian Granger
Adding logic to look for CDN version of MathJax and fallback to local.
r4325 <script type="text/javascript">
MinRK
allow the notebook to run without MathJax...
r5547 // MathJax disabled, set as null to distingish from *missing* MathJax,
// where it will be undefined, and should prompt a dialog later.
MinRK
adjust missing mathjax handling per review...
r5557 window.mathjax_url = "{{mathjax_url}}";
Brian Granger
Adding logic to look for CDN version of MathJax and fallback to local.
r4325 </script>
Brian Granger
Server side of file based notebook store implemented.
r4301
Brian Granger
Initial work to add Wijmo based menu.
r5856 <link rel="stylesheet" href="/static/jquery/css/jquery.wijmo-open.2.0.0b1.css" type="text/css" />
MinRK
use absolute URLs for static files
r5825 <link rel="stylesheet" href="/static/jquery/css/themes/aristo/jquery-wijmo.css" type="text/css" />
<link rel="stylesheet" href="/static/codemirror/lib/codemirror.css">
<link rel="stylesheet" href="/static/codemirror/mode/markdown/markdown.css">
<link rel="stylesheet" href="/static/codemirror/mode/rst/rst.css">
<link rel="stylesheet" href="/static/codemirror/theme/ipython.css">
<link rel="stylesheet" href="/static/codemirror/theme/default.css">
Brian Granger
CodeMirror code editing added....
r4332
MinRK
use absolute URLs for static files
r5825 <link rel="stylesheet" href="/static/prettify/prettify.css"/>
Stefan van der Walt
Add code highlighting to markdown cells.
r4655
MinRK
use absolute URLs for static files
r5825 <link rel="stylesheet" href="/static/css/boilerplate.css" type="text/css" />
<link rel="stylesheet" href="/static/css/layout.css" type="text/css" />
<link rel="stylesheet" href="/static/css/base.css" type="text/css" />
<link rel="stylesheet" href="/static/css/notebook.css" type="text/css" />
<link rel="stylesheet" href="/static/css/renderedhtml.css" type="text/css" />
Stefan van der Walt
Correctly set read_only meta name for use in javascript. Note that this has a different meaning than in the Python code: not whether the read-only flag was specified upon launch, but whether the notebook is in read-only mode and input should be disabled.
r5725
{% comment In the notebook, the read-only flag is used to determine %}
{% comment whether to hide the side panels and switch off input %}
<meta name="read_only" content="{{read_only and not logged_in}}"/>
Brian Granger
CodeMirror code editing added....
r4332
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 </head>
MinRK
allow the notebook to run without MathJax...
r5547 <body
Brian E. Granger
Adding data-project to the body data attribs.
r5105 data-project={{project}} data-notebook-id={{notebook_id}}
data-base-project-url={{base_project_url}} data-base-kernel-url={{base_kernel_url}}
>
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292
<div id="header">
MinRK
use absolute URLs for static files
r5825 <span id="ipython_notebook"><h1><a href='..' alt='dashboard'><img src='/static/ipynblogo.png' alt='IPython Notebook'/></a></h1></span>
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 <span id="save_widget">
Brian Granger
Improved notebook renaming....
r5859 <span id="notebook_name"></span>
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 </span>
Stefan van der Walt
Hide logout button on unauthenticated notebook.
r5345
Stefan van der Walt
Add logout button.
r5325 <span id="login_widget">
Stefan van der Walt
Hide logout button on unauthenticated notebook.
r5345 {% comment This is a temporary workaround to hide the logout button %}
{% comment when appropriate until notebook.html is templated %}
Stefan van der Walt
Split read-only logic into three functions: read_only, logged_in, and login_available. Move display logic from javascript into templates.
r5722 {% if logged_in %}
Stefan van der Walt
Hide logout button on unauthenticated notebook.
r5345 <button id="logout">Logout</button>
Stefan van der Walt
Split read-only logic into three functions: read_only, logged_in, and login_available. Move display logic from javascript into templates.
r5722 {% elif not logged_in and login_available %}
Stefan van der Walt
Display login button in read-only mode.
r5718 <button id="login">Login</button>
Stefan van der Walt
Hide logout button on unauthenticated notebook.
r5345 {% end %}
MinRK
add read-only view for notebooks...
r5200 </span>
Stefan van der Walt
Hide logout button on unauthenticated notebook.
r5345
MinRK
Restore kernel status to header
r5129 <span id="kernel_status">Idle</span>
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 </div>
Brian Granger
Implemented menu based UI using Wijmo.
r5857 <div id="menubar">
Brian Granger
Initial work to add Wijmo based menu.
r5856 <ul id="menus">
<li><a href="#">File</a>
<ul>
Brian Granger
Cleaning up menu code....
r5858 <li id="new_notebook"><span class="wijmo-wijmenu-text">New</span></li>
Brian Granger
Improved notebook renaming....
r5859 <li id="open_notebook"><span class="wijmo-wijmenu-text">Open...</span></li>
Brian Granger
Initial work to add Wijmo based menu.
r5856 <li></li>
Brian Granger
Beginning work on notebook duplication.
r5860 <li id="copy_notebook"><span class="wijmo-wijmenu-text">Make a Copy...</span></li>
Brian Granger
Finishing work on "Make a Copy" functionality.
r5861 <li id="rename_notebook"><span class="wijmo-wijmenu-text">Rename...</span></li>
Brian Granger
Cleaning up menu code....
r5858 <li id="save_notebook">
<div>
<span class="wijmo-wijmenu-text">Save</span>
<span class="wijmo-wijmenu-icon-right">Ctrl+m s</span>
</div>
</li>
Brian Granger
Initial work to add Wijmo based menu.
r5856 <li></li>
<li><a href="#">Download as</a>
<ul>
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>
<li></li>
Brian Granger
Implemented menu based UI using Wijmo.
r5857 <li id="print_notebook"><a href="#">Print</a></li>
Brian Granger
Initial work to add Wijmo based menu.
r5856 </ul>
</li>
<li><a href="#">Edit</a>
<ul>
Brian Granger
Cleaning up menu code....
r5858 <li id="delete_cell">
<div>
<span class="wijmo-wijmenu-text">Delete</span>
<span class="wijmo-wijmenu-icon-right">Ctrl+m d</span>
</div>
</li>
Brian Granger
Initial work to add Wijmo based menu.
r5856 <li></li>
Brian Granger
Cleaning up menu code....
r5858 <li id="move_cell_up">
<div>
<span class="wijmo-wijmenu-text">Move Cell Up</span>
<span class="wijmo-wijmenu-icon-right">Ctrl+m k</span>
</div>
</li>
<li id="move_cell_down">
<div>
<span class="wijmo-wijmenu-text">Move Cell Down</span>
<span class="wijmo-wijmenu-icon-right">Ctrl+m j</span>
</div>
</li>
<li></li>
<li id="select_previous">
<div>
<span class="wijmo-wijmenu-text">Select Previous</span>
<span class="wijmo-wijmenu-icon-right">Ctrl+m p</span>
</div>
</li>
<li id="select_next">
<div>
<span class="wijmo-wijmenu-text">Select Next</span>
<span class="wijmo-wijmenu-icon-right">Ctrl+m n</span>
</div>
</li>
Brian Granger
Initial work to add Wijmo based menu.
r5856 </ul>
</li>
<li><a href="#">Insert</a>
<ul>
Brian Granger
Cleaning up menu code....
r5858 <li id="insert_cell_above">
<div>
<span class="wijmo-wijmenu-text">Insert Cell Above</span>
<span class="wijmo-wijmenu-icon-right">Ctrl+m a</span>
</div>
</li>
<li id="insert_cell_below">
<div>
<span class="wijmo-wijmenu-text">Insert Cell Below</span>
<span class="wijmo-wijmenu-icon-right">Ctrl+m b</span>
</div>
Brian Granger
Initial work to add Wijmo based menu.
r5856 </li>
</ul>
</li>
<li><a href="#">Cell</a>
<ul>
Brian Granger
Cleaning up menu code....
r5858 <li id="run_cell">
<div>
<span class="wijmo-wijmenu-text">Run</span>
<span class="wijmo-wijmenu-icon-right">Shift+Enter</span>
</div>
</li>
<li id="run_cell_in_place">
<div>
<span class="wijmo-wijmenu-text">Run in Place</span>
<span class="wijmo-wijmenu-icon-right">Ctrl+Enter</span>
</div>
</li>
Brian Granger
Implemented menu based UI using Wijmo.
r5857 <li id="run_all_cells"><a href="#">Run All</a></li>
Brian Granger
Initial work to add Wijmo based menu.
r5856 <li></li>
Brian Granger
Cleaning up menu code....
r5858 <li id="to_code">
<div>
<span class="wijmo-wijmenu-text">Code Cell</span>
<span class="wijmo-wijmenu-icon-right">Ctrl+m c</span>
</div>
</li>
<li id="to_markdown">
<div>
<span class="wijmo-wijmenu-text">Markdown Cell</span>
<span class="wijmo-wijmenu-icon-right">Ctrl+m s</span>
</div>
</li>
Brian Granger
Initial work to add Wijmo based menu.
r5856 <li></li>
Brian Granger
Cleaning up menu code....
r5858 <li id="toggle_output">
<div>
<span class="wijmo-wijmenu-text">Toggle Output</span>
<span class="wijmo-wijmenu-icon-right">Ctrl+m t</span>
</div>
</li>
Brian Granger
Implemented menu based UI using Wijmo.
r5857 <li id="clear_all_output"><a href="#">Clear All Output</a></li>
Brian Granger
Initial work to add Wijmo based menu.
r5856 </ul>
</li>
<li><a href="#">Kernel</a>
<ul>
Brian Granger
Cleaning up menu code....
r5858 <li id="int_kernel">
<div>
<span class="wijmo-wijmenu-text">Interrupt</span>
<span class="wijmo-wijmenu-icon-right">Ctrl+m i</span>
</div>
</li>
<li id="restart_kernel">
<div>
<span class="wijmo-wijmenu-text">Restart</span>
Brian Granger
Minor fixes to the menu shortcuts.
r5862 <span class="wijmo-wijmenu-icon-right">Ctrl+m .</span>
Brian Granger
Cleaning up menu code....
r5858 </div>
</li>
Brian Granger
Initial work to add Wijmo based menu.
r5856 </ul>
</li>
<li><a href="#">Help</a>
<ul>
Brian Granger
Implemented menu based UI using Wijmo.
r5857 <li><a href="http://ipython.org/documentation.html" target="_blank">IPython Help</a></li>
<li><a href="http://ipython.org/ipython-doc/stable/interactive/htmlnotebook.html" target="_blank">Notebook Help</a></li>
Brian Granger
Cleaning up menu code....
r5858 <li id="keyboard_shortcuts">
<div>
<span class="wijmo-wijmenu-text">Keyboard Shortcuts</span>
<span class="wijmo-wijmenu-icon-right">Ctrl+m h</span>
</div>
</li>
Brian Granger
Initial work to add Wijmo based menu.
r5856 <li><h2>External Docs</h2></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>
<li><a href="http://docs.sympy.org/dev/index.html" target="_blank">SymPy</a></li>
<li><a href="http://matplotlib.sourceforge.net/" target="_blank">Matplotlib</a></li>
Brian Granger
Initial work to add Wijmo based menu.
r5856 </ul>
</li>
</ul>
</div>
Brian E. Granger
Implemented basic notebook browser and fixed numerous bugs.
r4488 <div id="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>
Brian E. Granger
Initial payload handling....
r4356 <div id="pager"></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>
MinRK
use absolute URLs for static files
r5825 <script src="/static/jquery/js/jquery-1.6.2.min.js" type="text/javascript" charset="utf-8"></script>
Brian Granger
Initial work to add Wijmo based menu.
r5856 <script src="/static/jquery/js/jquery-ui-1.8.16.custom.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/jquery/js/jquery.wijmo-open.all.2.0.0b1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/jquery/js/jquery.bgiframe-2.1.3-pre.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/jquery/js/jquery.mousewheel.min.js" type="text/javascript" charset="utf-8"></script>
Brian Granger
Refactoring of text/markdown/rst/html cells.
r4508
MinRK
use absolute URLs for static files
r5825 <script src="/static/codemirror/lib/codemirror.js" charset="utf-8"></script>
<script src="/static/codemirror/mode/python/python.js" charset="utf-8"></script>
<script src="/static/codemirror/mode/htmlmixed/htmlmixed.js" charset="utf-8"></script>
<script src="/static/codemirror/mode/xml/xml.js" charset="utf-8"></script>
<script src="/static/codemirror/mode/javascript/javascript.js" charset="utf-8"></script>
<script src="/static/codemirror/mode/css/css.js" charset="utf-8"></script>
<script src="/static/codemirror/mode/rst/rst.js" charset="utf-8"></script>
<script src="/static/codemirror/mode/markdown/markdown.js" charset="utf-8"></script>
Brian Granger
Refactoring of text/markdown/rst/html cells.
r4508
MinRK
use absolute URLs for static files
r5825 <script src="/static/pagedown/Markdown.Converter.js" charset="utf-8"></script>
Brian Granger
Refactoring of text/markdown/rst/html cells.
r4508
MinRK
use absolute URLs for static files
r5825 <script src="/static/prettify/prettify.js" charset="utf-8"></script>
Stefan van der Walt
Add code highlighting to markdown cells.
r4655
MinRK
use absolute URLs for static files
r5825 <script src="/static/js/namespace.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/js/utils.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/js/cell.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/js/codecell.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/js/textcell.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/js/kernel.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/js/kernelstatus.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/js/layout.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/js/savewidget.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/js/quickhelp.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/js/loginwidget.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/js/pager.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/js/printwidget.js" type="text/javascript" charset="utf-8"></script>
Brian Granger
Implemented menu based UI using Wijmo.
r5857 <script src="/static/js/menubar.js" type="text/javascript" charset="utf-8"></script>
MinRK
use absolute URLs for static files
r5825 <script src="/static/js/notebook.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/js/notebookmain.js" type="text/javascript" charset="utf-8"></script>
Brian Granger
Refactoring of text/markdown/rst/html cells.
r4508
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 </body>
Brian E. Granger
Updating main notebook template to use split scripts.
r4350 </html>