Jupyterlab active scroll bars for long results

前端 未结 3 1360
生来不讨喜
生来不讨喜 2021-02-14 21:40

I\'m using Jupyterlab for my datascience studies. Everything is Ok with this new tool, but some process as GridSearchCV has long logs and this results

3条回答
  •  执念已碎
    2021-02-14 22:08

    there is an automatic way to do this. First, you must install the addon "Stylus" (available on both Chrome and Firefox). This addon allows you to write custom CSS on websites.

    Next, go to your JupyterLab page at localhost:8888/lab and click on the Stylus icon in the top right, and click "Write style for this URL"

    Under the URL, i changed localhost to localhost:8888/lab. Then, I copied in this script by user Buckle2000 from Github (https://github.com/jupyterlab/jupyterlab/issues/4028#issuecomment-446820575)

    .jp-OutputArea-child {
        max-height: 15em;
    }
    
    .jp-OutputArea-child .jp-OutputArea-output {
        overflow: auto;
    }
    

    Then click the Save button, and you should be good to go. I believe you can change the number 15 to make it activate for different heights. It should look like this:

提交回复
热议问题