# Jupyter Lab (Notebook)

Project Jupyter Documentation ( [here](https://jupyter.org/documentation) )
JupyterLab is a next-generation web-based user interface for Project Jupyter.
Jupyter Lab let's you work with documents such as notebooks, text editors, terminals, etc. It's an effecient way to write code in small chunks and test those.
- Code Consoles provide transient scratchpads for running code interactively, with full support for rich output. A code console can be linked to a notebook kernel as a computation log from the notebook, for example.
- Kernel-backed documents enable code in any text file (Markdown, Python, R, LaTeX, etc.) to be run interactively in any Jupyter kernel.
- Notebook cell outputs can be mirrored into their own tab, side by side with the notebook, enabling simple dashboards with interactive controls backed by a kernel.
To install JupterLab, do the following in the terminal
```text
pip install jupyterlab notebook nbconvert
```
This is how you convert a notebook file (.ipynb) to another file type
```text
jupyter nbconvert --to FORMAT notebook.ipynb
```
## Example
```text
jupyter nbconvert --to python notebook.ipynb
```
## Some shortcuts that are useful
Run a cell
```text
SHIFT + ENTER
```
Delete a cell (Click on the cell, cursor should not be inside cell)
```text
dd
```
Add a cell ABOVE (Click on the cell, cursor should not be inside cell)
```text
a
```
Add a cell BELOW (Click on the cell, cursor should not be inside cell)
```text
b
```
### Let's get to testing it out
Inside of this folder run the following command:
```text
jupyter-lab
```
### Recommendation
I recommend having two terminal windows open
1. For the kernal (server) to run for Jupyter Lab
2. To commit changes or run a Python file