From dd276080f30fe67178c2fb301c866fc825b8031b Mon Sep 17 00:00:00 2001 From: Peter Parente Date: Tue, 7 Mar 2017 16:22:50 -0500 Subject: [PATCH 1/3] Add cell input toggle to navbar Original idea from http://chris-said.io/2016/02/13/how-to-make-polished-jupyter-presentations-with-optional-code-visibility/ Tweaked in http://mindtrove.info/code-hiding-on-nbviewer/. Why not in nbviewer itself? --- nbviewer/templates/layout.html | 10 ++++++++ nbviewer/templates/notebook.html | 42 ++++++++++++++++++++++++++++++-- 2 files changed, 50 insertions(+), 2 deletions(-) diff --git a/nbviewer/templates/layout.html b/nbviewer/templates/layout.html index 6680e00d..81fe6b77 100644 --- a/nbviewer/templates/layout.html +++ b/nbviewer/templates/layout.html @@ -19,6 +19,16 @@ {%- endmacro %} +{% macro head_js_icon(js, name, icon, accesskey=None) -%} +
  • + + + {{name}} + +
  • +{%- endmacro %} + + {% macro link_breadcrumbs(crumbs) -%} {% if crumbs %}