Data Book - IPython Flashcards

1
Q

How do you reset the namespace?

A

%reset

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

How do you enable magic functions without the % sign?

A

%automagic

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

How do you use magic for the interactive debugger?

A

%debug

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

How do you run a script inside a jupyter notebook?

A

%run (script.py)

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

How do you display all variables in a namespace?

A

%who, %who_ls, %whos

Varying levels of info

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

How do you change jupyter directories?

How do you print the working dir?

A

%cd directory

%pwd

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