mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
3994d4d56a
Adds the key contentmanager_js_source to webapp_settings that allows for specifying the content manager JavaScript source file. Also adds a NotebookManager subclass, ClientSideNotebookManager, which does minimal logic. This class is used when the JavaScript content manager doesn't use the Python notebook manager, but rather implements that logic client side, as is the case for the Google Drive based content manager. A sample command line that uses the Google Drive content manager, and the ClientSideNotebookManager, is ipython notebook --NotebookApp.webapp_settings="{'contentmanager_js_source': 'base/js/drive_contentmanager'}" --NotebookApp.notebook_manager_class="IPython.html.services.notebooks.clientsidenbmanager.ClientSideNotebookManager"
108 lines
3.2 KiB
HTML
108 lines
3.2 KiB
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
|
|
<title>{% block title %}IPython Notebook{% endblock %}</title>
|
|
<link rel="shortcut icon" type="image/x-icon" href="{{static_url("base/images/favicon.ico") }}">
|
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
|
<link rel="stylesheet" href="{{static_url("components/jquery-ui/themes/smoothness/jquery-ui.min.css") }}" type="text/css" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
{% block stylesheet %}
|
|
<link rel="stylesheet" href="{{ static_url("style/style.min.css") }}" type="text/css"/>
|
|
{% endblock %}
|
|
<link rel="stylesheet" href="{{ static_url("custom/custom.css") }}" type="text/css" />
|
|
<script src="{{static_url("components/requirejs/require.js") }}" type="text/javascript" charset="utf-8"></script>
|
|
<script>
|
|
require.config({
|
|
baseUrl: '{{static_url("", include_version=False)}}',
|
|
paths: {
|
|
nbextensions : '{{ base_url }}nbextensions',
|
|
underscore : 'components/underscore/underscore-min',
|
|
backbone : 'components/backbone/backbone-min',
|
|
jquery: 'components/jquery/jquery.min',
|
|
bootstrap: 'components/bootstrap/js/bootstrap.min',
|
|
bootstraptour: 'components/bootstrap-tour/build/js/bootstrap-tour.min',
|
|
jqueryui: 'components/jquery-ui/ui/minified/jquery-ui.min',
|
|
highlight: 'components/highlight.js/build/highlight.pack',
|
|
moment: "components/moment/moment",
|
|
codemirror: 'components/codemirror',
|
|
termjs: "components/term.js/src/term"
|
|
contentmanager: '{{ contentmanager_js_source }}',
|
|
},
|
|
shim: {
|
|
underscore: {
|
|
exports: '_'
|
|
},
|
|
backbone: {
|
|
deps: ["underscore", "jquery"],
|
|
exports: "Backbone"
|
|
},
|
|
bootstrap: {
|
|
deps: ["jquery"],
|
|
exports: "bootstrap"
|
|
},
|
|
bootstraptour: {
|
|
deps: ["bootstrap"],
|
|
exports: "Tour"
|
|
},
|
|
jqueryui: {
|
|
deps: ["jquery"],
|
|
exports: "$"
|
|
},
|
|
highlight: {
|
|
exports: "hljs"
|
|
},
|
|
}
|
|
});
|
|
</script>
|
|
|
|
{% block meta %}
|
|
{% endblock %}
|
|
|
|
</head>
|
|
|
|
<body {% block params %}{% endblock %}>
|
|
|
|
<noscript>
|
|
<div id='noscript'>
|
|
IPython Notebook requires JavaScript.<br>
|
|
Please enable it to proceed.
|
|
</div>
|
|
</noscript>
|
|
|
|
<div id="header" class="navbar navbar-static-top">
|
|
<div class="container">
|
|
<div id="ipython_notebook" class="nav navbar-brand pull-left"><a href="{{base_url}}tree/{{notebook_path}}" alt='dashboard'><img src='{{static_url("base/images/ipynblogo.png") }}' alt='IPython Notebook'/></a></div>
|
|
|
|
{% block login_widget %}
|
|
|
|
<span id="login_widget">
|
|
{% if logged_in %}
|
|
<button id="logout">Logout</button>
|
|
{% elif login_available and not logged_in %}
|
|
<button id="login">Login</button>
|
|
{% endif %}
|
|
</span>
|
|
|
|
{% endblock %}
|
|
|
|
{% block header %}
|
|
{% endblock %}
|
|
</div>
|
|
</div>
|
|
|
|
<div id="site">
|
|
{% block site %}
|
|
{% endblock %}
|
|
</div>
|
|
|
|
{% block script %}
|
|
{% endblock %}
|
|
|
|
</body>
|
|
|
|
</html>
|