Five Shortcuts for Improved Productivity in Jupyter Notebooks

Emily Ekdahl
2 min readSep 22, 2020

--

Data Scientists can and should emulate software engineers’ obsession with productivity hacks. Keyboard shortcuts are a quick and dirty way you can become better at your job. (Disclaimer: these shortcuts are specifically for Mac Users!)

If you know one thing, know how to execute your cells without clicking “Run.” This command also automatically creates the next cell:

SHIFT + ENTER

Since proper documentation is key, the second thing to master is switching between code and markdown cells without reaching for your mouse or trackpad.

Markdown:

ESC + M then hit ENTER

Code:

ESC + Y then hit ENTER

Sometimes you end up with code you no longer want or need. Deleting old or dead code is one of the great joys of software engineering.

(Shout out to all you vim users, this may look familiar to you!)

ESC + D + D

There’s a wonderful world of shortcuts to explore in Jupyter Notebooks and you can have the rest of them at your fingertips by using this keyboard shortcut:

ESC + H

Thanks for reading! Hope this helps you become more productive and efficient while working in Jupyter Notebooks!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Emily Ekdahl
Emily Ekdahl

Written by Emily Ekdahl

Senior Machine Learning Engineer

No responses yet

Write a response