Jupyterlab

JupyterLab is a highly extensible, feature-rich notebook authoring application and editing environment, and is a part of Project Jupyter, a large umbrella project centered around the goal of providing tools (and standards) for interactive computing with computational notebooks.

A computational notebook is a shareable document that combines computer code, plain language descriptions, data, rich visualizations like 3D models, charts, graphs and figures, and interactive controls. A notebook, along with an editor like JupyterLab, provides a fast interactive environment for prototyping and explaining code, exploring and visualizing data, and sharing ideas with others.

JupyterLab is a sibling to other notebook authoring applications under the Project Jupyter umbrella, like Jupyter Notebook and Jupyter Desktop. JupyterLab offers a more advanced, feature rich, customizable experience compared to Jupyter Notebook.MM

image.png

Starting jupyter lab

Terminal commands:

conda activate ctib
jupyter lab

It then appears in your default browser.|

Side panes

Screenshot 2023-10-23 at 15.59.13.png - alks flaksjf laskjdf laskdfj

asdflaksdfj

Lauching a new notebook or terminal

Pick the folder icon in the side pane menu on the left, click the big blue button and launch a notebook

Multiple notebooks or terminal views

Split windows

Controls

Command palette: Command/Ctrl Shift C

Keyboard short-cuts: Command/Ctrl Shift H

Three kinds of cells

print('hello world')
hello world

This is formatted markdown

This is raw text

Running code in cells

Code blocks

x = 0

Last value is displayed

x = 1
x
1

Everything is one Python process

x += 1
x
2

Restarting the kernel

Two kinds of “Undo”

  • Edit/Undo to undo stuff in the current cell
  • Edit/Undo Cell Operation to undo deleting, moving, merging cells

Moving and copy/paste cells

print("Move this cell somewhere")
Move this cell somewhere

Some other cell

Split and merge cells

Markdown text

https://quarto.org/docs/authoring/markdown-basics.html

This is some more markdown with bold text and italics and showing that somthing is a code, like x = 2 + 2.

Lists

  • foo
  • bar
  • baz

Numbered lists

  1. foo
  2. bar
  3. baz

Quotes

This is a quote

Formulas

\(\sum_{i=0}^n i\)

HTML

Header 2

Header 3

Header 4

Formulas

\(\sum_{i=0}^n i\)

Tables

Name Value
foo 2
bar 3

HTML magic

%%html
<style>
table {float:left}
</style>

Images

Make markdown cell and then drag an image into it:

Some other cell

Table of content and cell folding

Shell commands

! ls
BP TAs.md
ERDA rollout 260923.pptx
FemaleDEGall.pdf
Harmonic mean.xlsx
Marias plots
My Drive 08.10.50
Pictures
Screenshot 2023-09-28 at 14.03.06.png
Screenshot 2023-10-23 at 15.59.13.png
Training project.pdf
Untitled.ipynb
hc38_ECH_90%_regions.txt
jupyter_walk_through.ipynb
nb_20-updated_sweep_enrichments (3).html
nn.png
prob_of_nr_runs.ipynb
rejsUd
runs_of_ones_paper.pdf
timing_code.ipynb