# Image in REPL does not correct

**URL:** <https://discourse.julialang.org/t/image-in-repl-does-not-correct/46359>\
**Category:** Performance\
**Tags:** images, repl\
**Created:** [September 10, 2020, 5:21am UTC](https://discourse.julialang.org/t/image-in-repl-does-not-correct/46359 "2020-09-10T05:21:33Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [September 10, 2020, 5:21am UTC](https://discourse.julialang.org/t/image-in-repl-does-not-correct/46359/1 "2020-09-10T05:21:33Z")

</div>

When running the ImageInTerminal package I get these images:

 ![ImageIn Terminal](https://global.discourse-cdn.com/julialang/original/3X/d/9/d9086607355bf908c56f2e99d6ad2b394c2cd3bc.jpeg)

And when I start ImageView I receive the following alert:

```julia
using ImageView
Julia>using ImageView
[Info: Precompiling ImageView [86fae568-95e7-573e-a6b2-d8a6b900c9ef]
┌ Warning: You are using Gtk on Windows which is currently not recommended. Your REPL/IDE and anything depending on task switches will become sluggish and much slower (up to ~85x slower).
└ @ Gtk C:\Users\hermesr\.julia\packages\Gtk\X7HfN\src\Gtk.jl:74
┌ Warning: You are using Gtk on Windows which is currently not recommended. Your REPL/IDE and anything depending on task switches will become sluggish and much slower (up to ~85x slower).
└ @ Gtk C:\Users\hermesr\.julia\packages\Gtk\X7HfN\src\Gtk.jl:74
┌ Warning: You are using Gtk on Windows which is currently not recommended. Your REPL/IDE and anything depending on task switches will become sluggish and much slower (up to ~85x slower).

```

How to solve this problem?

---

<div class="post-metadata">

**Author:** ![tim.holy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim.holy/32/52_2.png) [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Post date:** [September 10, 2020, 9:33am UTC](https://discourse.julialang.org/t/image-in-repl-does-not-correct/46359/2 "2020-09-10T09:33:44Z")

</div>

You can use ImageView/Gtk on Windows, just be aware that it will likely slow Julia down (even your typing at the command line will sometimes lag). There have been some bandaids proposed if you search for them.

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [September 10, 2020, 9:38am UTC](https://discourse.julialang.org/t/image-in-repl-does-not-correct/46359/3 "2020-09-10T09:38:58Z")

</div>

If you use Julia nightly together with Windows terminal (the new one they have) I believe it should have pretty good color support.

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [September 10, 2020, 9:44am UTC](https://discourse.julialang.org/t/image-in-repl-does-not-correct/46359/4 "2020-09-10T09:44:50Z")

</div>

What should I do?  
And is there another option?  
Couldn’t it be some configuration inside windows?  
How to install ImageView / Gtk?

---

<div class="post-metadata">

**Author:** ![tim.holy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim.holy/32/52_2.png) [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Post date:** [September 10, 2020, 9:47am UTC](https://discourse.julialang.org/t/image-in-repl-does-not-correct/46359/5 "2020-09-10T09:47:56Z")

</div>

Search this forum for “windows gtk”. You can just ignore the warning and use ImageView as normal, being aware that you’ll want to restart Julia (without using ImageView) for serious computation.

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [September 11, 2020, 6:33am UTC](https://discourse.julialang.org/t/image-in-repl-does-not-correct/46359/6 "2020-09-11T06:33:14Z")

</div>

I installed Gkt ,. how I should proceed. I still get the same result in the REPL !!!

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [September 11, 2020, 8:00am UTC](https://discourse.julialang.org/t/image-in-repl-does-not-correct/46359/7 "2020-09-11T08:00:48Z")

</div>

When I use the Package:

```julia
using ImageView
imshow(img)

```

all right

but with :

```julia
using ImageInTerminal
img

```

I keep getting the same result that I showed above

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [September 11, 2020, 8:03am UTC](https://discourse.julialang.org/t/image-in-repl-does-not-correct/46359/8 "2020-09-11T08:03:57Z")

</div>

The default windows terminal (cmd) and Julia 1.5 does not support more than the 16 system colors. As I said:

> [@kristoffer.carlsson](#):
>
> If you use Julia nightly together with Windows terminal (the new one they have) I believe it should have pretty good color support.

If you don’t want to use nightly, you can wait for julia 1.6.

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [September 11, 2020, 8:12am UTC](https://discourse.julialang.org/t/image-in-repl-does-not-correct/46359/9 "2020-09-11T08:12:32Z")

</div>

> [@kristoffer.carlsson](#):
>
> Julia nightly

Ok, but what should I do!  
Install it apart from the current installation, to prevent the following alert that is read on the download site:  
Nightly builds  
These are bleeding-edge binaries of the latest version of Julia under development, which you can use to get a preview of the latest work. The nightly builds are for developer previews and \*\ ***not intended for normal use**. You can expect **many packages not to work with this version**. Most users are advised to use the latest official release version of Julia.

I wait for your instructions!

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [September 11, 2020, 8:15am UTC](https://discourse.julialang.org/t/image-in-repl-does-not-correct/46359/10 "2020-09-11T08:15:54Z")

</div>

> [@HerAdri](#):
>
> Ok, but what should I do!  
> Install it apart from the current installation, to prevent the following alert that is read on the download site:

Install [Windows Terminal installation | Microsoft Learn](https://docs.microsoft.com/en-us/windows/terminal/get-started)

Then install and try the nightly build. Yeah, it’s a nightly version and maybe some packages does not work but you can just try it and see if it fixes this issue. Otherwise, as I said you’ll have to wait for 1.6 to get proper color support (you still need Windows Terminal or some other terminal emulator like `cmder`).

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [September 11, 2020, 8:20am UTC](https://discourse.julialang.org/t/image-in-repl-does-not-correct/46359/11 "2020-09-11T08:20:11Z")

</div>

> [@kristoffer.carlsson](#):
>
> nightly

Should I run Julia nightly from the cmder emulator terminal?

---

<div class="post-metadata">

**Author:** ![JohnnyChen94](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnnychen94/32/29979_2.png) [@JohnnyChen94](https://discourse.julialang.org/u/JohnnyChen94)\
**Post date:** [September 11, 2020, 8:21am UTC](https://discourse.julialang.org/t/image-in-repl-does-not-correct/46359/12 "2020-09-11T08:21:33Z")

</div>

Windows Terminal + Julia 1.6:

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

Julia \< 1.6 doesn’t work.

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [September 11, 2020, 9:22am UTC](https://discourse.julialang.org/t/image-in-repl-does-not-correct/46359/13 "2020-09-11T09:22:41Z")

</div>

> [@kristoffer.carlsson](#):
>
> windows terminal

```julia
Julia>versioninfo()
Julia Version 1.5.1
Commit 697e782ab8 (2020-08-25 20:08 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: AMD Ryzen 7 1800X Eight-Core Processor
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, znver1)

```

 ![Img in REPL](https://global.discourse-cdn.com/julialang/original/3X/f/2/f226b23f74afd59e60addfb6079f47b1be2f44a5.jpeg)

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [September 11, 2020, 9:32am UTC](https://discourse.julialang.org/t/image-in-repl-does-not-correct/46359/14 "2020-09-11T09:32:27Z")

</div>

See:

> [@kristoffer.carlsson](#):
>
> Then install and try the nightly build.

> [@JohnnyChen94](#):
>
> Julia \< 1.6 doesn’t work.

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [September 11, 2020, 5:33pm UTC](https://discourse.julialang.org/t/image-in-repl-does-not-correct/46359/15 "2020-09-11T17:33:57Z")

</div>

![Img in REPL Julia 16.0](https://global.discourse-cdn.com/julialang/original/3X/3/9/3984e14d2cb9c123502ebb00903e306ac5c47929.jpeg)

```julia
julia> versioninfo()
Julia Version 1.6.0-DEV.888
Commit 0d7dc9621e (2020-09-10 16:09 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: AMD Ryzen 7 1800X Eight-Core Processor
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, znver1)

```

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [September 11, 2020, 5:41pm UTC](https://discourse.julialang.org/t/image-in-repl-does-not-correct/46359/16 "2020-09-11T17:41:13Z")

</div>

Now I have the the P {C three versions of Windows terminal.  
The one that comes with windows 10,  
Windows Terminal Version: 1.2.2381.0 and  
Windows Terminal Preview v1.3.2382.0  
How to know which one Julia is using and configure Julia to use the latest version?  
How to make the latest version of Windows Terminal the one used by the default system?

 ![three Windows terminal](https://global.discourse-cdn.com/julialang/original/3X/0/e/0ecee806bd9f49ad5710a66b0d1187dcd91c80f1.jpeg)

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [September 11, 2020, 9:33pm UTC](https://discourse.julialang.org/t/image-in-repl-does-not-correct/46359/17 "2020-09-11T21:33:47Z")

</div>

> [@Windows terminal announcement](https://discourse.julialang.org/t/windows-terminal-announcement/23929/4):
>
> For those who may be interested in integrating Julia with Windows terminal. After Windows terminal is launched, go to setting (Unlike mine, you should only have a Windows PowerShell entry by default grin) [image] A JSON configuration file will be opened with some editor (for me, it is VS Code). In the “list” items, we see the default entry for Windows Powershell. Next, we will add an entry for Julia. Copy the entry of Windows Powershell and paste it below (still inside “lis…
