Embedding plotting in a larger piece of code


#1

I am trying to include some plotting in a larger piece of code. Here is a very simple example:

using Plots
plotly()
x = linspace(0,7)
plot(x,sin(x))

1+1

This works, but if I uncomment the last line, no plot appears. Am I doing something majorly wrong?


#2

https://juliaplots.github.io/output/


#3

Ah, thanks!