2013-05-16 07:21:39 +08:00
|
|
|
{% extends "page.html" %}
|
2011-11-19 05:17:36 +08:00
|
|
|
|
2014-02-05 08:29:55 +08:00
|
|
|
{% block title %}{{page_title}}{% endblock %}
|
2011-11-19 05:17:36 +08:00
|
|
|
|
2011-11-19 08:59:48 +08:00
|
|
|
|
|
|
|
{% block params %}
|
2012-02-08 13:40:33 +08:00
|
|
|
|
2014-02-06 08:16:32 +08:00
|
|
|
data-base-url="{{base_url}}"
|
2013-10-08 02:30:15 +08:00
|
|
|
data-notebook-path="{{notebook_path}}"
|
2014-11-01 06:56:53 +08:00
|
|
|
data-terminals-available="{{terminals_available}}"
|
2012-02-08 13:40:33 +08:00
|
|
|
|
2012-08-28 23:58:56 +08:00
|
|
|
{% endblock %}
|
2011-11-19 05:17:36 +08:00
|
|
|
|
2012-02-08 13:40:33 +08:00
|
|
|
|
2012-02-08 08:05:54 +08:00
|
|
|
{% block site %}
|
|
|
|
|
2014-12-12 01:01:15 +08:00
|
|
|
<div id="ipython-main-app" class="container">
|
|
|
|
<div id="tab_content" class="tabbable">
|
|
|
|
<ul id="tabs" class="nav nav-tabs">
|
2014-12-16 08:07:45 +08:00
|
|
|
<li class="active"><a href="#notebooks" data-toggle="tab">Files</a></li>
|
2014-02-21 09:01:51 +08:00
|
|
|
<li><a href="#running" data-toggle="tab">Running</a></li>
|
2013-06-12 03:11:38 +08:00
|
|
|
<li><a href="#clusters" data-toggle="tab">Clusters</a></li>
|
2014-12-12 01:01:15 +08:00
|
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
|
|
|
<div id="notebooks" class="tab-pane active">
|
|
|
|
<div id="notebook_toolbar" class="row">
|
2014-12-24 06:20:03 +08:00
|
|
|
<div class="col-sm-8 no-padding">
|
2014-12-12 01:01:15 +08:00
|
|
|
<form id='alternate_upload' class='alternate_upload'>
|
|
|
|
<span id="notebook_list_info">
|
|
|
|
To import a notebook, drag the file onto the listing below or
|
|
|
|
<span class="input-overlay">
|
|
|
|
<input type="file" name="datafile" class="fileinput" multiple='multiple'>
|
|
|
|
click here.
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</form>
|
2014-12-24 06:20:03 +08:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-4 no-padding tree-buttons">
|
2014-12-20 06:10:50 +08:00
|
|
|
<div class="pull-right">
|
|
|
|
<div id="new-buttons" class="btn-group">
|
2014-11-16 04:39:55 +08:00
|
|
|
<button class="dropdown-toggle btn btn-default btn-xs" data-toggle="dropdown">
|
2014-12-20 06:10:50 +08:00
|
|
|
<span>New</span>
|
2014-12-12 01:01:15 +08:00
|
|
|
<span class="caret"></span>
|
2014-11-16 04:39:55 +08:00
|
|
|
</button>
|
2014-12-20 06:10:50 +08:00
|
|
|
<ul id="new-menu" class="dropdown-menu">
|
|
|
|
<li role="presentation" id="new-file">
|
2015-01-25 21:00:48 +08:00
|
|
|
<a role="menuitem" tabindex="-1" href="#">Text File</a>
|
2014-12-20 06:10:50 +08:00
|
|
|
</li>
|
|
|
|
<li role="presentation" id="new-folder">
|
|
|
|
<a role="menuitem" tabindex="-1" href="#">Folder</a>
|
|
|
|
</li>
|
2014-12-24 04:48:23 +08:00
|
|
|
{% if terminals_available %}
|
|
|
|
<li role="presentation" id="new-terminal">
|
|
|
|
<a role="menuitem" tabindex="-1" href="#">Terminal</a>
|
|
|
|
</li>
|
2015-01-23 10:43:18 +08:00
|
|
|
{% else %}
|
|
|
|
<li role="presentation" id="new-terminal-disabled" class="disabled">
|
|
|
|
<a role="menuitem" tabindex="-1" href="#">Terminals Unavailable</a>
|
|
|
|
</li>
|
2014-12-24 04:48:23 +08:00
|
|
|
{% endif %}
|
2014-12-23 04:23:01 +08:00
|
|
|
<li role="presentation" class="divider"></li>
|
|
|
|
<li role="presentation" class="dropdown-header" id="notebook-kernels">Notebooks</li>
|
2014-12-20 06:10:50 +08:00
|
|
|
</ul>
|
2014-11-16 04:39:55 +08:00
|
|
|
</div>
|
2014-12-19 05:14:34 +08:00
|
|
|
<div class="btn-group">
|
|
|
|
<button id="refresh_notebook_list" title="Refresh notebook list" class="btn btn-default btn-xs"><i class="fa fa-refresh"></i></button>
|
|
|
|
</div>
|
2014-12-12 00:57:29 +08:00
|
|
|
</div>
|
2014-02-03 14:50:08 +08:00
|
|
|
</div>
|
2014-12-12 01:01:15 +08:00
|
|
|
</div>
|
|
|
|
<div id="notebook_list">
|
|
|
|
<div id="notebook_list_header" class="row list_header">
|
2013-06-12 01:37:33 +08:00
|
|
|
<div id="project_name">
|
2013-01-03 20:15:56 +08:00
|
|
|
<ul class="breadcrumb">
|
2014-12-12 01:01:15 +08:00
|
|
|
<li><a href="{{breadcrumbs[0][0]}}"><i class="fa fa-home"></i></a></li>
|
|
|
|
{% for crumb in breadcrumbs[1:] %}
|
|
|
|
<li><a href="{{crumb[0]}}">{{crumb[1]}}</a></li>
|
|
|
|
{% endfor %}
|
2013-01-03 20:15:56 +08:00
|
|
|
</ul>
|
2013-06-04 04:51:30 +08:00
|
|
|
</div>
|
2014-12-12 01:01:15 +08:00
|
|
|
</div>
|
2013-06-12 01:37:33 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-12-12 01:01:15 +08:00
|
|
|
<div id="running" class="tab-pane">
|
|
|
|
<div id="running_toolbar" class="row">
|
2014-07-25 04:02:30 +08:00
|
|
|
<div class="col-sm-8 no-padding">
|
2014-12-19 08:41:15 +08:00
|
|
|
<span id="running_list_info">Currently running Jupyter processes</span>
|
2014-02-21 09:01:51 +08:00
|
|
|
</div>
|
2014-07-25 04:02:30 +08:00
|
|
|
<div class="col-sm-4 no-padding tree-buttons">
|
2014-12-12 01:01:15 +08:00
|
|
|
<span id="running_buttons" class="pull-right">
|
|
|
|
<button id="refresh_running_list" title="Refresh running list" class="btn btn-default btn-xs"><i class="fa fa-refresh"></i></button>
|
|
|
|
</span>
|
2014-02-21 09:01:51 +08:00
|
|
|
</div>
|
2014-12-12 01:01:15 +08:00
|
|
|
</div>
|
2014-12-20 03:32:36 +08:00
|
|
|
<div class="panel-group" id="accordion" >
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<a data-toggle="collapse" data-target="#collapseOne" href="#">
|
|
|
|
Terminals
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div id="collapseOne" class=" collapse in">
|
|
|
|
<div class="panel-body">
|
2015-01-23 10:43:18 +08:00
|
|
|
<div id="terminal_list">
|
|
|
|
<div id="terminal_list_header" class="row list_header">
|
|
|
|
{% if terminals_available %}
|
|
|
|
<div> There are no terminals running. </div>
|
|
|
|
{% else %}
|
|
|
|
<div> Terminals are unavailable. </div>
|
2014-12-20 03:32:36 +08:00
|
|
|
{% endif %}
|
2015-01-23 10:43:18 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-12-20 03:32:36 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-11-01 06:42:52 +08:00
|
|
|
</div>
|
2014-12-20 03:32:36 +08:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<a data-toggle="collapse" data-target="#collapseTwo" href="#">
|
|
|
|
Notebooks
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div id="collapseTwo" class=" collapse in">
|
|
|
|
<div class="panel-body">
|
|
|
|
<div id="running_list">
|
|
|
|
<div id="running_list_header" class="row list_header">
|
|
|
|
<div> There are no notebooks running. </div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-12-19 08:41:15 +08:00
|
|
|
</div>
|
2014-12-20 03:32:36 +08:00
|
|
|
</div>
|
2014-11-01 06:42:52 +08:00
|
|
|
</div>
|
2014-12-12 01:01:15 +08:00
|
|
|
<div id="clusters" class="tab-pane">
|
|
|
|
<div id="cluster_toolbar" class="row">
|
2014-07-25 04:02:30 +08:00
|
|
|
<div class="col-xs-8 no-padding">
|
2014-12-12 01:01:15 +08:00
|
|
|
<span id="cluster_list_info">IPython parallel computing clusters</span>
|
2014-02-03 14:50:08 +08:00
|
|
|
</div>
|
2014-07-25 04:02:30 +08:00
|
|
|
<div class="col-xs-4 no-padding tree-buttons">
|
2014-12-12 01:01:15 +08:00
|
|
|
<span id="cluster_buttons" class="pull-right">
|
|
|
|
<button id="refresh_cluster_list" title="Refresh cluster list" class="btn btn-default btn-xs"><i class="fa fa-refresh"></i></button>
|
|
|
|
</span>
|
2014-02-03 14:50:08 +08:00
|
|
|
</div>
|
2014-12-12 01:01:15 +08:00
|
|
|
</div>
|
|
|
|
<div id="cluster_list">
|
2014-04-15 08:25:11 +08:00
|
|
|
<div id="cluster_list_header" class="row list_header">
|
2014-12-12 01:01:15 +08:00
|
|
|
<div class="profile_col col-xs-4">profile</div>
|
|
|
|
<div class="status_col col-xs-3">status</div>
|
|
|
|
<div class="engines_col col-xs-3" title="Enter the number of engines to start or empty for default"># of engines</div>
|
|
|
|
<div class="action_col col-xs-2">action</div>
|
2013-06-12 02:04:53 +08:00
|
|
|
</div>
|
2014-12-12 01:01:15 +08:00
|
|
|
</div>
|
2013-06-12 02:04:53 +08:00
|
|
|
</div>
|
2014-12-12 01:01:15 +08:00
|
|
|
</div><!-- class:tab-content -->
|
|
|
|
</div><!-- id:tab_content -->
|
|
|
|
</div><!-- ipython-main-app -->
|
2012-02-08 08:05:54 +08:00
|
|
|
|
2012-08-28 23:58:56 +08:00
|
|
|
{% endblock %}
|
2011-08-05 13:57:01 +08:00
|
|
|
|
2011-11-19 05:17:36 +08:00
|
|
|
{% block script %}
|
2014-06-24 01:56:37 +08:00
|
|
|
{{super()}}
|
|
|
|
|
|
|
|
<script src="{{ static_url("tree/js/main.js") }}" type="text/javascript" charset="utf-8"></script>
|
2012-08-28 23:58:56 +08:00
|
|
|
{% endblock %}
|