Jupyter Shortcuts Cheat Sheet



IPython / Jupyter¶

Keyboard shortcut cheat sheet ¶ Many of the notebook functions can be accessed through quick and convenient keyboard shortcuts. These are available when a. Jupyter Notebooks support many helpful Keyboard shortcuts, including ones for most of the buttons in your toolbar. To view these shortcuts, you can click the help menu and then select Keyboard Shortcuts, as pictured below.

  • Using IPython makes interactive work easy.
    • Better shell
    • Notebook interface
    • Embeddable kernel
    • Parallel python

IPython shell shortcuts¶

  • TAB expansion to complete python names and file paths
  • ~ and * directory / file expansion
  • many 'magic' methods:

Help¶

%pdoc%pdef%psource for docstring, function definition, source code only.

Run¶

Sheet

To run a program directly from the IPython console:

%run has special flags for timing the execution of your scripts (-t) or for running them under the control of either Python's pdb debugger (-d) or profiler (-p):

Other Commands¶

Jupiter Shortcuts Cheat Sheet Download

Cheat
  • %reset is not a kernel restart
  • Restart with Ctrl+. in 'qtconsole'
  • import module ; reload(module) to reload a module from disk

Debugging¶

OS Commands¶

History¶

GUI integration¶

Start with ipython --gui=qt or at the IPython prompt:

Arguments can be wx, qt, gtk and tk.

Matplotlib / pylab graphics in an iPython shell¶

Jupyterlab Shortcuts Cheat Sheet

Start with: ipython --matplotlib ( or --matplotlib=qt etc...)

At the IPython prompt:

%pylab makes the following imports:

At the command prompt:

alternative: --matplotlib inlineor within IPython:

To embed plots, SVG or HTML in qtconsole, call display:

IPython Notebook web-based interface¶

Jupyter Shortcuts Cheat Sheet Windows

  • Start with: ipython notebook and switch to browser
  • Keyboard shortcuts:
    • Enter to edit a cell
    • Shift + Enter to evaluate
    • Ctrl + m or Esc for the 'command mode'

Jupyter Cheat Sheet

In command mode:

Jupyter Notebook Header

Papermill is a tool for parameterizing and executing Jupyter Notebooks.