Skip to content

Instantly share code, notes, and snippets.

@ajp619
Created April 30, 2020 03:45
Show Gist options
  • Save ajp619/d1ff3c3a18c059146344b9217300a339 to your computer and use it in GitHub Desktop.
Save ajp619/d1ff3c3a18c059146344b9217300a339 to your computer and use it in GitHub Desktop.
Create colored boxes in Jupyter notebooks

from https://www.ibm.com/support/knowledgecenter/SSQNUZ_1.2.1/com.ibm.icpdata.doc/dsx/markd-jupyter.html

Blue boxes (alert-info)

Tip: Use blue boxes (alert-info) for tips and notes. If it’s a note, you don’t have to include the word “Note”.

Yellow boxes (alert-warning)

Example: Use yellow boxes for examples that are not inside code cells, or use for mathematical formulas if needed.

Green boxes (alert-success)

Up to you: Use green boxes sparingly, and only for some specific purpose that the other boxes can't cover. For example, if you have a lot of related content to link to, maybe you decide to use green boxes for related links from each section of a notebook.

Red boxes (alert-danger)

Just don't: In general, avoid the red boxes. These should only be used for actions that might cause data loss or another major issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment