From da0d0e09ff391b1ab23c9e01c39f958f631ba3c8 Mon Sep 17 00:00:00 2001 From: Giuseppe Pagliuca Date: Wed, 21 Dec 2016 08:54:58 +0100 Subject: [PATCH 1/5] Added the hide_input option --- nbsphinx.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nbsphinx.py b/nbsphinx.py index 2e75a97e..b7821534 100644 --- a/nbsphinx.py +++ b/nbsphinx.py @@ -91,6 +91,12 @@ {% endif %} {%- endblock any_cell %} +{% block input_group -%} +{%- if cell.metadata.hide_input -%} +{%- else -%} +{{ super() }} +{%- endif -%} +{% endblock input_group %} {% block input -%} .. nbinput:: {% if cell.metadata.magics_language -%} From 2632e71c76a007ab5de6914e1206aeefbab636f2 Mon Sep 17 00:00:00 2001 From: peppe Date: Wed, 11 Jan 2017 14:30:34 +0100 Subject: [PATCH 2/5] removed scroolbars --- nbsphinx | 1 + nbsphinx.py | 16 +++++++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) create mode 160000 nbsphinx diff --git a/nbsphinx b/nbsphinx new file mode 160000 index 00000000..da0d0e09 --- /dev/null +++ b/nbsphinx @@ -0,0 +1 @@ +Subproject commit da0d0e09ff391b1ab23c9e01c39f958f631ba3c8 diff --git a/nbsphinx.py b/nbsphinx.py index b7821534..3692392b 100644 --- a/nbsphinx.py +++ b/nbsphinx.py @@ -91,11 +91,11 @@ {% endif %} {%- endblock any_cell %} -{% block input_group -%} -{%- if cell.metadata.hide_input -%} -{%- else -%} -{{ super() }} -{%- endif -%} +{% block input_group -%} +{%- if cell.metadata.hide_input -%} +{%- else -%} +{{ super() }} +{%- endif -%} {% endblock input_group %} {% block input -%} @@ -369,6 +369,12 @@ } } ++/* disable scrollbars on prompts */ ++div.nbinput div.prompt pre, ++div.nboutput div.prompt pre { ++ overflow: hidden; ++} ++ /* input/output area */ div.nbinput div.input_area, div.nboutput div.output_area { From dc292d34c663859086fa4c7cd963218fcb41d464 Mon Sep 17 00:00:00 2001 From: peppe Date: Wed, 11 Jan 2017 14:46:27 +0100 Subject: [PATCH 3/5] rebased --- nbsphinx | 1 + 1 file changed, 1 insertion(+) create mode 160000 nbsphinx diff --git a/nbsphinx b/nbsphinx new file mode 160000 index 00000000..da0d0e09 --- /dev/null +++ b/nbsphinx @@ -0,0 +1 @@ +Subproject commit da0d0e09ff391b1ab23c9e01c39f958f631ba3c8 From d1d833421ebf4fd81c4a43be23310e76ad0192b8 Mon Sep 17 00:00:00 2001 From: peppe Date: Wed, 11 Jan 2017 14:50:22 +0100 Subject: [PATCH 4/5] fix --- nbsphinx.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nbsphinx.py b/nbsphinx.py index 3692392b..9f1be473 100644 --- a/nbsphinx.py +++ b/nbsphinx.py @@ -369,12 +369,12 @@ } } -+/* disable scrollbars on prompts */ -+div.nbinput div.prompt pre, -+div.nboutput div.prompt pre { -+ overflow: hidden; -+} -+ +/* disable scrollbars on prompts */ +div.nbinput div.prompt pre, +div.nboutput div.prompt pre { + overflow: hidden; +} + /* input/output area */ div.nbinput div.input_area, div.nboutput div.output_area { From b21afe8c4aeeaaef1a9b6ea9f0e5599cc1da44c5 Mon Sep 17 00:00:00 2001 From: Giuseppe Pagliuca Date: Wed, 11 Jan 2017 14:54:38 +0100 Subject: [PATCH 5/5] Update nbsphinx.py --- nbsphinx.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/nbsphinx.py b/nbsphinx.py index 9f1be473..9eb8f924 100644 --- a/nbsphinx.py +++ b/nbsphinx.py @@ -369,12 +369,6 @@ } } -/* disable scrollbars on prompts */ -div.nbinput div.prompt pre, -div.nboutput div.prompt pre { - overflow: hidden; -} - /* input/output area */ div.nbinput div.input_area, div.nboutput div.output_area {