# UnicodePlots.jl not working when running scripts from the command line

**URL:** <https://discourse.julialang.org/t/unicodeplots-jl-not-working-when-running-scripts-from-the-command-line/112912>\
**Category:** General Usage\
**Created:** [April 13, 2024, 6:30pm UTC](https://discourse.julialang.org/t/unicodeplots-jl-not-working-when-running-scripts-from-the-command-line/112912 "2024-04-13T18:30:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justin\_Booth](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/justin_booth/32/47746_2.png) [@Justin\_Booth](https://discourse.julialang.org/u/Justin_Booth)\
**Post date:** [April 13, 2024, 6:30pm UTC](https://discourse.julialang.org/t/unicodeplots-jl-not-working-when-running-scripts-from-the-command-line/112912/1 "2024-04-13T18:30:36Z")

</div>

I’ve been running into some issues with UnicodePlots.jl and have isolated a test case:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/c/8/c8701cd9bc70d2e732978ecf72982756c4d9c021.png)  
When I run this script from the command line (I’ve tried PowerShell, windows cmd, and the integrated terminal in VSCode), nothing appears:  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/d/c/dc1f7f08d7b5ec1861e5347588e57d00a1e28c16.png)  
However, when I run it from a VSCode notebook or even from the Julia REPL inside the exact same terminal, it does work:  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/1/d/1dd570f105246e55dbf14ea314069137c4a559ef.png)  
Does anyone have any idea why this might be happening?

---

<div class="post-metadata">

**Author:** ![lxvm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lxvm/32/50010_2.png) [@lxvm](https://discourse.julialang.org/u/lxvm)\
**Post date:** [April 13, 2024, 6:48pm UTC](https://discourse.julialang.org/t/unicodeplots-jl-not-working-when-running-scripts-from-the-command-line/112912/2 "2024-04-13T18:48:16Z")

</div>

I think you would have to call `display` on the plot object for it to be printed from a script, like this

```julia
p = lineplot(...)
display(p)

```

The REPL will always display the return value of an expression, unless you end the expression with “`;`”, whereas scripts only print if you ask them to with functions like `display`, `show`, `println`, and others.
