Jupyter Notebook Markdown Cheat Sheet



  1. Jupyter Notebook Markdown Cheat Sheet
  2. Jupiter Notebook Markdown Guide
Markdown

Jupyter Notebook is a great tool for data analysis. And one of its greatest features is that you can easily combine runnable code with rich-text annotations. Markdown cells that contain such annotations support both HTML and Markdown syntax.

Jupyter Notebook Markdown Cheat Sheet

Markdown is a way to style text on the web. You control the display of the document; forma˜ing words as bold or italic, adding images, and creating lists are just a few of the things we can do with Markdown. Mostly, Markdown is just regular text with a few non-alphabetic characters thrown in, like # or. Jupyter Notebook Keyboard Shortcuts Command Mode (press Esc to enable) Enter enter edit mode Shift- Enter run cell, select below Ctrl-Enter run cell Alt-Enter run cell, insert below Y to code M to markdown R to raw 1 to heading 1 2,3,4,5,6 to heading 2,3,4,5,6 Up/K select cell above Down/J select cell below A/B insert cell above/ below X cut. MyST Markdown overview Special content blocks References and cross-references Control the page layout Citations and bibliographies Math and equations Images and figures Add metadata to your book pages Hide or remove content Types of content source files Markdown files Jupyter Notebook files. Here’s how to format Markdown cells in Jupyter notebooks in the IBM Data Science Experience. Headings: Use #s followed by a blank space for notebook titles and section headings: # title ## major headings ### subheadings #### 4th level subheadings. Emphasis: Use this code: Bold: string or.string. Italic: string or.string.

Personally I prefer # Header (markdown syntax) to <h1>Header</h1> (HTML syntax) in my notebook’s cells as the former looks more human. So I use markdown syntax more often and a concise cheat sheet for Jupyter Notebook markdown is what I was missing for a long time. Yes, I’m aware of such comprehensive cheat sheets like this and this, they are great but too verbal and it’s hard to print them on one page to have it easily accessible. Android mtp driver download for windows 10.

Eventually, I decided to gather all crucial points of the markdown syntax that are actual for Jupyter notebook and combine them in a concise cheat sheet that I present to you. It doesn’t explain much but should be useful if you simply forgot something. Click the picture to download the PDF version.

I didn’t get into the details of LaTeX syntax (see the penultimate cell in the cheat sheet with the square root of k) since it’s well described here (get ready, it’s a very long document) and you can even download a pretty good cheat sheet here.

Are you starting to create machine learning models (using python programming) using JupyterLab or Jupyter Notebook? This post list down some commands which are found to be very useful while one (beginner data scientist) is getting started with using JupyterLabnotebook for building machine learning models.

PdfNotebook
  • Notebook Operations: The following command helps to perform operations with the notebook.
    • Ctrl + S: Save the notebook
    • Ctrl + Q: Close the notebook
    • Enter: While on any cell, you want to enter edit mode, press Enter.
  • Cells Operation: The following commands help with performing operations on cells:
    • J: Select the cell below the current cell; This command would be used to go through cells below the current cell; Once you reached to the desired cell, you could Shift + Enter to execute the command in the given cell.
    • K: Select the cell above the current cell
    • X: Cut the content of the current cell
    • C: Copy the content of the current cell
    • V: Paste the command copied into the below cell
    • Shift + Enter: Run the selected cell and insert a cell below
    • Ctrl + Enter: Run the selected cell but do not add the cell below; If this command is used, one could use B to enter a cell below.
    • B: Enter a cell below. This command comes handy for entering the cell at any point. Very useful if you want to add a markdown note before/after execution of any command.
    • D,D: Delete the cell
  • Notes taking operations using Markdown editor: If you are a blogger, you would love these shortcuts. Very useful for taking notes while you are working on your models.
    • M: Go to Markdown mode to write some notes in markdown format
    • Y: Go to Code mode to continue working with code

Jupyter Notebook Markdown Cheat Sheet

Summary

In this post, you learned about some of the quick commands (Cheat sheet) which you could use for your reference while working with JupyterLab or Jupyter Notebook. Please feel free to suggest other commands that you found to be useful which are not listed above.

Jupiter Notebook Markdown Guide

  • First Principles Understanding based on Physics - April 13, 2021
  • Precision & Recall Explained using Covid-19 Example - April 11, 2021
  • Moving Average Method for Time-series forecasting - April 4, 2021