##// END OF EJS Templates
Adds configuration options to use Google Drive content manager...
Adds configuration options to use Google Drive content manager 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"

File last commit:

r18589:135227ac
r18639:28c27a69
Show More
rst.tpl
80 lines | 1.6 KiB | application/vnd.groove-tool-template | SmartyLexer
{%- extends 'display_priority.tpl' -%}
{% block in_prompt %}
{% endblock in_prompt %}
{% block output_prompt %}
{% endblock output_prompt %}
{% block input %}
{%- if cell.source.strip() -%}
.. code:: python
{{ cell.source | indent}}
{%- endif -%}
{% endblock input %}
{% block error %}
::
{{ super() }}
{% endblock error %}
{% block traceback_line %}
{{ line | indent | strip_ansi }}
{% endblock traceback_line %}
{% block execute_result %}
{% block data_priority scoped %}
{{ super() }}
{% endblock %}
{% endblock execute_result %}
{% block stream %}
.. parsed-literal::
{{ output.text | indent }}
{% endblock stream %}
{% block data_svg %}
.. image:: {{ output.metadata.filenames['image/svg+xml'] | urlencode }}
{% endblock data_svg %}
{% block data_png %}
.. image:: {{ output.metadata.filenames['image/png'] | urlencode }}
{% endblock data_png %}
{% block data_jpg %}
.. image:: {{ output.metadata.filenames['image/jpeg'] | urlencode }}
{% endblock data_jpg %}
{% block data_latex %}
.. math::
{{ output.data['text/latex'] | strip_dollars | indent }}
{% endblock data_latex %}
{% block data_text scoped %}
.. parsed-literal::
{{ output.data['text/plain'] | indent }}
{% endblock data_text %}
{% block data_html scoped %}
.. raw:: html
{{ output.data['text/html'] | indent }}
{% endblock data_html %}
{% block markdowncell scoped %}
{{ cell.source | markdown2rst }}
{% endblock markdowncell %}
{% block headingcell scoped %}
{{ ("#" * cell.level + cell.source) | replace('\n', ' ') | markdown2rst }}
{% endblock headingcell %}
{% block unknowncell scoped %}
unknown type {{cell.type}}
{% endblock unknowncell %}