AnswerBun.com

How can markdown the national flags in jupyter notebook?

Stack Overflow Asked by Mario on September 18, 2020

I want to insert images of national flags from a URL source and Markdown code block in Jupyter Notebooks as following examples:

Flags

I have found a similar method they used flag codes in excel
Like this:

|Teams          | Nationality flag  |
| ------------- |:-----------------:|
| Germany       |  GER              |
| Iran          |  IRI              |
| Italy         |  ITA              |

Any helps will be appreciated.

One Answer

  • Just like you do in SO

  • In a markdown cell, create the markdown table, add the link to the image file, and run the cell.

    • enter image description here
  • Flags from Flagpedia

Style 1: In a Markdown Cell

|Teams          | Nationality flag  |
| ------------- |:-----------------:|
| CA            |  ![](http://usa.flagpedia.net/data/flags/mini/ca.png)              |

Style 2: In a Markdown Cell

|Teams          | Nationality flag  |
| ------------- |:-----------------:|
| CA            |  ![][ca]          |

  [ca]: http://usa.flagpedia.net/data/flags/mini/ca.png

Style 3: In a Markdown Cell

|Teams          | Nationality flag  |
| ------------- |:-----------------:|
| CA            |  ![ca]            |

  [ca]: http://usa.flagpedia.net/data/flags/mini/ca.png

All styles produce

enter image description here

Correct answer by Trenton McKinney on September 18, 2020

Add your own answers!

Related Questions

Seperate strings with regex and panda

1  Asked on January 11, 2021 by sara-daniel

         

Login into SAP using admin user fails

1  Asked on January 11, 2021 by gram77

 

Using LIKE with multiple columns in a table

3  Asked on January 10, 2021 by soldfor

   

Does the value of global variable persist in multiple API calls

2  Asked on January 10, 2021 by shubroto-shuvo

 

React Component not rendering to HTML

1  Asked on January 10, 2021 by red-apple

     

How can I count a pandas dataframe over duplications

4  Asked on January 10, 2021 by toby-chamberlain

     

javascript .eval() gives me undifined

2  Asked on January 10, 2021 by nourza

     

Loop for column names in python

3  Asked on January 10, 2021 by essegn

         

Return array of values from object based on array

2  Asked on January 9, 2021 by user4584963

         

How do I get out of ‘screen’ without typing ‘exit’?

5  Asked on January 9, 2021 by meder-omuraliev

   

How can I regroup ‘sublists’ in a list with Python?

2  Asked on January 9, 2021 by zhengrong

       

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir