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.
You can try Cell -> Current Outputs -> Toggle Scrolling in the Jupyter UI to enable the scrolling for the output of one cell.
To show the full data without any hiding, you can use pd. set_option('display. max_rows', 500) and pd.
If you want all the cells to display long outputs without scrolling, then go to the Cell tab -> All Outputs -> Toggle Scrolling .
Scraping and Rendering HTML in iPython Notebook Requirements: You need to have to have seleniuminstalled first: run pipinstallseleniumin the terminal or with iPython run !pipinstallselenium. Getting an HTML selection with selenium First, set up a Firefox webdriver and point it to our URL of interest.
Reading raw HTML isn’t very nice. Let’s take advantage of some iPython Notebook magic: since we’re viewing the notebook in a web browser, we can also render HTML content directly in the notebook.
Here is the same table as above, rendered in HTML in the iPython notebook. Relative links won’t work, but in the example below the image of the ISS shows up correctly because its srcis an absolute link.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With