mojones
mojones

Reputation: 1680

When exporting an ipython notebook to html, long output doesn't have a scroll bar

I have an iPython notebook with some very long output cells, which automatically get a scroll bar when editing the live notebook. When I convert to HTML with

ipython nbconvert myfile.ipynb

everything looks fine except that the long output cells don't have a scroll bar. If I manually edit the HTML and add the output_scroll class to the cells, the scroll bar appears.

Is this the expected behaviour? I thought that nbconvert to HTML was supposed to preserve scroll behaviour.

Upvotes: 14

Views: 1580

Answers (1)

Nguyễn Tuấn Anh
Nguyễn Tuấn Anh

Reputation: 31

Until now, it still hasn't that ability. I suggest that change manually at

 <div class=".."> to 
 <div class=".."style="overflow-y: scroll; height:400px;">

Maybe because of it doesn't know which fields long/short

Upvotes: 3

Related Questions