mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-15 04:00:34 +08:00
Merge pull request #1064 from minrk/nbconvert-errors
scroll long tracebacks to the bottom
This commit is contained in:
commit
9f6dfc8e0a
@ -17,4 +17,8 @@ div.traceback-wrapper {
|
||||
text-align: left;
|
||||
max-width: 800px;
|
||||
margin: auto;
|
||||
pre.traceback {
|
||||
max-height: 600px;
|
||||
overflow: auto;
|
||||
}
|
||||
}
|
||||
|
@ -29,3 +29,14 @@ div#header, div#site {
|
||||
</header>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block script %}
|
||||
{{super()}}
|
||||
<script type='text/javascript'>
|
||||
require(['jquery'], function($) {
|
||||
// scroll long tracebacks to the bottom
|
||||
var tb = $(".traceback")[0];
|
||||
tb.scrollTop = tb.scrollHeight;
|
||||
});
|
||||
</script>
|
||||
{% endblock script %}
|
||||
|
Loading…
Reference in New Issue
Block a user