# Output in VSCode

**URL:** https://discourse.julialang.org/t/output-in-vscode/48139
**Category:** New to Julia
**Created:** [October 11, 2020, 1:59am UTC](https://discourse.julialang.org/t/output-in-vscode/48139 "2020-10-11T01:59:13Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)
#### Post date: [October 11, 2020, 1:59am UTC](https://discourse.julialang.org/t/output-in-vscode/48139/1 "2020-10-11T01:59:13Z")

</div>

I ran this, and didn’t get any errors:

a=f(x,y)=x^2+y

g1= derivative(sin,0.0)

g2=derivative(a)

print(g1)

print(g2)

I don’t however, have an output for the function, nor can I find a sum, when I put in f(3,2) for f(x,y).

---

<div class="post-metadata">

### Author: ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)
#### Post date: [October 11, 2020, 9:08am UTC](https://discourse.julialang.org/t/output-in-vscode/48139/2 "2020-10-11T09:08:56Z")

</div>

Please post a _self-contained_ MWE, including a `using` for the library which provides `derivative`.

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757/):
>
> Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer. Keywords are highlighted to make it easier to refer to specific points. Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …

---

<div class="post-metadata">

### Author: ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)
#### Post date: [October 11, 2020, 3:51pm UTC](https://discourse.julialang.org/t/output-in-vscode/48139/3 "2020-10-11T15:51:45Z")

</div>

using Calculus  
using Plots  
x = 1:10; y = rand(10, 2) # 2 columns means two lines

a=plot(x, y)

g1= derivative(sin,0.0)

print(g1)

display(a)

this gives the derivative of sin 0, in the terminal, and the plot flashes on screen, for about a second or so.

---

<div class="post-metadata">

### Author: ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)
#### Post date: [October 11, 2020, 4:15pm UTC](https://discourse.julialang.org/t/output-in-vscode/48139/4 "2020-10-11T16:15:40Z")

</div>

I think I need to run this in the REPL, but I can’t get the REPL to open. Before, I just put $julia in the shell.

---

<div class="post-metadata">

### Author: ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)
#### Post date: [October 12, 2020, 8:08am UTC](https://discourse.julialang.org/t/output-in-vscode/48139/5 "2020-10-12T08:08:58Z")

</div>

It seems that there are at least 3 different problems here:

1. your Julia installation,
2. plotting,
3. derivatives.

If Julia does not run from the command line, I would start with the first one.

---

<div class="post-metadata">

### Author: ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)
#### Post date: [October 12, 2020, 5:00pm UTC](https://discourse.julialang.org/t/output-in-vscode/48139/6 "2020-10-12T17:00:59Z")

</div>

I got that all sorted. It works as it should, Only thing left to test is exporting with Taro or Weave.
