# Debugger and Vega Plotting questions in Julia 1.4.1

**URL:** <https://discourse.julialang.org/t/debugger-and-vega-plotting-questions-in-julia-1-4-1/38705>\
**Category:** VS Code\
**Created:** [May 3, 2020, 11:15pm UTC](https://discourse.julialang.org/t/debugger-and-vega-plotting-questions-in-julia-1-4-1/38705 "2020-05-03T23:15:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Clark\_Cruz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/clark_cruz/32/10362_2.png) [@Clark\_Cruz](https://discourse.julialang.org/u/Clark_Cruz)\
**Post date:** [May 3, 2020, 11:15pm UTC](https://discourse.julialang.org/t/debugger-and-vega-plotting-questions-in-julia-1-4-1/38705/1 "2020-05-03T23:15:33Z")

</div>

Hi folks,

I am moving away from Atom… and have installed VS code and the Julia extension. I am in Julia 1.4.1 The debugger extension is not doing anything. How do we Vega graph in the VS code? that is @vlplot in Queryverse is not doing anything. do we need to install Jupyter Notebook extension to see the Vega plots?

thanks  
C.Cruz

---

<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:** [May 4, 2020, 9:40am UTC](https://discourse.julialang.org/t/debugger-and-vega-plotting-questions-in-julia-1-4-1/38705/2 "2020-05-04T09:40:51Z")

</div>

How are you trying to use the debugger? [This](https://discourse.julialang.org/t/ann-vs-code-extension-v0-15-released-with-debugger/36415/19) has some information.

[VegaLite.jl](https://github.com/queryverse/VegaLite.jl) should just work out-of-the-box, without a need to install anything else. How exactly are you trying to use it? From the REPL? In a script? Something else? What is the code you are using?

---

<div class="post-metadata">

**Author:** ![Clark\_Cruz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/clark_cruz/32/10362_2.png) [@Clark\_Cruz](https://discourse.julialang.org/u/Clark_Cruz)\
**Post date:** [May 4, 2020, 12:49pm UTC](https://discourse.julialang.org/t/debugger-and-vega-plotting-questions-in-julia-1-4-1/38705/3 "2020-05-04T12:49:44Z")

</div>

Hi David,

Thank you for time time. I will read more about the debugger.

My vega lite function definition is below. I call it from the .jl tab in VS studio and not from the REPL. The call is: plotLinearICP( r.X, r.ConfInt)

But the call does nothing. I would expect some error in the TERMINAL or the plot to pop up like when plotting in R Studio.

function plotLinearICP(

```
X::DataFrame,

ConfInt::Array{Float64,2}

```

)

```
dfGraph = DataFrame(ConfInt, names(X))

dfTranspose = DataFrames.stack(dfGraph, 1:ncol(dfGraph)) |> @rename(:value => :ConfidenceInterval) |> DataFrame

dfTranspose |>

    @vlplot(

        mark = {:boxplot, extent = "min-max"},

        x = {"variable:o", axis = {title = "Predictors"}},

        y = {:ConfidenceInterval, axis = {title = "Linear Invariant Causal Prediction"}},

        size = {value = 25},

        width = 600,

        height = 500)

```

end # plotLinearICP

thank you

---

<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:** [May 4, 2020, 3:11pm UTC](https://discourse.julialang.org/t/debugger-and-vega-plotting-questions-in-julia-1-4-1/38705/4 "2020-05-04T15:11:59Z")

</div>

Your code is creating a plot instance, but unless that is the final value in the REPL, you need to call `display` on the plot instance to actually display it, that is the default behavior in Julia.

---

<div class="post-metadata">

**Author:** ![Clark\_Cruz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/clark_cruz/32/10362_2.png) [@Clark\_Cruz](https://discourse.julialang.org/u/Clark_Cruz)\
**Post date:** [May 5, 2020, 12:39am UTC](https://discourse.julialang.org/t/debugger-and-vega-plotting-questions-in-julia-1-4-1/38705/5 "2020-05-05T00:39:53Z")

</div>

Hi David,

I included the display function call as follows. Yet, VS code is only displaying the string below in the TERMINAL. No graph is display by VS code. Am I calling display incorrectly? The documentation [Vega-lite specifications · VegaLite.jl](https://www.queryverse.org/VegaLite.jl/stable/userguide/vlspec/#Displaying-plots-1) does not include an example in how to call the display function.

thanks

plot = dfTranspose |\>  
@vlplot(  
mark = {:boxplot, extent = “min-max”},  
x = {“variable:o”, axis = {title = “Predictors”}},  
y = {:ConfidenceInterval, axis = {title = “Linear Invariant Causal Prediction”}},  
size = {value = 25},  
width = 600,  
height = 500)

```
VegaLite.display(plot)

```

STRING PRINTED IN THE TERMINAL  
@vlplot(  
mark={  
extent=“min-max”,  
type=“boxplot”  
},  
width=600,  
height=500,  
encoding={  
x={  
axis={  
title=“Predictors”  
},  
field=“variable”,  
type=“ordinal”  
},  
y={  
axis={  
title=“Linear Invariant Causal Prediction”  
},  
field=“ConfidenceInterval”  
},  
size={  
value=25  
}  
},  
data={  
values=…  
}  
)

---

<div class="post-metadata">

**Author:** ![waqas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/waqas/32/15176_2.png) [@waqas](https://discourse.julialang.org/u/waqas)\
**Post date:** [June 14, 2020, 9:44am UTC](https://discourse.julialang.org/t/debugger-and-vega-plotting-questions-in-julia-1-4-1/38705/6 "2020-06-14T09:44:05Z")

</div>

Were you able to figure this out? I am trying `@vlplot` in Atom but am also seeing no plots.

I tried to use `display()` too. Apparently that is not doing anything too.

---

<div class="post-metadata">

**Author:** ![Clark\_Cruz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/clark_cruz/32/10362_2.png) [@Clark\_Cruz](https://discourse.julialang.org/u/Clark_Cruz)\
**Post date:** [June 14, 2020, 10:48pm UTC](https://discourse.julialang.org/t/debugger-and-vega-plotting-questions-in-julia-1-4-1/38705/7 "2020-06-14T22:48:05Z")

</div>

Hi

No, it didn’t work for me in VS code. I ended up using the RELP to display the graph.
