# Entering emoji

**URL:** <https://discourse.julialang.org/t/entering-emoji/60274>\
**Category:** New to Julia\
**Created:** [April 29, 2021, 9:56pm UTC](https://discourse.julialang.org/t/entering-emoji/60274 "2021-04-29T21:56:26Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![murrayE](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/murraye/32/24428_2.png) [@murrayE](https://discourse.julialang.org/u/murrayE)\
**Post date:** [April 29, 2021, 9:56pm UTC](https://discourse.julialang.org/t/entering-emoji/60274/1 "2021-04-29T21:56:26Z")

</div>

’m working through Julia tutorial in Nteract. The notebook

```
JuliaTutorials/intro-to-julia/01. Getting started.ipnyb

```

says that to enter an emoji such as smiley\_face, type:

```
:smi + [TAB]

```

So I did type “:smi” (without quotes) and pressed TAB in the nteract cell. Nothing happens! In particlar, no list of possible completions to select from.

I tried same thing in a Terminal Julia REPL. Likewise, nothing happens.

Julia 1.6.1 under macOS Big Sur 11.3.’

What’s wrong?

---

<div class="post-metadata">

**Author:** ![Henrique\_Becker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrique_becker/32/15443_2.png) [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)\
**Post date:** [April 29, 2021, 10:06pm UTC](https://discourse.julialang.org/t/entering-emoji/60274/2 "2021-04-29T22:06:48Z")

</div>

You have missed a `\` before the `:`, it works for me if I do:

```julia
julia> \:smi<I tabbed here>
\:smile: \:smiley: \:smiling_imp: \:smirk_cat:
\:smile_cat: \:smiley_cat: \:smirk:

julia> \:smile:<then I tabbed again and it become the below>

julia> 😄

```

---

<div class="post-metadata">

**Author:** ![murrayE](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/murraye/32/24428_2.png) [@murrayE](https://discourse.julialang.org/u/murrayE)\
**Post date:** [April 29, 2021, 10:09pm UTC](https://discourse.julialang.org/t/entering-emoji/60274/3 "2021-04-29T22:09:06Z")

</div>

With the \ (`\:smi <TAB>`) I now get the list to choose from, but when I select` \:smiley_cat:` I get `ERROR: syntax: "\" is not a unary operator`.

---

<div class="post-metadata">

**Author:** ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)\
**Post date:** [April 29, 2021, 10:12pm UTC](https://discourse.julialang.org/t/entering-emoji/60274/4 "2021-04-29T22:12:04Z")

</div>

perhaps [Tab completion doesn't work on Julia kernel · Issue #5396 · nteract/nteract · GitHub](https://github.com/nteract/nteract/issues/5396)?

---

<div class="post-metadata">

**Author:** ![cvanaret](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cvanaret/32/11594_2.png) [@cvanaret](https://discourse.julialang.org/u/cvanaret)\
**Post date:** [April 29, 2021, 10:12pm UTC](https://discourse.julialang.org/t/entering-emoji/60274/5 "2021-04-29T22:12:50Z")

</div>

You have to press TAB again, not Enter.

---

<div class="post-metadata">

**Author:** ![murrayE](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/murraye/32/24428_2.png) [@murrayE](https://discourse.julialang.org/u/murrayE)\
**Post date:** [April 29, 2021, 10:19pm UTC](https://discourse.julialang.org/t/entering-emoji/60274/6 "2021-04-29T22:19:06Z")

</div>

OK, pressing TAB again after entering `\:smiley_cat:` does product the expected emoji. But why?

---

<div class="post-metadata">

**Author:** ![Wei\_Yang](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wei_yang/32/23951_2.png) [@Wei\_Yang](https://discourse.julialang.org/u/Wei_Yang)\
**Post date:** [April 29, 2021, 11:02pm UTC](https://discourse.julialang.org/t/entering-emoji/60274/7 "2021-04-29T23:02:41Z")

</div>

Sorry I’m not answering the question for MacOs, but for future reference. In windows os, one can use the key combination: `Win`+ `.` to bring up the build-in emoji keyboard. This is my default way of doing Emoji programming 😭

![image](https://global.discourse-cdn.com/julialang/original/3X/9/b/9be3a4327778a68431ce793719f9d6661a39a927.png)  
If you continue typing, for example continue typing `cry` you get Emoji suggestions  
cry

 ![image](https://global.discourse-cdn.com/julialang/original/3X/e/0/e0b65c9a381364d7a0cae5eebcb32b090aea81f4.png)

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [April 30, 2021, 4:30am UTC](https://discourse.julialang.org/t/entering-emoji/60274/8 "2021-04-30T04:30:00Z")

</div>

Hello @murrayE and welcome to Julia. Please can I ask you to do something? Stick with it. People on this forum are very helpful and will happily answer questions about small issues.  
Often there are posts form people who are frustrated that their particular setup does not work first time, or that a certain package does not load.  
But if you stick with it and ask questions everything gets solved.

---

<div class="post-metadata">

**Author:** ![aramirezreyes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aramirezreyes/32/42573_2.png) [@aramirezreyes](https://discourse.julialang.org/u/aramirezreyes)\
**Post date:** [April 30, 2021, 6:02am UTC](https://discourse.julialang.org/t/entering-emoji/60274/9 "2021-04-30T06:02:55Z")

</div>

If you write `\:smiley_cat` and press enter, Julia will interpret it as if you are trying to perform the `\` operation on the variable called `:smiley_cat`. Because `\` is an operator that needs two inputs (`result = A \ B`) the error you get is telling you that this operator expects more than one input.

In the other side what you want to do (write an emoji through some combination of keys) is a different process operated by the REPL or by your IDE, so it has a different way of doing it than evaluating something in the REPL. So basically the answer to “why TAB completion works with TAB and not with enter” would be because it was designed that way (and using enter would conflict with the operations sent to julia).

---

<div class="post-metadata">

**Author:** ![FPGro](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fpgro/32/20822_2.png) [@FPGro](https://discourse.julialang.org/u/FPGro)\
**Post date:** [April 30, 2021, 7:26am UTC](https://discourse.julialang.org/t/entering-emoji/60274/10 "2021-04-30T07:26:00Z")

</div>

You can use [⌚ :julia:🔥.jl](https://github.com/theogf/WatchJuliaBurn.jl) to get the worst out of your smiley programming experience 😁

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [April 30, 2021, 8:36am UTC](https://discourse.julialang.org/t/entering-emoji/60274/11 "2021-04-30T08:36:20Z")

</div>

Heh. I often flag up the Obfuscated Perl contest - which resulted in things like programs written in white space, and Latin.  
However I will make an exception - this sounds fun!  
Also flags up a feature of Julia which I like - if you do not like or consistently mistype a function just do

nicename = nasty-function-name

---

<div class="post-metadata">

**Author:** ![murrayE](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/murraye/32/24428_2.png) [@murrayE](https://discourse.julialang.org/u/murrayE)\
**Post date:** [April 30, 2021, 2:26pm UTC](https://discourse.julialang.org/t/entering-emoji/60274/12 "2021-04-30T14:26:58Z")

</div>

I have no particular use for emojis in programming. I was just trying to follow along with a very first tutorial introduction and got stuck because of incomplete explanation about :smi etc.

While I appreciate just seeing examples, I expect some insinuation of semantics and syntax for such things.

---

<div class="post-metadata">

**Author:** ![Stephen7](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Stephen7](https://discourse.julialang.org/u/Stephen7)\
**Post date:** [September 13, 2021, 9:17am UTC](https://discourse.julialang.org/t/entering-emoji/60274/13 "2021-09-13T09:17:35Z")

</div>

I have a similar problem!  
Entering 🐇 +tab into Terminal (vscode) gives me a picture of a rabbit, but repeating the same key sequence in the .jl Editor window does not! All that I get is the 🐇! I have tried \🐇 and /🐇. There is a rabbit character which I can cut & paste from a document, but I would rather know how I can type it in without documents?

---

<div class="post-metadata">

**Author:** ![Stephen7](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Stephen7](https://discourse.julialang.org/u/Stephen7)\
**Post date:** [September 13, 2021, 9:21am UTC](https://discourse.julialang.org/t/entering-emoji/60274/14 "2021-09-13T09:21:09Z")

</div>

Sorry, I should have typed “🐇”, “\🐇” and “/🐇”! They all work so well here, but not on my Editor!

---

<div class="post-metadata">

**Author:** ![Stephen7](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Stephen7](https://discourse.julialang.org/u/Stephen7)\
**Post date:** [September 13, 2021, 9:23am UTC](https://discourse.julialang.org/t/entering-emoji/60274/15 "2021-09-13T09:23:18Z")

</div>

\ :rabbit, \:rabbit, /:rabbit
