Created
December 9, 2019 11:03
-
-
Save asdfgeoff/cbb38d2116735aaca933467c6dbb17d5 to your computer and use it in GitHub Desktop.
A slightly modified version of the nbconvert template originally found here: http://damianavila.github.io/blog/posts/mimic-the-ipython-notebook-cell-execution.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{%- extends 'full.tpl' -%} | |
// Source: http://damianavila.github.io/blog/posts/mimic-the-ipython-notebook-cell-execution.html | |
{% block input_group -%}/Users/geoffruddock/Library/Jupyter/nbconvert/templates | |
<div class="input_hidden"> | |
{{ super() }} | |
</div> | |
{% endblock input_group %} | |
{%- block header -%} | |
{{ super() }} | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<style type="text/css"> | |
//div.output_wrapper { | |
// margin-top: 0px; | |
//} | |
.input_hidden { | |
display: none; | |
// margin-top: 5px; | |
} | |
div.prompt { | |
display: none; | |
} | |
.CodeMirror{ | |
font-family: "Consolas", sans-serif; | |
} | |
p {font-size:14px;} | |
</style> | |
<script> | |
$(document).ready(function(){ | |
$(".output_wrapper").click(function(){ | |
$(this).prev('.input_hidden').slideToggle(); | |
}); | |
}) | |
</script> | |
{%- endblock header -%} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment