##// END OF EJS Templates
allow fully read-only mode if no password is set
allow fully read-only mode if no password is set

File last commit:

r5200:4e4c27a3
r5210:91d93817
Show More
notebook.html
294 lines | 13.5 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
update notebook template to prefer offline mathjax
r4653 <!-- <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML" charset="utf-8"></script> -->
<script type='text/javascript' src='static/mathjax/MathJax.js?config=TeX-AMS_HTML' charset='utf-8'></script>
Brian Granger
Adding logic to look for CDN version of MathJax and fallback to local.
r4325 <script type="text/javascript">
Matthias BUSSONNIER
Warn user if MathJax can't be fetched from notebook...
r4973 function CheckMathJax(){
Matthias BUSSONNIER
Hide warning message about matjax when page load...
r4985 var div=document.getElementById("MathJaxFetchingWarning")
Matthias BUSSONNIER
Warn user if MathJax can't be fetched from notebook...
r4973 if(window.MathJax){
Matthias BUSSONNIER
Matjax Warning message improvement....
r4984 document.body.removeChild(div)
Matthias BUSSONNIER
Warn user if MathJax can't be fetched from notebook...
r4973 }
Matthias BUSSONNIER
Hide warning message about matjax when page load...
r4985 else{
div.style.display = "block";
}
Matthias BUSSONNIER
Warn user if MathJax can't be fetched from notebook...
r4973 }
Brian Granger
Adding logic to look for CDN version of MathJax and fallback to local.
r4325 if (typeof MathJax == 'undefined') {
MinRK
update notebook template to prefer offline mathjax
r4653 console.log("No local MathJax, loading from CDN");
document.write(unescape("%3Cscript type='text/javascript' src='http://cdn.mathjax.org/mathjax/latest/MathJax.js%3Fconfig=TeX-AMS_HTML' charset='utf-8'%3E%3C/script%3E"));
}else{
console.log("Using local MathJax");
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 E. Granger
Misc changes to the notebook....
r5104 <link rel="stylesheet" href="static/jquery/css/themes/aristo/jquery-wijmo.css" type="text/css" />
Fernando Perez
Update templates to new directory name for codemirror.
r4935 <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
Stefan van der Walt
Add code highlighting to markdown cells.
r4655 <link rel="stylesheet" href="static/prettify/prettify.css"/>
Brian E. Granger
Implemented basic notebook browser and fixed numerous bugs.
r4488 <link rel="stylesheet" href="static/css/boilerplate.css" type="text/css" />
Brian Granger
CodeMirror code editing added....
r4332 <link rel="stylesheet" href="static/css/layout.css" type="text/css" />
Brian E. Granger
Implemented basic notebook browser and fixed numerous bugs.
r4488 <link rel="stylesheet" href="static/css/base.css" type="text/css" />
Brian Granger
CodeMirror code editing added....
r4332 <link rel="stylesheet" href="static/css/notebook.css" type="text/css" />
Brian Granger
Refactoring of text/markdown/rst/html cells.
r4508 <link rel="stylesheet" href="static/css/renderedhtml.css" type="text/css" />
Brian Granger
CodeMirror code editing added....
r4332
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 </head>
Brian E. Granger
Adding data-project to the body data attribs.
r5105 <body onload='CheckMathJax();'
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">
Brian E. Granger
Starting to refactor the notebook layout
r4355 <span id="ipython_notebook"><h1>IPython Notebook</h1></span>
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 <span id="save_widget">
<input type="text" id="notebook_name" size="20"></textarea>
MinRK
underline keyboard shortcut letter on buttons
r4660 <button id="save_notebook"><u>S</u>ave</button>
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 </span>
Fernando Perez
Add quick help button: broken ATM, style and binding aren't working....
r5023 <span id="quick_help_area">
Fernando Perez
Underline quick help button key accelerator (h).
r5070 <button id="quick_help">Quick<u>H</u>elp</button>
MinRK
add read-only view for notebooks...
r5200 </span>
<span id="login_widget" class="hidden">
<button id="login">Login</button>
</span>
MinRK
Restore kernel status to header
r5129 <span id="kernel_status">Idle</span>
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 </div>
Fernando Perez
Minor fixes to text and formatting of error message.
r5001 <div id="MathJaxFetchingWarning"
style="width:80%; margin:auto;padding-top:20%;text-align: justify; display:none">
<p style="font-size:26px;">There was an issue trying to fetch MathJax.js
Fernando Perez
Clean up accidentally introduced hard tabs in JS code.
r5025 from the internet.</p>
Fernando Perez
Minor fixes to text and formatting of error message.
r5001
<p style="padding:0.2em"> With a working internet connection, you can run
the following at a Python or IPython prompt, which will install a local
copy of MathJax:</p>
<pre style="background-color:lightblue;border:thin silver solid;padding:0.4em">
Matthias BUSSONNIER
Matjax Warning message improvement....
r4984 from IPython.external import mathjax; mathjax.install_mathjax()
</pre>
Fernando Perez
Minor fixes to text and formatting of error message.
r5001 This will try to install MathJax into the directory where you installed
Matthias BUSSONNIER
Matjax Warning message improvement....
r4984 IPython. If you installed IPython to a location that requires
administrative privileges to write, you will need to make this call as
an administrator. On OSX/Linux/Unix, this can be done at the
command-line via:
Fernando Perez
Minor fixes to text and formatting of error message.
r5001 <pre style="background-color:lightblue;border:thin silver solid;padding:0.4em">
Matthias BUSSONNIER
Matjax Warning message improvement....
r4984 sudo python -c "from IPython.external import mathjax; mathjax.install_mathjax()"
</pre>
</p>
Matthias BUSSONNIER
Warn user if MathJax can't be fetched from notebook...
r4973 </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
Work on save widget, kernel status widget and notebook section.
r4372 <div id="left_panel">
<div id="notebook_section">
MinRK
Moving status widget to Kernel section of L panel.
r5116 <div class="section_header">
<h3>Notebook</h3>
</div>
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 <div class="section_content">
<div class="section_row">
<span id="new_open" class="section_row_buttons">
<button id="new_notebook">New</button>
<button id="open_notebook">Open</button>
</span>
<span class="section_row_header">Actions</span>
</div>
Brian E. Granger
Massive work on the notebook document format....
r4484 <div class="section_row">
<span>
<select id="download_format">
Brian E. Granger
Changing CodeMirror-scroll to overflow-y: hidden....
r4638 <option value="json">ipynb</option>
Brian E. Granger
Massive work on the notebook document format....
r4484 <option value="py">py</option>
</select>
</span>
Brian Granger
Reordering Export button and renaming Export->Export As
r4510 <span class="section_row_buttons">
Brian E. Granger
Reorganize the L panel buttons.
r4640 <button id="download_notebook">Download</button>
</span>
</div>
<div class="section_row">
<span class="section_row_buttons">
Stefan van der Walt
Refactor static printing.
r4615 <span id="print_widget">
Brian E. Granger
Adding page break logic to the print css....
r4625 <button id="print_notebook">Print</button>
Stefan van der Walt
Refactor static printing.
r4615 </span>
Brian Granger
Reordering Export button and renaming Export->Export As
r4510 </span>
Brian E. Granger
Massive work on the notebook document format....
r4484 </div>
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 </div>
</div>
<div id="cell_section">
MinRK
Moving status widget to Kernel section of L panel.
r5116 <div class="section_header">
<h3>Cell</h3>
</div>
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 <div class="section_content">
<div class="section_row">
<span class="section_row_buttons">
MinRK
underline keyboard shortcut letter on buttons
r4660 <button id="delete_cell"><u>D</u>elete</button>
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 </span>
<span class="section_row_header">Actions</span>
</div>
<div class="section_row">
Brian Granger
Refactoring of text/markdown/rst/html cells.
r4508 <span id="cell_type" class="section_row_buttons">
MinRK
underline keyboard shortcut letter on buttons
r4660 <button id="to_code"><u>C</u>ode</button>
Brian E. Granger
Removed HTMLCell from UI and added better placeholder logic.
r4614 <!-- <button id="to_html">HTML</button>-->
MinRK
underline keyboard shortcut letter on buttons
r4660 <button id="to_markdown"><u>M</u>arkdown</button>
Brian Granger
Refactoring of text/markdown/rst/html cells.
r4508 </span>
Brian E. Granger
Clear all output is implemented.
r4543 <span class="button_label">Format</span>
</div>
<div class="section_row">
Brian E. Granger
Cell collapse/expand is not called "Toggle".
r4639 <span id="cell_output" class="section_row_buttons">
MinRK
underline keyboard shortcut letter on buttons
r4660 <button id="toggle_output"><u>T</u>oggle</button>
Brian E. Granger
I like ClearAll better than Clr All.
r4559 <button id="clear_all_output">ClearAll</button>
Brian E. Granger
Clear all output is implemented.
r4543 </span>
<span class="button_label">Output</span>
Brian Granger
Refactoring of text/markdown/rst/html cells.
r4508 </div>
<div class="section_row">
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 <span id="insert" class="section_row_buttons">
MinRK
underline keyboard shortcut letter on buttons
r4660 <button id="insert_cell_above"><u>A</u>bove</button>
<button id="insert_cell_below"><u>B</u>elow</button>
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 </span>
<span class="button_label">Insert</span>
</div>
<div class="section_row">
<span id="move" class="section_row_buttons">
<button id="move_cell_up">Up</button>
<button id="move_cell_down">Down</button>
</span>
<span class="button_label">Move</span>
</div>
<div class="section_row">
<span id="run_cells" class="section_row_buttons">
<button id="run_selected_cell">Selected</button>
<button id="run_all_cells">All</button>
</span>
<span class="button_label">Run</span>
</div>
Brian E. Granger
Implemented smart autoindenting.
r4512 <div class="section_row">
<span id="autoindent_span">
Brian E. Granger
Autoindentation fixed and enabled by default.
r4529 <input type="checkbox" id="autoindent" checked="true"></input>
Brian E. Granger
Implemented smart autoindenting.
r4512 </span>
MinRK
Add tooltips to the notebook via 'title' attr....
r5097 <span class="checkbox_label" id="autoindent_label">Autoindent:</span>
Brian E. Granger
Implemented smart autoindenting.
r4512 </div>
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 </div>
</div>
<div id="kernel_section">
MinRK
Moving status widget to Kernel section of L panel.
r5116 <div class="section_header">
<h3>Kernel</h3>
</div>
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 <div class="section_content">
<div class="section_row">
<span id="int_restart" class="section_row_buttons">
Fernando Perez
Refactor line num. toggle into proper function, access via C-m-l....
r5020 <button id="int_kernel"><u>I</u>nterrupt</button>
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 <button id="restart_kernel">Restart</button>
</span>
<span class="section_row_header">Actions</span>
</div>
Brian E. Granger
Using beforeunload to save at exit and kill the kernel.
r4496 <div class="section_row">
<span id="kernel_persist">
Brian E. Granger
Added kill_kernel to notebook template.
r5117 {% if kill_kernel %}
<input type="checkbox" id="kill_kernel" checked="true"></input>
{% else %}
<input type="checkbox" id="kill_kernel"></input>
{% end %}
Brian E. Granger
Using beforeunload to save at exit and kill the kernel.
r4496 </span>
MinRK
Add tooltips to the notebook via 'title' attr....
r5097 <span class="checkbox_label" id="kill_kernel_label">Kill kernel upon exit:</span>
Brian E. Granger
Using beforeunload to save at exit and kill the kernel.
r4496 </div>
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 </div>
</div>
<div id="help_section">
MinRK
Moving status widget to Kernel section of L panel.
r5116 <div class="section_header">
MinRK
fix Cell->Help header typo
r5125 <h3>Help</h3>
MinRK
Moving status widget to Kernel section of L panel.
r5116 </div>
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 <div class="section_content">
<div class="section_row">
<span id="help_buttons0" class="section_row_buttons">
Brian E. Granger
Help links work on Firefox.
r4631 <a id="python_help" href="http://docs.python.org" target="_blank">Python</a>
<a id="ipython_help" href="http://ipython.org/documentation.html" target="_blank">IPython</a>
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 </span>
<span class="section_row_header">Links</span>
</div>
<div class="section_row">
<span id="help_buttons1" class="section_row_buttons">
Brian E. Granger
Reorganize the L panel buttons.
r4640 <a id="numpy_help" href="http://docs.scipy.org/doc/numpy/reference/" target="_blank">NumPy</a>
Brian E. Granger
Help links work on Firefox.
r4631 <a id="scipy_help" href="http://docs.scipy.org/doc/scipy/reference/" target="_blank">SciPy</a>
Brian E. Granger
Reorganize the L panel buttons.
r4640 </span>
</div>
<div class="section_row">
<span id="help_buttons2" class="section_row_buttons">
<a id="matplotlib_help" href="http://matplotlib.sourceforge.net/" target="_blank">MPL</a>
Brian E. Granger
Help links work on Firefox.
r4631 <a id="sympy_help" href="http://docs.sympy.org/dev/index.html" target="_blank">SymPy</a>
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 </span>
</div>
Brian E. Granger
Adding minor help strings for keyboard shortcuts.
r4516 <div class="section_row">
<span class="help_string">run selected cell</span>
Brian E. Granger
Adding keyboard shortcut help dialog.
r4646 <span class="help_string_label">Shift-Enter :</span>
Brian E. Granger
Adding minor help strings for keyboard shortcuts.
r4516 </div>
<div class="section_row">
Fernando Perez
Refactor line num. toggle into proper function, access via C-m-l....
r5020 <span class="help_string">run selected cell in-place</span>
Brian E. Granger
Adding keyboard shortcut help dialog.
r4646 <span class="help_string_label">Ctrl-Enter :</span>
</div>
<div class="section_row">
<span class="help_string">show keyboard shortcuts</span>
<span class="help_string_label">Ctrl-m h :</span>
Brian E. Granger
Adding minor help strings for keyboard shortcuts.
r4516 </div>
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 </div>
</div>
</div>
Brian E. Granger
Starting to refactor the notebook layout
r4355 <div id="left_panel_splitter"></div>
<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>
Brian Granger
Updating jQuery to 1.6.2 and jQuery UI to 1.8.14....
r4358 <script src="static/jquery/js/jquery-1.6.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="static/jquery/js/jquery-ui-1.8.14.custom.min.js" type="text/javascript" charset="utf-8"></script>
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 <script src="static/jquery/js/jquery.autogrow.js" type="text/javascript" charset="utf-8"></script>
Brian Granger
Refactoring of text/markdown/rst/html cells.
r4508
Fernando Perez
Update templates to new directory name for codemirror.
r4935 <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
<script src="static/pagedown/Markdown.Converter.js" charset="utf-8"></script>
Stefan van der Walt
Add code highlighting to markdown cells.
r4655 <script src="static/prettify/prettify.js" charset="utf-8"></script>
Brian E. Granger
Updating main notebook template to use split scripts.
r4350 <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>
Brian Granger
Refactoring of text/markdown/rst/html cells.
r4508 <script src="static/js/textcell.js" type="text/javascript" charset="utf-8"></script>
Brian E. Granger
Updating main notebook template to use split scripts.
r4350 <script src="static/js/kernel.js" type="text/javascript" charset="utf-8"></script>
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 <script src="static/js/kernelstatus.js" type="text/javascript" charset="utf-8"></script>
Brian E. Granger
Left panel is now working.
r4363 <script src="static/js/layout.js" type="text/javascript" charset="utf-8"></script>
Brian E. Granger
Minors fixes and initial work on save widget....
r4369 <script src="static/js/savewidget.js" type="text/javascript" charset="utf-8"></script>
MinRK
fix quickhelp widget...
r5066 <script src="static/js/quickhelp.js" type="text/javascript" charset="utf-8"></script>
MinRK
add read-only view for notebooks...
r5200 <script src="static/js/loginwidget.js" type="text/javascript" charset="utf-8"></script>
Brian E. Granger
Refactoring pager into its own class.
r4357 <script src="static/js/pager.js" type="text/javascript" charset="utf-8"></script>
Brian E. Granger
Initial draft of panel section and the cell section working.
r4365 <script src="static/js/panelsection.js" type="text/javascript" charset="utf-8"></script>
Stefan van der Walt
Refactor static printing.
r4615 <script src="static/js/printwidget.js" type="text/javascript" charset="utf-8"></script>
Brian E. Granger
Left panel is now working.
r4363 <script src="static/js/leftpanel.js" type="text/javascript" charset="utf-8"></script>
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 <script src="static/js/notebook.js" type="text/javascript" charset="utf-8"></script>
Brian E. Granger
Further cleanup and renaming of notebook.
r5111 <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>