Greasy Fork

Greasy Fork is available in English.

Jupyter助手

Jupyter助手0.1

当前为 2021-12-14 提交的版本,查看 最新版本

// ==UserScript==
// @name         Jupyter助手
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Jupyter助手0.1
// @author       myaijarvis
// @match        http://localhost:8888/lab/*
// @icon         https://www.google.com/s2/favicons?domain=undefined.localhost
// @require      https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js
// @grant        none
// @run-at       document-end
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...

    function setMaxHeight(){
        $('.jp-OutputArea-output pre').css('max-height','20em')
        //console.info("setMaxHeight")
    }
    setInterval(setMaxHeight,5000)



})();