How to Easily Insert Emoji in the Jupyter Notebook

Adding Emojis can make the code output and documentation interesting and attractive

It is very interesting and attractive to add emoji symbols in the text of Jupyter notebook, which can help express your feelings. Thus, this post will display how to insert emoji in Jupyter notebook.

1. Copy Emodji Icons

Standard Markdown doesn’t seem to support emoji codes, but we can copy an emoji from a source like Emojipedia and past it to your Markdown text. For example, we write some text, and add emodji at the end of each line as follows:

I really love this video! 
The story is so funny!
It makes me laughing and laughing!
Thank you, the video creator!

Let’s click and go to Emojipedia, and copy the emodji icons you want to use.

The final result looks as follows:

I really love this video! ????
The story is so funny! ????
It makes me laughing and laughing! ????
Thank you, the video creator! ????

2. Use HTML Unicodes

We can use the decimal (dec) unicodes or hexadecimal (hex) unicodes of HTML Emoji.

  • add &# before the dec code number
  • put &#x before the hex code numbers

Here we only see few examples, please refer to HTML Emoji Reference in w3schools for more HTML Emoji codes.

Dec: ???? ????
Hex: ???? ????

We can get the same output as pasting method above using the following syntax.

I really love this video! ????   
The story is so funny! ????
It makes me laughing and laughing! ????
Thank you, the video creator! ????

The output looks as follows:

I really love this video! ????
The story is so funny! ????
It makes me laughing and laughing! ????
Thank you, the video creator! ????

If you want to space between lines, you can just add a space between lines or use HTML <p> tags as follows.

<p>I really love this video! ????</p>   
<p>The story is so funny! ????</p>
<p>It makes me laughing and laughing! ????</p>
<p>Thank you, the video creator! ????</p>

It results following output:

The result looks as follows:

I really love this video! ????

The story is so funny! ????

It makes me laughing and laughing! ????

Thank you, the video creator! ????

3. Online course

If you are interested in learning Jupyter notebook in details, you are welcome to enroll one of my course  Practical Jupyter Notebook from Beginner to Expert.

Bookmark
ClosePlease login
0 - 0

Thank You For Your Vote!

Sorry You have Already Voted!

Please follow and like me:

Leave a Reply

Your email address will not be published. Required fields are marked *