Back to marketplace

Jupyter Notebooks (US Wk 3)

No description yet. This curated deck is ready for daily study.

Total cards: 11•Content version: v3•Public deck•Updated: 8/1/2026

Card preview (11)

#1
Front (Question)

How to open a jupyter notebook?

Back (Answer)

Anaconda command prompt: jupyter notebook (opens in browser)

#2
Front (Question)

reference the output of the last executed cell

Back (Answer)

underscore. _ * 3»_space; last output * 3

#3
Front (Question)

Keyboard shortcut to switch arrows from navigating in a cell to navigating amongst cells

Back (Answer)

Esc from within the cell, then “enter” to enter a cell

#4
Front (Question)

What is a markdown cell in a jupyter notebook?

Back (Answer)

Allows you to format using headings, bold, latex equations, lists, etc

#5
Front (Question)

How do you save a non-executable version of the notebook?

Back (Answer)

File save as – HTML

#6
Front (Question)

execute unix command in notebook, eg ls directory

Back (Answer)

!ls . (exclamation point before)

#7
Front (Question)

store the filename in a variable

Back (Answer)

filename = ‘filename.txt’

#8
Front (Question)

unix command to count the number of lines in the file, w/ var filename

Back (Answer)

!wc -l $filename (need the $ on the variable)

#9
Front (Question)

unix command to get the value of variable filename

Back (Answer)

!echo $filename

#10
Front (Question)

count the lines in a filename with word liberty

Back (Answer)

!grep -o ‘liberty’ $filename | wc -l

#11
Front (Question)

replace blueberries with apples and output to a new file

Back (Answer)

!sed -e ‘s/Apples/Blueberries/g’ ‘fruits2.txt’ > fruits3.txt