resize ipython notebook output window

后端 未结 9 1331
伪装坚强ぢ
伪装坚强ぢ 2020-12-02 12:04

By default the ipython notebook ouput is limited to a small sub window at the bottom. This makes us force to use separate scroll bar that comes with the output window, when

相关标签:
9条回答
  • 2020-12-02 12:09

    See the jupyter autoscroll extension (part of jupyter_contrib_nbextensions), which allows you to select when the output starts scrolling in a dropdown menu (you can set it to never scroll). The API used is not officially supported though, so this may break at any time.

    0 讨论(0)
  • 2020-12-02 12:16

    I just placed my cursor in the grey box next to the output and clicked and then all of the output was displayed.

    0 讨论(0)
  • 2020-12-02 12:17

    For an plot.ly iplot I had to add the following to see any change (it changed all output)

    %%html
    <style>
    .python-iframe > iframe {
      height:1000px !important;
    }
    </style>
    
    0 讨论(0)
  • 2020-12-02 12:21

    You can toggle the scroll window in the main menu of the notebook

    Cell -> Current Outputs -> Toggle Scrolling

    0 讨论(0)
  • 2020-12-02 12:24

    Addendum #2: This comment: https://github.com/ipython/ipython/issues/2172#issuecomment-53708976 indicates how you can increase the maximum size of the output cells. Run the following code in the notebook:

    %%javascript
    IPython.OutputArea.auto_scroll_threshold = 9999;
    
    0 讨论(0)
  • 2020-12-02 12:27

    I tried all the options above and none of them worked. This is how I got rid of the scrolling cell. Right-click on the cell, and click "disable scrolling for outputs" I know this doesn't resize the scrolling cell, but it does make my code more legible since the scrolling cells are very small(for me at least).

    0 讨论(0)
提交回复
热议问题