Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jupyter Lab hide vertical navigation pane

There's an answer here showing how to minimize the navigation pane to make it show the icons only. Basically, you just need to click the first folder icon on the left.

enter image description here

How can I hide the vertical navigation pane on the left completely?

like image 384
multigoodverse Avatar asked Feb 11 '19 22:02

multigoodverse


People also ask

How do I hide sections in Jupyter Notebook?

Hide cell inputs If you add the tag hide-input to a cell, then Jupyter Book will hide the cell but display the outputs.

How do I make Jupyterlab full screen?

Click F11, to view the Jupyter Notebook in Full Screen Mode. Click F11 once more, to come out of Full Screen Mode.

What is %% capture in Jupyter?

What does %% capture do in Jupyter? Capturing Output With %%capture IPython has a cell magic, %%capture , which captures the stdout/stderr of a cell. With this magic you can discard these streams or store them in a variable. By default, %%capture discards these streams. This is a simple way to suppress unwanted output.


1 Answers

There's an open issue for this feature which is not implemented yet.

So, there's no current way of setting a custom rule in the Settings > Advanced Settings Editor > Sidebar menu.

While this feature is not added, what you can do is to write a small browser extension to execute this code on every notebook server (in the onDOMContentLoaded event):

const leftSidebar = document.querySelector('.jp-SideBar')
document.querySelector('#jp-main-content-panel').removeChild(leftSidebar)

You can try this code in the inspector console and then open/create a new notebook.

enter image description here

You can check other workarounds here and here.

like image 56
herodrigues Avatar answered Sep 25 '22 04:09

herodrigues