Skip to content

Instantly share code, notes, and snippets.

@asdfgeoff
Created December 9, 2019 11:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asdfgeoff/cbb38d2116735aaca933467c6dbb17d5 to your computer and use it in GitHub Desktop.
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
{%- 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