Embedding plotting in a larger piece of code

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?

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

Ah, thanks!