code_console.md 831 B

Code Consoles

Notebooks allow you to write and run code while you create a document. At times, it is helpful to write and run code in an exploratory manner, while not creating a document; a sort of transient playground for interactive code. The JupyterLab Code Console addresses this usage case, with full support for the rich output of Jupyter.

Create a code console by clicking the + button in the File Browser and selecting the kernel:

[animation]

Run code using Shift Enter and use the up and down arrows allow you to browse the history of previously run code:

[animation]

Tab completion (Tab) and tooltips (Shift Tab) work as in the Notebook:

[animation]

You can clear the previous cells of the Code Console by right-clicking on the Code Console and selecting the “Clear Console Cells” item:

[animation]