Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.