Using Azure Databricks Notebooks Flashcards

1
Q

What are Notebooks?

A

Notebooks consist of two cells, code cells and annotation cells. The code cells perform task while the annotation cells provide documentation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is cell magic?

A

Cell magic is how you tell the notebook cell which language to use for processing that cell. Examples: %r, %py, %Sql, %md

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

%fs

A

Emulates local disk storage within the DFS system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

%md

A

Markdown Cell. These cells are used to annotate the notebook and support html.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

%python

A

Supports Python 2 and python 3 depending on the cluster.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

%r

A

R language cell.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

%run

A

Executes another notebook

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

%scala

A

Uses the scala language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

%sh

A

Shell statements used to run BASH commands

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

%sql

A

Used to run SQL commands

How well did you know this?
1
Not at all
2
3
4
5
Perfectly