I needed to update this work for jupyter 4/5 with a small raspberry pi LCD.
As in jupyter 4.x, a script is now required in ~/.jupyter/custom/custom.js
I used this function, which not only hides tabs in normal mode, but also moves the rack to the scrollable area. Did I mention this on a small LCD? We need every pixel!
define(['base/js/events'], function(events) { events.on('app_initialized.NotebookApp', function () { $('#header-container').toggle(); $('.header-bar').toggle(); $('div#maintoolbar').toggle(); $('#site').prepend($("#header").detach()); events.trigger('resize-header.Page'); }); });
It was also necessary to remove the lower border using ~/.jupyter/custom/custom.css
div#notebook{ padding: 0; } div#site{ height: 100% !important; }
bmidgley
source share