Two charts instead of one with Interpolations examples

Copy/pasting the example from https://lectures.quantecon.org/jl/julia_libraries.html#interpolation gives me two charts instead of one. What am I doing wrong?

The lectures shows,

Hi @Janek thanks for posting here

I can’t reproduce this. When I run the example code, it looks the same as it does in the lecture.

Let’s see if we can figure this out. Will you please let me know the version of Plots and PlotlyJS that you have?

You can check this by running Pkg.installed(package_name)

When I do that I get

julia> Pkg.installed("Plots")
v"0.10.3"

julia> Pkg.installed("PlotlyJS")
v"0.6.0+"
Pkg.installed("Plots")
v"0.10.3"

Pkg.installed("PlotlyJS")
v"0.6.0"

No + after the PlotlyJS version.

Hmm, so that doesn’t seem to be the problem.

Do you get the same issue if you run this code from the Julia REPL instead of the juptyer notebook?

Another thing we can check is to see if anything different happens if you split the library loading and plotting commands across cells like I did. I can’t think of why that would matter, but it is a difference between our two notebooks.