# VegaLite fails to launch bash !?

**URL:** <https://discourse.julialang.org/t/vegalite-fails-to-launch-bash/26954>\
**Category:** General Usage\
**Tags:** question\
**Created:** [July 29, 2019, 8:19pm UTC](https://discourse.julialang.org/t/vegalite-fails-to-launch-bash/26954 "2019-07-29T20:19:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [July 29, 2019, 8:19pm UTC](https://discourse.julialang.org/t/vegalite-fails-to-launch-bash/26954/1 "2019-07-29T20:19:32Z")

</div>

I am trying to run the basic example of VegaLite on Ubuntu 18.04:

```julia
julia> using VegaLite, VegaDatasets

julia> @vlplot(
           :point,
           x=:Horsepower,
           y=:Miles_per_Gallon,
           color=:Origin,
           width=400,
           height=400
       )

```

As result I get one error message:

```julia
julia> [main 2019-07-29T20:15:26.538Z] update#setState idle
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell

```

and then vscode is launched (!?)

What is going on here?  
Any idea?

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [July 29, 2019, 9:41pm UTC](https://discourse.julialang.org/t/vegalite-fails-to-launch-bash/26954/2 "2019-07-29T21:41:09Z")

</div>

Additional question: How does VegaLite normally display its plots?

---

<div class="post-metadata">

**Author:** ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)\
**Post date:** [July 29, 2019, 11:58pm UTC](https://discourse.julialang.org/t/vegalite-fails-to-launch-bash/26954/3 "2019-07-29T23:58:23Z")

</div>

If there is no other display on the display stack (which should normally be the case), then we just write a HTML file in the temp file directory and call [this](https://github.com/queryverse/VegaLite.jl/blob/master/src/rendering/render.jl#L192), i.e. we try to launch a browser that shows that file. Could it be that `xdg-open` launches VS Code on your system for some reason? I think we had a report from another users at some point indicating something like that.

One alternative for the REPL is to load [ElectronDisplay.jl](https://github.com/queryverse/ElectronDisplay.jl). It will push itself onto the display stack, and then any plots (including VegaLite.jl) should show in an electron window.

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [July 30, 2019, 9:18pm UTC](https://discourse.julialang.org/t/vegalite-fails-to-launch-bash/26954/4 "2019-07-30T21:18:48Z")

</div>

Thanks for the explanation! Perhaps the hint to load ElectronDisplay.jl should be a bit more prominent.

---

<div class="post-metadata">

**Author:** ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)\
**Post date:** [July 31, 2019, 1:25am UTC](https://discourse.julialang.org/t/vegalite-fails-to-launch-bash/26954/5 "2019-07-31T01:25:39Z")

</div>

Well, it should work without it 🙂 If that is not the case, it is a bug.

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [July 31, 2019, 9:09am UTC](https://discourse.julialang.org/t/vegalite-fails-to-launch-bash/26954/6 "2019-07-31T09:09:34Z")

</div>

The following command fixed the problem:

```julia
sudo rm /usr/share/applications/code-url-handler.desktop

```

Its a know bug of vscode on Ubuntu that it overwrites this file:  
[https://github.com/Microsoft/vscode/issues/60664](https://github.com/Microsoft/vscode/issues/60664)
